before switch to ubuntu commit since apple has issues
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user