Allowing Miles to drive.

This commit is contained in:
Lucy
2013-06-23 17:26:09 +01:00
committed by Miles Gould
parent 1ad3828a3b
commit 3ce246ef5a
2 changed files with 11 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ FactoryGirl.define do
is_permanent_paid true
end
factory :staff_account_type do
name "Staff"
is_paid true
is_permanent_paid true
end
end
end

View File

@@ -238,6 +238,12 @@ describe 'member' do
Member.interesting.should eq [ @member3, @member2, @member1 ]
end
it 'does not include staff members' do
@member1 = FactoryGirl.create(:member)
Member.interesting.should_not include @member1
end
end
context 'orders' do