Skip to content

Commit

Permalink
Indicate the version that needs particular work-arounds.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
myronmarston committed Aug 24, 2013
1 parent 0980756 commit 20095ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/core.rb
Expand Up @@ -2,7 +2,7 @@
lambda do |path|
require_relative path
end
else
else # for 1.8.7
lambda do |path|
require "rspec/#{path}"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rspec/core/flat_map.rb
Expand Up @@ -5,7 +5,7 @@ module FlatMap
def flat_map(array)
array.flat_map { |item| yield item }
end
else
else # for 1.8.7
def flat_map(array)
array.map { |item| yield item }.flatten
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rspec/core/shared_example_group.rb
Expand Up @@ -128,7 +128,7 @@ def example_block_for(source, key)

if Proc.method_defined?(:source_location)
def ensure_block_has_source_location(block, caller_line); end
else
else # for 1.8.7
def ensure_block_has_source_location(block, caller_line)
block.extend Module.new {
define_method :source_location do
Expand Down

0 comments on commit 20095ab

Please sign in to comment.