mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix warnings
JRuby-specific: fix 'warning: (...) interpreted as grouped expression'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user