Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

Commit

Permalink
Fixed cucumber plugin packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
erithmetic committed Sep 4, 2012
1 parent 42fa203 commit 658ed85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -8,5 +8,6 @@ gem 'cucumber'
gem 'headless'
gem 'i18n'
gem 'launchy'
gem 'rake'
gem 'rspec'
gem 'selenium-webdriver'
15 changes: 11 additions & 4 deletions features/support/env.rb
Expand Up @@ -51,17 +51,24 @@
require 'selenium-webdriver'
profile = Selenium::WebDriver::Firefox::Profile.new
profile.add_extension File.expand_path(%w(.. .. .. firefox build careplane.xpi).join('/'), __FILE__)
profile['javascript.options.showInConsole'] = true
Capybara::Selenium::Driver.new app, :browser => :firefox, :profile => profile
end

Before("@chrome") do
puts 'Building package...'
puts `rake google_chrome:package`, 'Done!'
unless @chrome_built
puts 'Building chrome package...'
puts `rake google_chrome:package`, 'Done!'
@chrome_built = true
end
Capybara.current_driver = :selenium_chrome
end

Before("@firefox") do
puts 'Building package...'
puts `rake firefox:package`, 'Done!'
unless @firefox_built
puts 'Building firefox package...'
puts `rake firefox:package`, 'Done!'
@firefox_built = true
end
Capybara.current_driver = :selenium_firefox
end

0 comments on commit 658ed85

Please sign in to comment.