By default, "rake specs" re-creating my test database, using environment's one.
It removes all the data, but not the the auto_increment. So when i'll try to make a new user:
User.blueprint do
login { Sham.login }
email { Sham.email }
end
# the test:
user = User.make
user.id.should == 1
It says, that ID was 1800 (auto_increment was't refresehed).
Another problem: is there a way to disable recreating database, instead of just truncate all the tables? I don't use fixtures, and this would make my tests run faster.