Displaying 1 result from an estimated 1 matches for "webratmixinexample".
2013 Oct 09
0
getting selenium working with jruby/sinatra/cucumber/webrat on windows
...;
require File.join(File.dirname(__FILE__), ''../../'', ''main.rb'')
Webrat.configure do |config|
# config.mode = :rack
config.mode = :selenium
config.application_port = 4567
config.application_framework = :sinatra
end
class WebratMixinExample
include Rack::Test::Methods
include Webrat::Methods
include Webrat::Matchers
Webrat::Methods.delegate_to_session :response_code, :response_body
def app
# Sinatra::Application
Main
end
end
World{WebratMixinExample.new}
=======...