Commit ae9689f8ffdf8a69bd803021d1f57a37aba06e0d

Authored by Nihad Abbasov
1 parent b5815511

remove cucumber completely

Gemfile
... ... @@ -119,7 +119,6 @@ group :development, :test do
119 119  
120 120 # Guard
121 121 gem 'guard-rspec'
122   - gem 'guard-cucumber'
123 122  
124 123 # Notification
125 124 gem 'rb-fsevent', :require => darwin_only('rb-fsevent')
... ... @@ -128,7 +127,6 @@ group :development, :test do
128 127 end
129 128  
130 129 group :test do
131   - gem 'cucumber-rails', :require => false
132 130 gem "simplecov", :require => false
133 131 gem "shoulda-matchers"
134 132 gem 'email_spec'
... ...
Gemfile.lock
... ... @@ -134,15 +134,6 @@ GEM
134 134 colored (1.2)
135 135 colorize (0.5.8)
136 136 crack (0.3.1)
137   - cucumber (1.2.1)
138   - builder (>= 2.1.2)
139   - diff-lcs (>= 1.1.3)
140   - gherkin (~> 2.11.0)
141   - json (>= 1.4.6)
142   - cucumber-rails (1.3.0)
143   - capybara (>= 1.1.2)
144   - cucumber (>= 1.1.8)
145   - nokogiri (>= 1.5.0)
146 137 daemons (1.1.8)
147 138 database_cleaner (0.8.0)
148 139 devise (2.1.2)
... ... @@ -171,8 +162,6 @@ GEM
171 162 ffi (1.0.11)
172 163 foreman (0.47.0)
173 164 thor (>= 0.13.6)
174   - gherkin (2.11.0)
175   - json (>= 1.4.6)
176 165 gherkin-ruby (0.2.1)
177 166 git (1.2.5)
178 167 github-markup (0.7.4)
... ... @@ -187,9 +176,6 @@ GEM
187 176 guard (1.3.2)
188 177 listen (>= 0.4.2)
189 178 thor (>= 0.14.6)
190   - guard-cucumber (1.2.0)
191   - cucumber (>= 1.2.0)
192   - guard (>= 1.1.0)
193 179 guard-rspec (1.2.1)
194 180 guard (>= 1.1)
195 181 haml (3.1.6)
... ... @@ -403,7 +389,6 @@ DEPENDENCIES
403 389 chosen-rails
404 390 coffee-rails (= 3.2.2)
405 391 colored
406   - cucumber-rails
407 392 database_cleaner
408 393 devise (~> 2.1.0)
409 394 draper
... ... @@ -419,7 +404,6 @@ DEPENDENCIES
419 404 grape (~> 0.2.1)
420 405 grit!
421 406 growl
422   - guard-cucumber
423 407 guard-rspec
424 408 haml-rails
425 409 headless
... ...
config/cucumber.yml
... ... @@ -1,8 +0,0 @@
1   -<%
2   -rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3   -rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
4   -std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip"
5   -%>
6   -default: <%= std_opts %> features
7   -wip: --tags @wip:3 --wip features
8   -rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
lib/tasks/cucumber.rake
... ... @@ -1,65 +0,0 @@
1   -# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
2   -# It is recommended to regenerate this file in the future when you upgrade to a
3   -# newer version of cucumber-rails. Consider adding your own code to a new file
4   -# instead of editing this one. Cucumber will automatically load all features/**/*.rb
5   -# files.
6   -
7   -
8   -unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
9   -
10   -vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
11   -$LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
12   -
13   -begin
14   - require 'cucumber/rake/task'
15   -
16   - namespace :cucumber do
17   - Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t|
18   - t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
19   - t.fork = true # You may get faster startup if you set this to false
20   - t.profile = 'default'
21   - end
22   -
23   - Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
24   - t.binary = vendored_cucumber_bin
25   - t.fork = true # You may get faster startup if you set this to false
26   - t.profile = 'wip'
27   - end
28   -
29   - Cucumber::Rake::Task.new({:rerun => 'db:test:prepare'}, 'Record failing features and run only them if any exist') do |t|
30   - t.binary = vendored_cucumber_bin
31   - t.fork = true # You may get faster startup if you set this to false
32   - t.profile = 'rerun'
33   - end
34   -
35   - desc 'Run all features'
36   - task :all => [:ok, :wip]
37   -
38   - task :statsetup do
39   - require 'rails/code_statistics'
40   - ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
41   - ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
42   - end
43   - end
44   - desc 'Alias for cucumber:ok'
45   - task :cucumber => 'cucumber:ok'
46   -
47   - task :default => :cucumber
48   -
49   - task :features => :cucumber do
50   - STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
51   - end
52   -
53   - # In case we don't have ActiveRecord, append a no-op task that we can depend upon.
54   - task 'db:test:prepare' do
55   - end
56   -
57   - task :stats => 'cucumber:statsetup'
58   -rescue LoadError
59   - desc 'cucumber rake task not available (cucumber not installed)'
60   - task :cucumber do
61   - abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
62   - end
63   -end
64   -
65   -end
lib/tasks/gitlab/test.rake
1 1 namespace :gitlab do
2   - desc "GITLAB | Run both cucumber & rspec"
3   - task :test => ['cucumber', 'spec']
  2 + desc "GITLAB | Run both spinach and rspec"
  3 + task :test => ['spinach', 'spec']
4 4 end
5   -
... ...
lib/tasks/travis.rake
1 1 task :travis do
2   - ["cucumber", "rspec spec"].each do |cmd|
  2 + ["spinach", "rspec spec"].each do |cmd|
3 3 puts "Starting to run #{cmd}..."
4 4 system("export DISPLAY=:99.0 && bundle exec #{cmd}")
5 5 raise "#{cmd} failed!" unless $?.exitstatus == 0
... ...
script/cucumber
... ... @@ -1,10 +0,0 @@
1   -#!/usr/bin/env ruby
2   -
3   -vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
4   -if vendored_cucumber_bin
5   - load File.expand_path(vendored_cucumber_bin)
6   -else
7   - require 'rubygems' unless ENV['NO_RUBYGEMS']
8   - require 'cucumber'
9   - load Cucumber::BINARY
10   -end