Skip to content
Browse files

fix brittle unit test

  • Loading branch information...
1 parent faaf7f1 commit 6f89e99b4c253ec98534039cd4186a2240fba02b @svenfuchs committed Nov 6, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/missing_translations_test.rb
View
4 test/missing_translations_test.rb
@@ -29,8 +29,8 @@ def teardown
log.log([:missing_translations, :foo, :bar])
log.dump(out = StringIO.new)
- expected = '--- missing_translations: foo: bar: Bar '
- assert_equal expected, out.string.gsub("\n", ' ')
+ expected = { 'missing_translations' => { 'foo' => { 'bar' => 'Bar' } } }
+ assert_equal expected, YAML.load(out.string)
end
test 'works as a rack middleware' do

0 comments on commit 6f89e99

Please sign in to comment.
Something went wrong with that request. Please try again.