Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Re-install Cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
rspeicher committed Sep 7, 2010
1 parent fb1f955 commit ed96761
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 15 deletions.
9 changes: 9 additions & 0 deletions Gemfile
Expand Up @@ -28,6 +28,15 @@ group :test do
gem 'timecop'
end

group :test, :cucumber do
gem 'capybara'
gem 'database_cleaner'
gem 'cucumber-rails'
gem 'cucumber'
gem 'rspec-rails', '>= 2.0.0.beta.20'
gem 'spork'
end

group :production do
gem 'whenever', '>= 0.4'
end
34 changes: 34 additions & 0 deletions Gemfile.lock
Expand Up @@ -46,9 +46,26 @@ GEM
activesupport (~> 3.0.0)
autotest (4.3.2)
builder (2.1.2)
capybara (0.3.9)
culerity (>= 0.2.4)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (>= 0.0.3)
chronic (0.2.3)
hoe (>= 1.2.1)
columnize (0.3.1)
cucumber (0.8.5)
builder (~> 2.1.2)
diff-lcs (~> 1.1.2)
gherkin (~> 2.1.4)
json_pure (~> 1.4.3)
term-ansicolor (~> 1.0.4)
cucumber-rails (0.3.2)
cucumber (>= 0.8.0)
culerity (0.2.12)
database_cleaner (0.5.2)
diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
Expand All @@ -57,10 +74,14 @@ GEM
factory_girl (~> 1.3)
rails (>= 3.0.0.beta4)
fakeweb (1.3.0)
ffi (0.6.3)
rake (>= 0.8.7)
formtastic (1.1.0.beta)
actionpack (>= 2.3.0)
activesupport (>= 2.3.0)
i18n (>= 0.4.0)
gherkin (2.1.5)
trollop (~> 1.16.2)
haml (3.0.18)
hoe (2.6.2)
rake (>= 0.8.7)
Expand Down Expand Up @@ -119,11 +140,19 @@ GEM
linecache (>= 0.3)
rubyforge (2.0.4)
json_pure (>= 1.1.7)
rubyzip (0.9.4)
selenium-webdriver (0.0.28)
ffi (>= 0.6.1)
json_pure
rubyzip
shoulda (2.11.3)
spork (0.8.4)
term-ansicolor (1.0.5)
thor (0.14.0)
timecop (0.3.5)
treetop (1.4.8)
polyglot (>= 0.3.1)
trollop (1.16.2)
tzinfo (0.3.23)
whenever (0.5.0)
chronic (>= 0.2.3)
Expand All @@ -135,6 +164,10 @@ PLATFORMS
DEPENDENCIES
authlogic!
autotest
capybara
cucumber
cucumber-rails
database_cleaner
factory_girl (~> 1.3)
factory_girl_rails (>= 1.0)
fakeweb
Expand All @@ -150,6 +183,7 @@ DEPENDENCIES
rspec-rails (>= 2.0.0.beta.20)
ruby-debug
shoulda (>= 2.11.3)
spork
timecop
whenever (>= 0.4)
will_paginate (= 3.0.pre2)
16 changes: 1 addition & 15 deletions features/support/env.rb
Expand Up @@ -4,13 +4,12 @@
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.

ENV["RAILS_ENV"] ||= "cucumber"
ENV["RAILS_ENV"] ||= "test"
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')

require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support
require 'cucumber/rails/rspec'
require 'cucumber/rails/world'
require 'cucumber/rails/active_record'
require 'cucumber/web/tableish'

require 'capybara/rails'
Expand All @@ -34,19 +33,6 @@
# of your scenarios, as this makes it hard to discover errors in your application.
ActionController::Base.allow_rescue = false

# If you set this to true, each scenario will run in a database transaction.
# You can still turn off transactions on a per-scenario basis, simply tagging
# a feature or scenario with the @no-txn tag. If you are using Capybara,
# tagging with @culerity or @javascript will also turn transactions off.
#
# If you set this to false, transactions will be off for all scenarios,
# regardless of whether you use @no-txn or not.
#
# Beware that turning transactions off will leave data in your database
# after each scenario, which can lead to hard-to-debug failures in
# subsequent scenarios. If you do this, we recommend you create a Before
# block that will explicitly put your database in a known state.
Cucumber::Rails::World.use_transactional_fixtures = true
# How to clean your database when transactions are turned off. See
# http://github.com/bmabey/database_cleaner for more info.
if defined?(ActiveRecord::Base)
Expand Down
10 changes: 10 additions & 0 deletions script/cucumber
@@ -0,0 +1,10 @@
#!/usr/bin/env ruby

vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
if vendored_cucumber_bin
load File.expand_path(vendored_cucumber_bin)
else
require 'rubygems' unless ENV['NO_RUBYGEMS']
require 'cucumber'
load Cucumber::BINARY
end

0 comments on commit ed96761

Please sign in to comment.