spec/integration/relation_spec.rb in active-fedora-8.2.1 vs spec/integration/relation_spec.rb in active-fedora-8.2.2
- old
+ new
@@ -12,11 +12,11 @@
Object.send(:remove_const, :Library)
Object.send(:remove_const, :Book)
end
subject { Library.all }
- its(:class) {should eq ActiveFedora::Relation }
+ its(:class) {is_expected.to eq ActiveFedora::Relation }
before :all do
Library.create
@library = Library.create
end
@@ -30,10 +30,10 @@
it "should be loaded" do
expect(subject).to be_loaded
end
it "shouldn't reload" do
- ActiveFedora::Relation.any_instance.should_not_receive :find_each
+ expect_any_instance_of(ActiveFedora::Relation).not_to receive :find_each
subject[0]
end
end
describe "#find" do