Skip to content

Commit

Permalink
Moved simplecov_setup into lib folder
Browse files Browse the repository at this point in the history
As simplecov_setup is a runtime dependency of the cucumber bin script it
should not be placed into spec/ folder as there should be only test
parts be placed. The old code bites us at SUSE as all tests are split
into a testsuite package which results in a currently broken cucumber.
  • Loading branch information
tboerger committed Jul 24, 2015
1 parent 925a673 commit 0c79a47
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bin/cucumber
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env ruby
$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')

load File.expand_path(File.dirname(__FILE__) + '/../spec/simplecov_setup.rb')

require 'simplecov_setup'
require 'cucumber/rspec/disable_option_parser'
require 'cucumber/cli/main'
# The dup is to keep ARGV intact, so that tools like ruby-debug can respawn.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# For Travis....
require 'cucumber/encoding'

load File.expand_path(File.dirname(__FILE__) + '/../spec/simplecov_setup.rb')
require 'simplecov_setup'

require 'pry'

Expand Down

0 comments on commit 0c79a47

Please sign in to comment.