spec/class_action/action_spec.rb in class-action-1.3.0 vs spec/class_action/action_spec.rb in class-action-1.3.1

- old
+ new

@@ -67,11 +67,11 @@ let(:result) { double(:result) } before { allow(controller).to receive(:load_post).and_return(result) } it "should make the action respond to :load_post, but protectedly" do expect(action).not_to respond_to(:load_post) - expect(action.respond_to?(:load_post, true)).to be_true # matcher doesn't work with second argument + expect(action.respond_to?(:load_post, true)).to be_truthy # matcher doesn't work with second argument end it "should pass the method :load_post on to the controller" do expect(action.load_post).to be(result) end @@ -425,12 +425,10 @@ action_class.class_eval do respond_with :post end action_subclass = Class.new(action_class) - expect(action_subclass).to have(1)._response - expect(action_subclass._responses.keys[0]).to be_nil - expect(action_subclass._responses.values[0]).to be(:post) + expect(action_subclass._responses).to match({nil => :post}) end end end \ No newline at end of file