diff options
Diffstat (limited to 'spec/mspec/lib/mspec/helpers/mock_to_path.rb')
-rw-r--r-- | spec/mspec/lib/mspec/helpers/mock_to_path.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/spec/mspec/lib/mspec/helpers/mock_to_path.rb b/spec/mspec/lib/mspec/helpers/mock_to_path.rb index 683bb1d9d6..2780afc54a 100644 --- a/spec/mspec/lib/mspec/helpers/mock_to_path.rb +++ b/spec/mspec/lib/mspec/helpers/mock_to_path.rb @@ -1,8 +1,6 @@ -class Object - def mock_to_path(path) - # Cannot use our Object#mock here since it conflicts with RSpec - obj = MockObject.new('path') - obj.should_receive(:to_path).and_return(path) - obj - end +def mock_to_path(path) + # Cannot use our Object#mock here since it conflicts with RSpec + obj = MockObject.new('path') + obj.should_receive(:to_path).and_return(path) + obj end |