Problems developing a test

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?