features/gem_package.feature in hoc-0.6 vs features/gem_package.feature in hoc-0.7

- old
+ new

@@ -1,22 +1,22 @@ Feature: Gem Package As a source code writer I want to be able to package the Gem into .gem file Scenario: Gem can be packaged + Given It is Unix Given I have a "execs.rb" file with content: - """ - #!/usr/bin/env ruby - require 'rubygems' - spec = Gem::Specification::load('./spec.rb') - fail 'no executables' if spec.executables.empty? - """ + """ + #!/usr/bin/env ruby + require 'rubygems' + spec = Gem::Specification::load('./spec.rb') + fail 'no executables' if spec.executables.empty? + """ When I run bash: - """ - set -e - cd hoc - gem build hoc.gemspec - gem specification --ruby hoc-*.gem > ../spec.rb - cd .. - ruby execs.rb - """ + """ + cd hoc + gem build hoc.gemspec + gem specification --ruby hoc-*.gem > ../spec.rb + cd .. + ruby execs.rb + """ Then Exit code is zero