spec/mongo/fixture/inserter_spec.rb in mongo-fixture-0.0.5 vs spec/mongo/fixture/inserter_spec.rb in mongo-fixture-0.1.0
- old
+ new
@@ -52,12 +52,11 @@
it "should raise an exception" do
fixture = double 'fixture', :data => {}, :rollback => nil
ins = Mongo::Fixture::Inserter.new fixture
expect { ins.simplify @base_hash
- }.to raise_error Mongo::Fixture::ReferencedRecordNotFoundError,
- "This fixture does not include data for the collections [raw,not_processed]"
+ }.to raise_error Mongo::Fixture::ReferencedRecordNotFoundError
end
it "should call #resolve_field_hash with the data hash" do
fixture = double 'fixture', :data => {}
ins = Mongo::Fixture::Inserter.new fixture
@@ -330,11 +329,10 @@
it "should raise an error" do
data = { :users => "user", :comments => "comment"}
fixture = stub 'fixture', :data => { :collection => "", :another_collection => ""}
inserter = Mongo::Fixture::Inserter.new fixture
expect { inserter.resolve_field_hash data
- }.to raise_error Mongo::Fixture::ReferencedRecordNotFoundError,
- "This fixture does not include data for the collections [users,comments]"
+ }.to raise_error Mongo::Fixture::ReferencedRecordNotFoundError
end
end
end
context "there is a :processed key" do
\ No newline at end of file