Sha256: 7f4d38824fa3db3e4d2e317a4ef191b4b8032c23cd8497b1a80e909b838ba786

Contents?: true

Size: 448 Bytes

Versions: 15

Compression:

Stored size: 448 Bytes

Contents

require 'capybara/dsl'
require 'fileutils'
module DummyRailsIntegration
  include Capybara::DSL

  def setup
    super
    FileUtils.rm_rf('test/dummy_rails/tmp/cache', secure: true)
  end

  def teardown
    super
    Capybara.reset_sessions!
    Capybara.use_default_driver
  end

  def screenshot!
    path = "tmp/#{name}.png"
    page.driver.render(File.join(GEM_PATH, path), full: true)
    STDERR.puts "Screenshot saved to #{path}"
  end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
entreprise7pro-bootstrap-sass-3.4.7 test/support/dummy_rails_integration.rb
entreprise7pro-bootstrap-sass-3.4.6 test/support/dummy_rails_integration.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/bootstrap-sass-3.4.1/test/support/dummy_rails_integration.rb
bootstrap-sass-3.4.1 test/support/dummy_rails_integration.rb
bootstrap-sass-3.4.0 test/support/dummy_rails_integration.rb
bootstrap-sass-3.3.7 test/support/dummy_rails_integration.rb