Sha256: 7728c242933c0dc89702122fb36f7a6619b147929256727083cf3690205b44a6
Contents?: true
Size: 852 Bytes
Versions: 1
Compression:
Stored size: 852 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) RSpec.configure do |config| config.before do Terminus.browser = case ENV['USER_AGENT'] when 'iPhone' then {:os => /iPhone/} when 'iPad' then {:os => /like Mac OS X/} when 'auto' then Terminus.browser when String then {:name => ENV['USER_AGENT']} else :docked end end config.after do Terminus.browser.return_to_dock unless ENV['USER_AGENT'] end end skip = [] skip << :screenshot unless ENV['USER_AGENT'] == 'PhantomJS' skip << :windows if %w[Android iPad iPhone PhantomJS].include?(ENV['USER_AGENT']) session = Capybara::Session.new(:terminus, TestApp) Capybara::SpecHelper.run_specs(session, 'terminus', :skip => skip)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terminus-0.5.0 | spec/2.0/terminus_spec.rb |