Permalink
Browse files

Replaced cucumber with turnip

  • Loading branch information...
1 parent 02e3593 commit f4428f753d8d6a64e24f0d26d705093ac9019ce7 @4r2r 4r2r committed Oct 9, 2012
View
@@ -1 +1 @@
---colour
+-r turnip/rspec --colour
View
@@ -37,6 +37,7 @@ group :development do
end
group :development, :test do
+ gem 'debugger'
gem 'dotenv'
gem 'sqlite3'
gem 'rspec-rails'
@@ -47,18 +48,17 @@ end
group :test do
gem 'simplecov', require: false
+ gem 'webmock', require: false
+ gem 'capybara'
gem 'database_cleaner'
- gem 'rr'
- gem 'shoulda-matchers'
gem 'email_spec'
gem 'factory_girl_rails'
-
- gem 'cucumber-rails', require: false
- gem 'webmock', require: false
gem 'launchy'
+ gem 'shoulda-matchers'
+ gem 'turnip'
end
group :staging, :production do
gem 'pg'
-end
+end
View
@@ -59,8 +59,8 @@ GEM
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
- childprocess (0.3.1)
- ffi (~> 1.0.6)
+ childprocess (0.3.5)
+ ffi (~> 1.0, >= 1.0.6)
code_analyzer (0.2.0)
sexp_processor
coffee-rails (3.2.2)
@@ -72,21 +72,19 @@ GEM
coffee-script-source (1.3.3)
color (1.4.1)
colored (1.2)
+ columnize (0.3.6)
commonjs (0.2.6)
connection_pool (0.9.2)
crack (0.3.1)
- cucumber (1.1.9)
- builder (>= 2.1.2)
- diff-lcs (>= 1.1.2)
- gherkin (~> 2.9.0)
- json (>= 1.4.6)
- term-ansicolor (>= 1.0.6)
- cucumber-rails (1.3.0)
- capybara (>= 1.1.2)
- cucumber (>= 1.1.8)
- nokogiri (>= 1.5.0)
daemons (1.1.9)
database_cleaner (0.7.1)
+ debugger (1.2.0)
+ columnize (>= 0.3.1)
+ debugger-linecache (~> 1.1.1)
+ debugger-ruby_core_source (~> 1.1.3)
+ debugger-linecache (1.1.2)
+ debugger-ruby_core_source (>= 1.1.1)
+ debugger-ruby_core_source (1.1.3)
decent_exposure (1.0.2)
devise (2.1.2)
bcrypt-ruby (~> 3.0)
@@ -108,10 +106,10 @@ GEM
factory_girl (~> 4.1.0)
railties (>= 3.0.0)
fastercsv (1.5.5)
- ffi (1.0.11)
+ ffi (1.1.5)
foreman (0.59.0)
thor (>= 0.13.6)
- gherkin (2.9.3)
+ gherkin (2.11.4)
json (>= 1.4.6)
girl_friday (0.10.0)
connection_pool (~> 0.9.0)
@@ -148,6 +146,8 @@ GEM
letter_opener (0.0.2)
launchy
libv8 (3.3.10.4)
+ libwebsocket (0.1.5)
+ addressable
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
@@ -157,7 +157,7 @@ GEM
mime-types (1.19)
multi_json (1.3.6)
netrc (0.7.7)
- nokogiri (1.5.2)
+ nokogiri (1.5.5)
orm_adapter (0.4.0)
pdf-writer (1.1.8)
color (>= 1.4.0)
@@ -200,7 +200,6 @@ GEM
json (~> 1.4)
rest-client (1.6.7)
mime-types (>= 1.16)
- rr (1.0.4)
rspec (2.9.0)
rspec-core (~> 2.9.0)
rspec-expectations (~> 2.9.0)
@@ -221,9 +220,9 @@ GEM
fastercsv
pdf-writer (= 1.1.8)
sass (3.2.1)
- selenium-webdriver (2.20.0)
+ selenium-webdriver (2.25.0)
childprocess (>= 0.2.5)
- ffi (~> 1.0)
+ libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
sexp_processor (4.0.1)
@@ -252,7 +251,6 @@ GEM
sqlite3 (1.3.5)
styleguides (0.1)
temple (0.5.4)
- term-ansicolor (1.0.7)
therubyracer (0.9.10)
libv8 (~> 3.3.10)
thin (1.4.1)
@@ -265,6 +263,9 @@ GEM
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
+ turnip (1.0.0)
+ gherkin (>= 2.5)
+ rspec (~> 2.0)
tzinfo (0.3.33)
uglifier (1.3.0)
execjs (>= 0.3.0)
@@ -287,9 +288,10 @@ DEPENDENCIES
airbrake
brakeman
bullet
+ capybara
coffee-rails (~> 3.2.2)
- cucumber-rails
database_cleaner
+ debugger
decent_exposure
devise
dotenv
@@ -308,7 +310,6 @@ DEPENDENCIES
pg
rails (= 3.2.8)
rails_best_practices
- rr
rspec-rails
shoulda-matchers
simple-navigation
@@ -320,5 +321,6 @@ DEPENDENCIES
styleguides
therubyracer
thin
+ turnip
uglifier (>= 1.2.3)
webmock
View
@@ -1,8 +0,0 @@
-<%
-rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
-rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
-std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip --require features/step_definitions --require features/support"
-%>
-default: <%= std_opts %> features
-wip: --tags @wip:3 --wip features
-rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
@@ -1 +0,0 @@
-require 'email_spec/cucumber'
@@ -1,56 +0,0 @@
-# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
-# It is recommended to regenerate this file in the future when you upgrade to a
-# newer version of cucumber-rails. Consider adding your own code to a new file
-# instead of editing this one. Cucumber will automatically load all features/**/*.rb
-# files.
-
-require 'cucumber/rails'
-
-# 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
-# prefer to use XPath just remove this line and adjust any selectors in your
-# steps to use the XPath syntax.
-Capybara.default_selector = :css
-
-# By default, any exception happening in your Rails application will bubble up
-# to Cucumber so that your scenario will fail. This is a different from how
-# your application behaves in the production environment, where an error page will
-# be rendered instead.
-#
-# Sometimes we want to override this default behaviour and allow Rails to rescue
-# exceptions and display an error page (just like when the app is running in production).
-# Typical scenarios where you want to do this is when you test your error pages.
-# There are two ways to allow Rails to rescue exceptions:
-#
-# 1) Tag your scenario (or feature) with @allow-rescue
-#
-# 2) Set the value below to true. Beware that doing this globally is not
-# recommended as it will mask a lot of errors for you!
-#
-ActionController::Base.allow_rescue = false
-
-# Remove/comment out the lines below if your app doesn't have a database.
-# For some databases (like MongoDB and CouchDB) you may need to use :truncation instead.
-begin
- DatabaseCleaner.strategy = :transaction
-rescue NameError
- raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
-end
-
-# You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios.
-# See the DatabaseCleaner documentation for details. Example:
-#
-# Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do
-# DatabaseCleaner.strategy = :truncation, {except: %w[widgets]}
-# end
-#
-# Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do
-# DatabaseCleaner.strategy = :transaction
-# end
-#
-
-# Possible values are :truncation and :transaction
-# The :transaction strategy is faster, but might give you threading problems.
-# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
-Cucumber::Rails::Database.javascript_strategy = :truncation
-
@@ -1 +0,0 @@
-require 'factory_girl'
@@ -1,59 +0,0 @@
-module NavigationHelpers
- # Maps a name to a path. Used by the
- #
- # When /^I go to (.+)$/ do |page_name|
- #
- # step definition in web_steps.rb
- #
- def path_to(page_name)
- case page_name
-
- when /the home\s?page/
- '/'
- when /the sign up page/
- new_user_registration_path
- when /the sign in page/
- new_user_session_path
- when /the sign out page/
- destroy_user_session_path
- when /the send password instructions page/
- new_user_password_path
- when /the resend confirmation instructions page/
- new_user_confirmation_path
- when /the edit account page/
- edit_user_registration_path
-
- # the following are examples using path_to_pickle
-
- when /^#{capture_model}(?:'s)? page$/ # eg. the forum's page
- path_to_pickle $1
-
- when /^#{capture_model}(?:'s)? #{capture_model}(?:'s)? page$/ # eg. the forum's post's page
- path_to_pickle $1, $2
-
- when /^#{capture_model}(?:'s)? #{capture_model}'s (.+?) page$/ # eg. the forum's post's comments page
- path_to_pickle $1, $2, extra: $3 # or the forum's post's edit page
-
- when /^#{capture_model}(?:'s)? (.+?) page$/ # eg. the forum's posts page
- path_to_pickle $1, extra: $2 # or the forum's edit page
-
- # Add more mappings here.
- # Here is an example that pulls values out of the Regexp:
- #
- # when /^(.*)'s profile page$/i
- # user_profile_path(User.find_by_login($1))
-
- else
- begin
- page_name =~ /the (.*) page/
- path_components = $1.split(/\s+/)
- self.send(path_components.push('path').join('_').to_sym)
- rescue Object => e
- raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
- "Now, go and add a mapping in #{__FILE__}"
- end
- end
- end
-end
-
-World(NavigationHelpers)
@@ -1,3 +0,0 @@
-require 'rr'
-
-Cucumber::Rails::World.send(:include, RR::Adapters::RRMethods)
@@ -1 +0,0 @@
-require 'simplecov'
@@ -1,11 +0,0 @@
-require 'webmock'
-require 'webmock/cucumber'
-
-# allow connections by default
-WebMock.allow_net_connect!
-
-Around('@webmock') do |scenario, block|
- WebMock::Config.instance.allow_net_connect = false
- block.call
- WebMock.disable_net_connect!
-end
@@ -1,65 +0,0 @@
-# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
-# It is recommended to regenerate this file in the future when you upgrade to a
-# newer version of cucumber-rails. Consider adding your own code to a new file
-# instead of editing this one. Cucumber will automatically load all features/**/*.rb
-# files.
-
-
-unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
-
-vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
-$LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
-
-begin
- require 'cucumber/rake/task'
-
- namespace :cucumber do
- Cucumber::Rake::Task.new({ok: 'db:test:prepare'}, 'Run features that should pass') do |t|
- t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
- t.fork = true # You may get faster startup if you set this to false
- t.profile = 'default'
- end
-
- Cucumber::Rake::Task.new({wip: 'db:test:prepare'}, 'Run features that are being worked on') do |t|
- t.binary = vendored_cucumber_bin
- t.fork = true # You may get faster startup if you set this to false
- t.profile = 'wip'
- end
-
- Cucumber::Rake::Task.new({rerun: 'db:test:prepare'}, 'Record failing features and run only them if any exist') do |t|
- t.binary = vendored_cucumber_bin
- t.fork = true # You may get faster startup if you set this to false
- t.profile = 'rerun'
- end
-
- desc 'Run all features'
- task all: [:ok, :wip]
-
- task :statsetup do
- require 'rails/code_statistics'
- ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
- ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
- end
- end
- desc 'Alias for cucumber:ok'
- task cucumber: 'cucumber:ok'
-
- task default: :cucumber
-
- task features: :cucumber do
- STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
- end
-
- # In case we don't have ActiveRecord, append a no-op task that we can depend upon.
- task 'db:test:prepare' do
- end
-
- task stats: 'cucumber:statsetup'
-rescue LoadError
- desc 'cucumber rake task not available (cucumber not installed)'
- task :cucumber do
- abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
- end
-end
-
-end
View
@@ -3,6 +3,5 @@
set -e
bundle exec rspec spec
-bundle exec cucumber features
-script/quality
+script/quality
Oops, something went wrong. Retry.

0 comments on commit f4428f7

Please sign in to comment.