Skip to content

Commit

Permalink
Add capybara-webkit gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Aug 9, 2011
1 parent 41c9098 commit 9755032
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -41,6 +41,7 @@ end
gem 'bundler', '>= 1.0.17'
gem 'arel', '2.1.4' # 2.1.5 was broken. see https://github.com/rails/arel/issues/72
gem 'therubyracer'
gem 'capybara-webkit', :git => "git://github.com/thoughtbot/capybara-webkit.git"

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git', :branch => '3-1-stable'
Expand Down
8 changes: 8 additions & 0 deletions Gemfile.lock
Expand Up @@ -35,6 +35,13 @@ GIT
activerecord (>= 3.0.0)
paper_trail (~> 2)

GIT
remote: git://github.com/thoughtbot/capybara-webkit.git
revision: 612028dc6fd5fc08eb9c5d33553fac6c88b890b0
specs:
capybara-webkit (0.5.0)
capybara (~> 1.0.0)

PATH
remote: .
specs:
Expand Down Expand Up @@ -289,6 +296,7 @@ DEPENDENCIES
arel (= 2.1.4)
awesome_nested_set!
bundler (>= 1.0.17)
capybara-webkit!
coffee-script
globalize3!
jquery-rails
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -56,6 +56,9 @@ def setup_environment
DatabaseCleaner.clean
end
end

# set javascript driver for capybara
Capybara.javascript_driver = :webkit
end

def each_run
Expand Down
3 changes: 3 additions & 0 deletions testing/spec/spec_helper.rb
Expand Up @@ -55,6 +55,9 @@ def setup_environment
config.after(:each) do
DatabaseCleaner.clean
end

# set javascript driver for capybara
Capybara.javascript_driver = :webkit
end
end

Expand Down

0 comments on commit 9755032

Please sign in to comment.