Sha256: db22fd2082a4e76f1db697a2227cbc6ae0d7e202d4745ce29c3204f90a5c3e5e
Contents?: true
Size: 777 Bytes
Versions: 13
Compression:
Stored size: 777 Bytes
Contents
require 'capybara/cucumber' case ENV['DRIVER'] when 'poltergeist' require 'capybara/poltergeist' when 'webkit' require 'capybara/webkit' end Capybara.default_driver = (ENV['DRIVER'] || :selenium).to_sym Capybara.default_selector = :css def override_method(obj, method_name, &block) klass = class <<obj; self; end klass.send(:undef_method, method_name) klass.send(:define_method, method_name, block) end AfterConfiguration do |configuration| feature_files = configuration.feature_files override_method(configuration, :feature_files) { sorted_files = feature_files.sort do |x, y| x <=> y end } end require_relative 'cucumber/helpers' require_relative 'cucumber/hooks/database' if defined?(Rails) Before do resize_window(1280, 720) end
Version data entries
13 entries across 13 versions & 1 rubygems