spec/auth/ability_spec.rb in ddr-models-2.5.3 vs spec/auth/ability_spec.rb in ddr-models-2.6.0.rc1

- old
+ new

@@ -295,10 +295,10 @@ describe "with a String" do let(:obj) { "test:1" } let(:cache_key) { obj } let(:perm_obj) { SolrDocument.new({"id"=>"test:1"}) } before do - allow_any_instance_of(RoleBasedAbilityDefinitions).to receive(:permissions_doc).with(obj) { perm_obj } + allow(SolrDocument).to receive(:find).with("test:1") { perm_obj } end it_behaves_like "it has role based abilities" end end