Skip to content

Commit

Permalink
Merge pull request #211 from chronomantic/fix_frozen_string
Browse files Browse the repository at this point in the history
fix frozen string warning in Ruby 2.1.1
  • Loading branch information
thibaudgg committed Apr 16, 2014
2 parents 50f1ffe + 7a632c0 commit b68375f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/support/acceptance_helper.rb
Expand Up @@ -24,8 +24,9 @@ def add_changes(type, changes)

def relative_path(changes)
changes.map do |change|
[paths].flatten.each { |path| change.gsub!(%r{#{path.to_s}/}, '') }
change
unfrozen_copy = change.dup
[paths].flatten.each { |path| unfrozen_copy.gsub!(%r{#{path.to_s}/}, '') }
unfrozen_copy
end
end

Expand Down

0 comments on commit b68375f

Please sign in to comment.