Sha256: ee498557ebbe1bb274bb2f0753e55bb2209238a3fcfdb7777463e62aa78f7d00

Contents?: true

Size: 633 Bytes

Versions: 19

Compression:

Stored size: 633 Bytes

Contents

require 'capybara'
require 'gurke'
require 'capybara/dsl'
require 'capybara/rspec/matchers'

Gurke.configure do |c|
  c.include Capybara::DSL, type: :feature
  c.include Capybara::RSpecMatchers, type: :feature

  c.before do
    next unless self.class.include?(Capybara::DSL)

    # if context.metadata[:js]
    #   Capybara.current_driver = Capybara.javascript_driver
    # end
    #
    # if context.metadata[:driver]
    #   Capybara.current_driver = context.metadata[:driver]
    # end
  end

  c.after do
    next unless self.class.include?(Capybara::DSL)

    Capybara.reset_sessions!
    Capybara.use_default_driver
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
gurke-2.4.2 lib/gurke/capybara.rb
gurke-2.4.1 lib/gurke/capybara.rb
gurke-2.4.0 lib/gurke/capybara.rb
gurke-2.3.0 lib/gurke/capybara.rb
gurke-2.2.2 lib/gurke/capybara.rb
gurke-2.2.1 lib/gurke/capybara.rb
gurke-2.1.0 lib/gurke/capybara.rb
gurke-2.0.3 lib/gurke/capybara.rb
gurke-2.0.2 lib/gurke/capybara.rb
gurke-2.0.1 lib/gurke/capybara.rb
gurke-2.0.0 lib/gurke/capybara.rb
gurke-2.0.0.dev.1.b25 lib/gurke/capybara.rb
gurke-2.0.0.dev.1.b24 lib/gurke/capybara.rb
gurke-2.0.0.dev.1.b23 lib/gurke/capybara.rb
gurke-2.0.0.dev.1.b22 lib/gurke/capybara.rb
gurke-2.0.0.dev.1.b20 lib/gurke/capybara.rb
gurke-2.0.0.dev.1.b19 lib/gurke/capybara.rb
gurke-2.0.0.dev.1.b18 lib/gurke/capybara.rb
gurke-2.0.0.dev.1.b17 lib/gurke/capybara.rb