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

Version Path
daddy-0.5.9 lib/daddy/cucumber.rb
daddy-0.5.8 lib/daddy/cucumber.rb
daddy-0.5.7 lib/daddy/cucumber.rb
daddy-0.5.6 lib/daddy/cucumber.rb
daddy-0.5.5 lib/daddy/cucumber.rb
daddy-0.5.4 lib/daddy/cucumber.rb
daddy-0.5.3 lib/daddy/cucumber.rb
daddy-0.5.2 lib/daddy/cucumber.rb
daddy-0.5.1 lib/daddy/cucumber.rb
daddy-0.5.0 lib/daddy/cucumber.rb
daddy-0.4.10 lib/daddy/cucumber.rb
daddy-0.4.9 lib/daddy/cucumber.rb
daddy-0.4.8 lib/daddy/cucumber.rb