Hello, I''m pretty new to ruby and I''m trying to develop a test for a simple method. The method is this: def show_details @accounts = Account.find( params[:id] ) end and the test method I''m trying is this: def test_show_details get :index, :context => ''admin'', :id => 1 assert_response :success assert_equal assigns(:accounts), accounts(:blake_acount) end we have some test data in .yml file called accounts.yml which is stored in /test/fixtures/ directory and it contains this section on blake_account: blake_account: id: 1 user_id: 1 first_name: Blake expire_on: <%= Date.today + 32 %> recurring: false country_code: US Don''t understand why this fails? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---