Permalink
Browse files

change i18n specs to use association names, not associations

  • Loading branch information...
justinfrench committed Jun 6, 2011
1 parent e98f1f8 commit c6cc4406cff1ffab6d3067e12a5c552a57ba0739
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/i18n_spec.rb
View
@@ -142,7 +142,7 @@
it 'should be able to translate nested objects with nested translations' do
with_config :i18n_lookups_by_default, true do
concat(semantic_form_for(@new_post) do |builder|
- concat(builder.semantic_fields_for(@new_post.author) do |f|
+ concat(builder.semantic_fields_for(:author) do |f|
concat(f.input(:name))
end)
end)
@@ -153,7 +153,7 @@
it 'should be able to translate nested objects with top level translations' do
with_config :i18n_lookups_by_default, true do
concat(semantic_form_for(@new_post) do |builder|
- builder.semantic_fields_for(@new_post.author) do |f|
+ builder.semantic_fields_for(:author) do |f|
concat(f.input(:name))
end
end)
@@ -184,7 +184,7 @@
it 'should be able to translate nested helper label as Rails does' do
with_config :i18n_lookups_by_default, true do
concat(semantic_form_for(@new_post) do |builder|
- concat(builder.inputs(:for => @new_post.author) do |f|
+ concat(builder.inputs(:for => :author) do |f|
concat(f.input(:login))
end)
end)

0 comments on commit c6cc440

Please sign in to comment.