Cucumber tests failing – looked like it was using a different database
Just spent the morning tracking down an issue where a number of our cucumber tests were failing to find the database in the state that I had just set up with my step definitions. For example, I had a step definition: Given /I have (\d+) servers$/ do |num_servers| UI::Server.delete_all; num_servers.to_i.times {Factory.create(:server)} end When [...]
Filed under: rails | No Comments