Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Guidi committed Apr 5, 2009
1 parent d3e10de commit bedcfae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/observer_test.rb
Expand Up @@ -2,7 +2,7 @@

class FakeActionView
def translate(key, options = {})
I18n.translate(key, options).stringify_keys
I18n.translate key, options
end

include Click::Observer::View
Expand Down Expand Up @@ -38,7 +38,7 @@ class ObserverTest < ActiveSupport::TestCase

test "should observe translate" do
template.add_observer locale_observer
template.translate :hello_world
template.translate "hello_world"
assert_equal({"hello_world" => "Hello, World!"}, locale_observer.translations)
end

Expand Down

0 comments on commit bedcfae

Please sign in to comment.