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
cucumber-0.6.2 examples/selenium_webrat/features/support/env.rb
cucumber-0.6.1 examples/selenium_webrat/features/support/env.rb
cucumber-0.6.0 examples/selenium_webrat/features/support/env.rb
cucumber-0.5.3 examples/selenium_webrat/features/support/env.rb
cucumber-0.5.2 examples/selenium_webrat/features/support/env.rb
cucumber-0.5.1 examples/selenium_webrat/features/support/env.rb
cucumber-0.5.0 examples/selenium_webrat/features/support/env.rb
cucumber-0.4.5.rc2 examples/selenium_webrat/features/support/env.rb
kbaum-cucumber-0.4.5.pre examples/selenium_webrat/features/support/env.rb
cucumber-0.4.5.rc1 examples/selenium_webrat/features/support/env.rb
middleman-0.10.17 vendor/gems/gems/cucumber-0.4.4/examples/selenium_webrat/features/support/env.rb
middleman-0.10.16 vendor/gems/gems/cucumber-0.4.4/examples/selenium_webrat/features/support/env.rb
middleman-0.10.15 vendor/gems/gems/cucumber-0.4.4/examples/selenium_webrat/features/support/env.rb
rackjour-0.1.8 vendor/gems/gems/cucumber-0.4.4/examples/selenium_webrat/features/support/env.rb
middleman-0.10.14 vendor/gems/gems/cucumber-0.4.4/examples/selenium_webrat/features/support/env.rb
cucumber-0.4.4 examples/selenium_webrat/features/support/env.rb
cucumber-0.4.3 examples/selenium_webrat/features/support/env.rb
cucumber-0.4.2 examples/selenium_webrat/features/support/env.rb
cucumber-0.4.1 examples/selenium_webrat/features/support/env.rb
cucumber-0.4.0 examples/selenium_webrat/features/support/env.rb