Reputation: 1117
I am new to Rails Project,
i was struck in some issue regarding writing unit test cases using cucumber. while executing the test cases the data should be stored in test data base,but in my case it is flushing the development database and then again inserting the data into the development database,resulting the wrong data at wrong place.
please,tell me where the configuration lies for executing the cucumber unit test cases.
Upvotes: 1
Views: 607
Reputation: 1915
Ensure that ENV["RAILS_ENV"] = "test"
.
Add
cucumber:
<<: *test
To your database.yml file.
Upvotes: 1