spec/lib/hybag_spec.rb in hybag-0.1.1 vs spec/lib/hybag_spec.rb in hybag-0.2.0

- old
+ new

@@ -58,11 +58,13 @@ it "should allow the ingester to be configurable" do ingesting = nil Hybag::Ingester.any_instance.should_receive(:ingest).and_return("bla") Hybag.ingest("empty") do |ingester| ingester.model_name = "TestModel" + ingester.old_subject = "http://test.org" ingesting = ingester end expect(ingesting.model_name).to eq "TestModel" + expect(ingesting.old_subject).to eq "http://test.org" end end end