Sha256: 3eb5b4f5ddced97a27512eae42a1d494006c0a348e0dab3c30cb2251f170c923

Contents?: true

Size: 794 Bytes

Versions: 125

Compression:

Stored size: 794 Bytes

Contents

require 'spec/expectations'

# START HACK
# Webrat's Selenium wrongly assumes Rails in available. # We'll just fool it...
module ActionController
  class IntegrationTest
  end
end

def silence_stream(*args)
  yield if block_given?
end
# END HACK

# RSpec
require 'spec/expectations'

# Webrat
require 'webrat'

Webrat.configure do |config|
  config.mode = :selenium
end

World do
  session = Webrat::SeleniumSession.new
  session.extend(Webrat::Methods)
  session.extend(Webrat::Selenium::Methods)
  session.extend(Webrat::Selenium::Matchers)
  session
end

# START HACK
# Disable Rails-specific code
class Webrat::Selenium::ApplicationServer
  def self.boot
    
    STDOUT.puts "Starting app server"
  end
  
  def self.stop_at_exit
    STDOUT.puts "Stopping app server"
  end
end
# END HACK

Version data entries

125 entries across 125 versions & 13 rubygems

Version Path
aslakhellesoy-cucumber-0.3.93.1 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.93 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.94.1 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.94 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.95 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.96 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.97 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.98 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.99 examples/selenium_webrat/features/support/env.rb
dwaite-cucumber-0.3.101 examples/selenium_webrat/features/support/env.rb
engineyard-cucumber-0.3.101 examples/selenium_webrat/features/support/env.rb
jwilger-cucumber-0.3.11.200906161550 examples/selenium_webrat/features/support/env.rb
jwilger-cucumber-0.3.11.200907091518 examples/selenium_webrat/features/support/env.rb
kosmas58-cucumber-0.3.100 examples/selenium_webrat/features/support/env.rb
kosmas58-cucumber-0.3.102 examples/selenium_webrat/features/support/env.rb
kosmas58-cucumber-0.3.103 examples/selenium_webrat/features/support/env.rb
kosmas58-cucumber-0.3.11.3 examples/selenium_webrat/features/support/env.rb
kosmas58-cucumber-0.3.11.6 examples/selenium_webrat/features/support/env.rb
kosmas58-cucumber-0.3.9.4 examples/selenium_webrat/features/support/env.rb
kosmas58-cucumber-0.3.90 examples/selenium_webrat/features/support/env.rb