rspec install

Install Rspec FacoryGirl
This commit is contained in:
2013-07-26 00:41:21 +02:00
parent f9249900d7
commit 92f1797dfb
9 changed files with 86 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
require 'spec_helper'
describe Studium do
it "should not be valid without name" do
s = FactoryGirl.build(:studium, :name=>nil)
s.should_not be_valid
end
end