Similar to the problem described here: http://rpheath.com/posts/411-how-to-use-factory-girl-with-rspec
in Short (shorten\'d code):
spec_helper:
c
You might also find it's because you haven't wrapped the statement in:
describe "what it should do" do
@static_model = Factory(:state) # with validate uniqueness of state name
end
I discovered that was the change that solved this problem: Why isn't factory_girl operating transactionally for me? - rows remain in database after tests