Fix warnings

JRuby-specific: fix 'warning: (...) interpreted as grouped expression'
This commit is contained in:
Benjamin Fleischer
2015-08-21 02:23:37 -04:00
parent 9aad8b4d29
commit d315151e8a
16 changed files with 77 additions and 54 deletions

View File

@@ -47,9 +47,9 @@ class SerializerGeneratorTest < Rails::Generators::TestCase
run_generator ["account"]
assert_file "app/serializers/account_serializer.rb" do |content|
if RUBY_PLATFORM =~ /mingw/
assert_no_match /\r\n\r\nend/, content
assert_no_match(/\r\n\r\nend/, content)
else
assert_no_match /\n\nend/, content
assert_no_match(/\n\nend/, content)
end
end
end