Hi Samiron, After looking at your relpy again I have edited the user and business yml files to the following.
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html Business one: id: 1 name: Graham's Bar user_id: 1 address: 112 O'Connell Street province: Dublin 1 city: Dublin country: Ireland longitude: 1.5 lattitude: 1.5 two: id: 2 name: Joe's Bar user_id: 2 address: 12 Grafton Street province: Dublin 2 city: Dublin country: Ireland longitude: 22.4 lattitude: 22.5 Users # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html one: id: 1 login: Graham crypted_password: MyString password_salt: MyString persistence_token: MyString login_count: 1 last_request_at: 2010-02-24 17:14:15 last_login_at: 2010-02-24 17:14:15 current_login_at: 2010-02-24 17:14:15 last_login_ip: MyString current_login_ip: MyString two: id: 2 login: Joe crypted_password: MyString password_salt: MyString persistence_token: MyString login_count: 1 last_request_at: 2010-02-24 17:14:15 last_login_at: 2010-02-24 17:14:15 current_login_at: 2010-02-24 17:14:15 last_login_ip: MyString current_login_ip: MyString This has resolved two of the earlier errors test_should_get_index(BusinessesControllerTest): ActionView::TemplateError: undefined method `login' for nil:NilClass and test_should_show_business(BusinessesControllerTest): ActionView::TemplateError: undefined method `login' for nil:NilClass But I'm still getting the error on testing creating a new business test_should_get_new(BusinessesControllerTest): RuntimeError: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id I'm also getting the following error. test_should_create_business(BusinessesControllerTest): "Business.count" didn't change by 1. <3> expected but was <2>. Thanks for all your help Graham -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

