Topic: Issue with rspec -- Could not find table 'users'
So I was doing spec tests until running into a weird problem, all the other tests passed except those user related ones.
It complains "Could not find table 'users'".
UsersController GET 'new' should be successful
Failure/Error: get 'new'
Could not find table 'users'
It doesn't matter what I am testing, as long as I mentioned user (@user, :user), the test will fail
Here is a little chuck of my spec code
describe UsersController do
describe "GET 'show'" do
@user = Factory(:user)
it "should be successful" do
get :show, :id => @user
the rest should be the same
Could anyone help me out here? Thank in advance!
Last edited by doctorxlove (2010-10-20 21:25:07)