features/support/env.rb in landable-1.13.1 vs features/support/env.rb in landable-1.13.2

- old
+ new

@@ -2,16 +2,16 @@ # It is recommended to regenerate this file in the future when you upgrade to a # newer version of cucumber-rails. Consider adding your own code to a new file # instead of editing this one. Cucumber will automatically load all features/**/*.rb # files. -ENV["RAILS_ENV"] ||= "test" +ENV['RAILS_ENV'] ||= 'test' require 'simplecov' SimpleCov.start 'rails' -require File.expand_path("../../../spec/dummy/config/environment.rb", __FILE__) -ENV["RAILS_ROOT"] ||= File.dirname(__FILE__) + "../../../spec/dummy" +require File.expand_path('../../../spec/dummy/config/environment.rb', __FILE__) +ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '../../../spec/dummy' require 'cucumber/rails' require 'cucumber/rspec/doubles' # Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In @@ -40,17 +40,17 @@ # Remove/comment out the lines below if your app doesn't have a database. # For some databases (like MongoDB and CouchDB) you may need to use :truncation instead. begin DatabaseCleaner.strategy = :transaction rescue NameError - raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it." + raise 'You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it.' end # You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios. # See the DatabaseCleaner documentation for details. Example: # # Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do -# # { :except => [:widgets] } may not do what you expect here +# # { except: [:widgets] } may not do what you expect here # # as tCucumber::Rails::Database.javascript_strategy overrides # # this setting. # DatabaseCleaner.strategy = :truncation # end #