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.10 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.100 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.101.2 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.101 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.102.1 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.102.2 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.102 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.103 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.104 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.11.1 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.11.200907091518 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.11.3 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.11.5 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.11.6 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.11 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.3.1 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.3.2 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.3.3 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.3.4 examples/selenium_webrat/features/support/env.rb
aslakhellesoy-cucumber-0.3.3.5 examples/selenium_webrat/features/support/env.rb