Am using 'devise' gem for authentication and rspec for testing. My problem is after spec execution the test data is not getting cleared from DB, because of this subsequent execution of specs fail. Following is the spec:
describe User do
it "should return a valid user when valid email and password are used" do user = User.new(:email => '[email protected]', :password => 'test123', :password_confirmation => 'test123') user.save user.should be_valid end
end
Is there anything more that i am excepted to do here?