Skip to content

Commit

Permalink
Fix failing cuke on JRuby.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Mar 2, 2011
1 parent aab8b57 commit ef249d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions features/step_definitions/cli_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ def modify_file(file_name, orig_text, new_text)
fragment = fragment.split("\n").map { |s| s.rstrip }.join("\n")
end

# JRuby serializes things a bit differently
if RUBY_PLATFORM == 'java'
fragment = fragment.gsub(/^(\s+\-)/,' \1')
end

check_file_content(file_name, fragment, true)
end

Expand Down

0 comments on commit ef249d1

Please sign in to comment.