Skip to content

Commit

Permalink
Fix diff crlf in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Aug 20, 2015
1 parent e0c5626 commit 4e108f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/generators/serializer_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ def test_generates_attributes_and_associations
def test_with_no_attributes_does_not_add_extra_space
run_generator ["account"]
assert_file "app/serializers/account_serializer.rb" do |content|
assert_no_match /\n\nend/, content
if RUBY_PLATFORM =~ /mingw/
assert_no_match /\r\n\r\nend/, content
else
assert_no_match /\n\nend/, content
end
end
end
end

0 comments on commit 4e108f0

Please sign in to comment.