I am actually a newbie in Ruby rails nd Rspec.. So it could be something
basic.. Plz helpp
This is my rspec test code::
describe "GET new" do
it "assigns a new kase as @kase" do
get :new
assigns(:kase).should be_a_new(Kase)
end
end
Its failing saying:
KasesController GET new assigns a new kase as @kase
Failure/Error: assigns(:kase).should be_a_new(Kase)
expected nil to be a new Kase(id: integer, name: string,
description: text, item_loc_id: integer, created_at: datetime,
updated_at: datetime, previous_visit_id_cache: integer)
# ./spec/controllers/kases_controller_spec.rb:37
on 2012-04-04 12:47
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.