spec/unit/resources/base_spec.rb in chef-api-0.7.0 vs spec/unit/resources/base_spec.rb in chef-api-0.7.1
- old
+ new
@@ -18,10 +18,12 @@
end
end
describe '.collection_path' do
it 'raises an exception if the collection name is not set' do
- expect { described_class.collection_path }.to raise_error
+ expect {
+ described_class.collection_path
+ }.to raise_error(ArgumentError, 'collection_path not set for Class')
end
it 'sets the collection name' do
described_class.collection_path('bacons')
expect(described_class.collection_path).to eq('bacons')