Hello! Can anybody help me with using i18n.t method in rspec test
files?
I try to test this block:

  describe "GET 'home'" do
    it "should be successful" do
      get 'home'
      response.should have_selector("title",
                    :content => @base_title +
i18n.t( 'pages.title.home' ))
    end
  end

but this error appear:

Failure/Error: :content => @base_title + i18n.t( 'pages.title.home' ))
    undefined method `t' for
#<RSpec::Core::ExampleGroup::Nested_1::Nested_4:0xa13716c>

-- 
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-i18n?hl=en.

Reply via email to