Sha256: e89c1410fc2beb7ab6458b963c50337b5c1ac4b1084e97a2218291fa134ae1fb

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

class Minitest::Capybara::Spec
  include Minitest::Hooks

  around do |&block|
    device = metadata[:device]
    case device
    when :symbol
      Capybara.current_driver = Capybara.current_driver = device
      super(&block)
    when Array
      device.each do |device|
        Capybara.current_driver = Capybara.current_driver = device
        super(&block)
      end
    else
      Capybara.current_driver = Capybara.default_driver
      super(&block)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
barman-0.1.1 templates/qa/multidevice.rb