-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i use warden to test but have this error ? #43
Comments
What happens if you make this change:
|
it does not work i think its a session problem ? |
should i use include Warden::Test::Helpers or devise helper to login or sign_in ? |
i can not find why database is locked ? |
Take a look at the tutorial: I don't know what is going on for you. It is a local issue. Try:
|
when i use warden login user i got a database locked ,because it will update user table when use sign |
and here is the test log Connecting to database specified by database.yml |
I can't help with Warden test issues, sorry. |
thats ok ,thank u all the same |
If you push your code up to github I might be able to figure it out. On Thu, Feb 28, 2013 at 4:11 PM, wang lei [email protected] wrote:
|
To some people who are having this problem. Try closing your rails console |
@user = FactoryGirl.create(:user, email:"[email protected]")
login_as @user
SQLite3::BusyException: database is locked: UPDATE "users" SET "last_sign_in_at" = '2013-02-28 23:50:24.881571', "current_sign_in_at" = '2013-02-28 23:50:24.881571', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-02-28 23:50:24.883425' WHERE "users"."id" = 1
The text was updated successfully, but these errors were encountered: