Commit ae9689f8ffdf8a69bd803021d1f57a37aba06e0d

Authored by Nihad Abbasov
1 parent b5815511

remove cucumber completely

@@ -119,7 +119,6 @@ group :development, :test do @@ -119,7 +119,6 @@ group :development, :test do
119 119
120 # Guard 120 # Guard
121 gem 'guard-rspec' 121 gem 'guard-rspec'
122 - gem 'guard-cucumber'  
123 122
124 # Notification 123 # Notification
125 gem 'rb-fsevent', :require => darwin_only('rb-fsevent') 124 gem 'rb-fsevent', :require => darwin_only('rb-fsevent')
@@ -128,7 +127,6 @@ group :development, :test do @@ -128,7 +127,6 @@ group :development, :test do
128 end 127 end
129 128
130 group :test do 129 group :test do
131 - gem 'cucumber-rails', :require => false  
132 gem "simplecov", :require => false 130 gem "simplecov", :require => false
133 gem "shoulda-matchers" 131 gem "shoulda-matchers"
134 gem 'email_spec' 132 gem 'email_spec'
@@ -134,15 +134,6 @@ GEM @@ -134,15 +134,6 @@ GEM
134 colored (1.2) 134 colored (1.2)
135 colorize (0.5.8) 135 colorize (0.5.8)
136 crack (0.3.1) 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 daemons (1.1.8) 137 daemons (1.1.8)
147 database_cleaner (0.8.0) 138 database_cleaner (0.8.0)
148 devise (2.1.2) 139 devise (2.1.2)
@@ -171,8 +162,6 @@ GEM @@ -171,8 +162,6 @@ GEM
171 ffi (1.0.11) 162 ffi (1.0.11)
172 foreman (0.47.0) 163 foreman (0.47.0)
173 thor (>= 0.13.6) 164 thor (>= 0.13.6)
174 - gherkin (2.11.0)  
175 - json (>= 1.4.6)  
176 gherkin-ruby (0.2.1) 165 gherkin-ruby (0.2.1)
177 git (1.2.5) 166 git (1.2.5)
178 github-markup (0.7.4) 167 github-markup (0.7.4)
@@ -187,9 +176,6 @@ GEM @@ -187,9 +176,6 @@ GEM
187 guard (1.3.2) 176 guard (1.3.2)
188 listen (>= 0.4.2) 177 listen (>= 0.4.2)
189 thor (>= 0.14.6) 178 thor (>= 0.14.6)
190 - guard-cucumber (1.2.0)  
191 - cucumber (>= 1.2.0)  
192 - guard (>= 1.1.0)  
193 guard-rspec (1.2.1) 179 guard-rspec (1.2.1)
194 guard (>= 1.1) 180 guard (>= 1.1)
195 haml (3.1.6) 181 haml (3.1.6)
@@ -403,7 +389,6 @@ DEPENDENCIES @@ -403,7 +389,6 @@ DEPENDENCIES
403 chosen-rails 389 chosen-rails
404 coffee-rails (= 3.2.2) 390 coffee-rails (= 3.2.2)
405 colored 391 colored
406 - cucumber-rails  
407 database_cleaner 392 database_cleaner
408 devise (~> 2.1.0) 393 devise (~> 2.1.0)
409 draper 394 draper
@@ -419,7 +404,6 @@ DEPENDENCIES @@ -419,7 +404,6 @@ DEPENDENCIES
419 grape (~> 0.2.1) 404 grape (~> 0.2.1)
420 grit! 405 grit!
421 growl 406 growl
422 - guard-cucumber  
423 guard-rspec 407 guard-rspec
424 haml-rails 408 haml-rails
425 headless 409 headless
config/cucumber.yml
@@ -1,8 +0,0 @@ @@ -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,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 namespace :gitlab do 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 end 4 end
5 -  
lib/tasks/travis.rake
1 task :travis do 1 task :travis do
2 - ["cucumber", "rspec spec"].each do |cmd| 2 + ["spinach", "rspec spec"].each do |cmd|
3 puts "Starting to run #{cmd}..." 3 puts "Starting to run #{cmd}..."
4 system("export DISPLAY=:99.0 && bundle exec #{cmd}") 4 system("export DISPLAY=:99.0 && bundle exec #{cmd}")
5 raise "#{cmd} failed!" unless $?.exitstatus == 0 5 raise "#{cmd} failed!" unless $?.exitstatus == 0
script/cucumber
@@ -1,10 +0,0 @@ @@ -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