You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same problem... I thought it was due to :scope, but should_validate_uniqueness_of without a :spec also produces this error. I will use a workaround, but I'd like to ask if there is a new version planned in some near future?
With an extremely simple model and spec:
class User < ActiveRecord::Base
validates_uniqueness_of :username
end
describe User do
should_validate_uniqueness_of :username
end
The following error is produced
Failures:
Failure/Error: send(should_or_should_not, send(method, *args, &block))
ScriptError:
could not find a User record in the database
./spec/models/user_spec.rb:4
./spec/models/user_spec.rb:3
EDIT:
Using Rails 3.0.7
rspec 2.5.0
remarkable 4.0.0.alpha4
The text was updated successfully, but these errors were encountered: