forked from bofh/fetsite
AutoCommit Son Aug 30 16:03:01 CEST 2015
This commit is contained in:
@@ -1,5 +1,25 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Fetprofile do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
[:vorname,:nachname].each do |attr|
|
||||
it "should not be valid without #{attr}" do
|
||||
fp = FactoryGirl.build(:fetprofile)
|
||||
fp.send("#{attr}=".to_sym,nil)
|
||||
fp.should_not be_valid
|
||||
end
|
||||
end
|
||||
it "should be valid" do
|
||||
fp = FactoryGirl.build(:fetprofile)
|
||||
fp.should be_valid
|
||||
end
|
||||
it "should not be valid with short name" do
|
||||
fp = FactoryGirl.build(:fetprofile)
|
||||
fp.nachname ="S"
|
||||
fp.should_not be_valid
|
||||
fp.vorname ="d"
|
||||
fp.should_not be_valid
|
||||
end
|
||||
pending "have memberships"
|
||||
pending "be associated to gremien"
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user