Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/flexmock/spy_describers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def describe_spy_negative_expectation(spy, sym, args, kw, options={})
end

def describe_spy(spy, sym, args, kw, options, not_clause="")
result = "expected "
result = +"expected "
result << FlexMock.format_call(sym, args, kw)
result << " to#{not_clause} be received by " << spy.inspect
result << times_description(options[:times])
Expand All @@ -29,7 +29,7 @@ def describe_spy(spy, sym, args, kw, options, not_clause="")
end

def describe_calls(spy)
result = ''
result = +''
if spy.flexmock_calls.empty?
result << "No messages have been received\n"
else
Expand Down
2 changes: 1 addition & 1 deletion test/container_methods_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_stubs_are_auto_verified
end

def test_stubbing_a_string
s = "hello"
s = +"hello"
flexmock(:base, s, :length => 2)
assert_equal 2, s.length
end
Expand Down
2 changes: 1 addition & 1 deletion test/partial_mock_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def test_partial_mocks_leaves_NoMethodError_exceptions_raised_by_the_original_me
exception = assert_raises(NameError) do
obj.mocked_method
end
assert_match(/undefined method `does_not_exist' for/, exception.message)
assert_match(/undefined method [`']does_not_exist' for/, exception.message)
end

def test_it_checks_whether_mocks_are_forbidden_before_forwarding_the_call
Expand Down
2 changes: 1 addition & 1 deletion test/rspec_integration/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
end

specify "should be able to create a stub" do
s = "Hello World"
s = +"Hello World"
flexmock(:base, s).should_receive(:downcase).with().once.and_return("hello WORLD")

expect(s.downcase).to eq("hello WORLD")
Expand Down