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'".
e.g
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
require 'spec_helper'
describe UsersController do
render_views
describe "GET 'show'" do
before(:each) do
@user = Factory(:user)
end
it "should be successful" do
get :show, :id => @user
response.should be_success
end
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)