Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 7f67eae

Browse files
committed
TMP: expect :msg instead of :y; the latter breaks in Ruby 1.8..??
I don't have a 1.8 environment available, and can't build it with LLVM based build environment. Restorting to testing via Travis :(
1 parent 9f9ff96 commit 7f67eae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ module Mocks
5353
end
5454

5555
it "sets up message expectation with params and return value" do
56-
::RSpec::Mocks.expect_message(subject, :y).with(:in).and_return(:out)
57-
expect(subject.y(:in)).to eq(:out)
56+
::RSpec::Mocks.expect_message(subject, :msg).with(:in).and_return(:out)
57+
expect(subject.msg(:in)).to eq(:out)
5858
verify subject
5959
end
6060

6161
it "accepts a block implementation for the expected message" do
62-
::RSpec::Mocks.expect_message(subject, :y) { :value }
63-
expect(subject.y).to eq(:value)
62+
::RSpec::Mocks.expect_message(subject, :msg) { :value }
63+
expect(subject.msg).to eq(:value)
6464
verify subject
6565
end
6666

0 commit comments

Comments
 (0)