Ruby On Rails

BDD in Rails

Step 1 :First install the following gems gem install cucumber gem install rspec gem install webrat gem install factory-girl gem install cucumber-rails gem install database_cleaner Step 2 :in environments/test.rb config.gem ‘rspec-rails’, :lib=>false config.gem ‘rspec’, :lib=>false config.gem ‘cucumber’ config.gem ‘webrat’ Step 3 : in features/support/env.rb require ‘cucumber/rails/rspec’ require ‘webrat/integrations/rspec-rails’ Step 4 : in command prompt rake… Continue reading BDD in Rails