Skip to content

Commit

Permalink
Add test that translates can be called a second time with options,
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Jan 7, 2014
1 parent f58ab0a commit d367469
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/globalize_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ class GlobalizeTest < MiniTest::Spec
assert_translated page, :de, :title, 'Wilkommen'
assert_translated page, :de, :body, 'Ein body'
end

it 'does not extract options from attr_names a second time' do
# should not raise
NewsItem.instance_eval %{ translates :title, :foreign_key => :news_id }
end
end

describe ':table_name option' do
Expand Down

0 comments on commit d367469

Please sign in to comment.