user3962745
user3962745

Reputation: 1117

where do we configure cucumber test database configuration location in Ruby on Rails

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

Answers (1)

adamliesko
adamliesko

Reputation: 1915

Ensure that ENV["RAILS_ENV"] = "test". Add

cucumber:
  <<: *test

To your database.yml file.

Upvotes: 1

Related Questions