Skip to content

Commit

Permalink
Make sure we can run rake cucumber without error.
Browse files Browse the repository at this point in the history
Some files were missing, but most importantly, because
of an incompatibility between cucumber and rails 4,
I had to use the an unreleased version of cucumber
that fixes that error. See cucumber/cucumber-rails#253
  • Loading branch information
nathanvda committed Nov 4, 2013
1 parent b0aa30d commit e400854
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 178 deletions.
6 changes: 4 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0.rc1'
gem 'rails', '4.0.0'
gem 'sqlite3'

group :assets do
gem 'sass-rails', '~> 4.0.0.rc1'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
Expand All @@ -26,6 +26,8 @@ end

group :test do
gem 'cucumber-rails', :require => false
# use head version to remove annoying bug
gem 'cucumber', :git => '[email protected]:cucumber/cucumber'
gem 'capybara'
gem 'selenium-webdriver'
gem 'database_cleaner'
Expand Down
176 changes: 0 additions & 176 deletions Gemfile.lock

This file was deleted.

8 changes: 8 additions & 0 deletions config/cucumber.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<%
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'] || 'pretty'} --strict --tags ~@wip"
%>
default: <%= std_opts %> features
wip: --tags @wip:3 --wip features
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
16 changes: 16 additions & 0 deletions db/schema.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 0) do

end
10 changes: 10 additions & 0 deletions script/cucumber
Original file line number Diff line number Diff line change
@@ -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 e400854

Please sign in to comment.