before switch to ubuntu commit since apple has issues

This commit is contained in:
2015-08-13 12:54:02 +02:00
parent 6b764fcd39
commit 919474b54c
17 changed files with 81 additions and 41 deletions
+10
View File
@@ -164,4 +164,14 @@ describe List do
expect( list.needs_help? ).not_to be true
end
end
context 'class_methods' do
describe 'active_for_supplier' do
it 'only returns the lists for the supplier' do
other_supplier = create :supplier, open: true
other_list = create :list, :active, supplier: other_supplier
described_class.active_for_supplier( list.supplier ).should eq [list]
end
end
end
end