Skip to content

Commit

Permalink
Removed cucumber cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
schof committed Nov 23, 2011
1 parent 1477ac7 commit 6fa5c2c
Show file tree
Hide file tree
Showing 102 changed files with 11 additions and 3,616 deletions.
12 changes: 2 additions & 10 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,8 @@ group :test do
gem 'rcov'
gem 'faker'
gem 'shoulda-matchers', '~> 1.0.0'
end

group :cucumber do
gem 'cucumber-rails', '1.0.0'
gem 'database_cleaner', '= 0.6.7'
gem 'nokogiri'
gem 'capybara', '1.0.1'
gem 'factory_girl_rails', '~> 1.4.0'
gem 'faker'
gem 'launchy'
gem 'capybara'
gem 'database_cleaner'
end

group :ci do
Expand Down
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,9 @@ tests for the core project.
$ cd core
$ bundle exec rake test_app

Now you can run just the specs, just the features or everything together
You can run all of the tests with a single command

$ bundle exec rake spec
$ bundle exec rake cucumber
$ bundle exec rake #=> 'this will run both spec and cucumber tests for the gem'
$ bundle exec rake

If you want to run specs for only a single spec file

Expand All @@ -142,14 +140,6 @@ If you want to run a particular line of spec

$ bundle exec rspec spec/models/state_spec.rb:7

If you want to run a single cucumber feature

$ bundle exec cucumber features/admin/orders.feature --require features

If you want to run a particular scenario then include the line number

$ bundle exec cucumber features/admin/orders.feature:3 --require features


Contributing
------------
Expand Down
5 changes: 0 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ def run_all_tests(database_name)
sh "cd #{gem_name} && #{$0} test_app DB_NAME='#{database_name}'"
sh "cd #{gem_name} && #{$0} spec"
end

#%w(api auth core promo).each do |gem_name|
#puts "########################### #{gem_name}|#{database_name} (features) ###########################"
#sh "cd #{gem_name} && bundle exec cucumber -p ci"
#end
end

desc "Generates a dummy app for testing for every Spree engine"
Expand Down
4 changes: 1 addition & 3 deletions api/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ require 'rake/testtask'
require 'rake/packagetask'
require 'rubygems/package_task'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'spree/core/testing_support/common_rake'

RSpec::Core::RakeTask.new
Cucumber::Rake::Task.new

task :default => [:spec, :cucumber ]
task :default => :spec

spec = eval(File.read('spree_api.gemspec'))

Expand Down
16 changes: 0 additions & 16 deletions api/features/countries.feature

This file was deleted.

19 changes: 0 additions & 19 deletions api/features/inventory_units.feature

This file was deleted.

19 changes: 0 additions & 19 deletions api/features/line_items.feature

This file was deleted.

18 changes: 0 additions & 18 deletions api/features/orders.feature

This file was deleted.

15 changes: 0 additions & 15 deletions api/features/orders_description.feature

This file was deleted.

29 changes: 0 additions & 29 deletions api/features/products.feature

This file was deleted.

18 changes: 0 additions & 18 deletions api/features/shipment.feature

This file was deleted.

16 changes: 0 additions & 16 deletions api/features/states.feature

This file was deleted.

19 changes: 0 additions & 19 deletions api/features/step_definitions/api_steps.rb

This file was deleted.

Loading

0 comments on commit 6fa5c2c

Please sign in to comment.