Skip to content

Commit

Permalink
Add selenium-rc dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jul 16, 2011
1 parent fb78066 commit 76ea70f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ group :test do
gem 'nokogiri' gem 'nokogiri'
gem 'rack-test', :require => 'rack/test' gem 'rack-test', :require => 'rack/test'
gem 'rr' gem 'rr'
gem 'selenium-rc'
gem 'shoulda' gem 'shoulda'
gem 'timecop' gem 'timecop'
gem 'webmock' gem 'webmock'
Expand Down
8 changes: 6 additions & 2 deletions Gemfile.lock
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ GEM
rr (1.0.2) rr (1.0.2)
ruby-hmac (0.4.0) ruby-hmac (0.4.0)
rubyzip (0.9.4) rubyzip (0.9.4)
selenium-client (1.2.18)
selenium-rc (2.4.0)
selenium-client (>= 1.2.18)
selenium-webdriver (0.2.2) selenium-webdriver (0.2.2)
childprocess (>= 0.1.9) childprocess (>= 0.1.9)
ffi (>= 1.0.7) ffi (>= 1.0.7)
Expand All @@ -154,7 +157,7 @@ GEM
silent-postgres (0.0.8) silent-postgres (0.0.8)
sinatra (1.2.6) sinatra (1.2.6)
rack (~> 1.1) rack (~> 1.1)
tilt (< 2.0, >= 1.2.2) tilt (>= 1.2.2, < 2.0)
system_timer (1.2.4) system_timer (1.2.4)
term-ansicolor (1.0.5) term-ansicolor (1.0.5)
thor (0.14.6) thor (0.14.6)
Expand All @@ -166,7 +169,7 @@ GEM
validates_url_format_of (0.1.0) validates_url_format_of (0.1.0)
activerecord (>= 2.3.4) activerecord (>= 2.3.4)
webmock (1.6.4) webmock (1.6.4)
addressable (> 2.2.5, ~> 2.2) addressable (~> 2.2, > 2.2.5)
crack (>= 0.1.7) crack (>= 0.1.7)
webrat (0.7.3) webrat (0.7.3)
nokogiri (>= 1.2.0) nokogiri (>= 1.2.0)
Expand Down Expand Up @@ -207,6 +210,7 @@ DEPENDENCIES
redis redis
rest-client rest-client
rr rr
selenium-rc
shoulda shoulda
silent-postgres silent-postgres
sinatra sinatra
Expand Down
15 changes: 14 additions & 1 deletion features/support/env.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,8 +5,21 @@
# files. # files.


require 'cucumber/rails' require 'cucumber/rails'

require 'webmock/cucumber' require 'webmock/cucumber'
require 'webrat'
require 'webrat/core/matchers'
require 'webrat/selenium'

include Webrat::Methods
include Webrat::Selenium::Methods
include Webrat::Selenium::Matchers

Webrat.configure do |config|
config.mode = :rack
config.open_error_files = false # Set to true if you want error pages to pop up in the browser
end

World(Webrat::Selenium::Matchers)


# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In # Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
# order to ease the transition to Capybara we set the default here. If you'd # order to ease the transition to Capybara we set the default here. If you'd
Expand Down
Binary file added vendor/cache/selenium-client-1.2.18.gem
Binary file not shown.
Binary file added vendor/cache/selenium-rc-2.4.0.gem
Binary file not shown.

0 comments on commit 76ea70f

Please sign in to comment.