Guest User

Untitled

a guest
Apr 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. args = ARGV.map do |arg|
  4. name, line = *arg.split(':')
  5. line = ":#{line}" if line
  6. "features/#{name}.feature#{line}"
  7. end
  8.  
  9. script = if File.executable?('script/cucumber')
  10. 'script/cucumber'
  11. else
  12. 'cucumber'
  13. end
  14.  
  15. exec(script, *args)
Add Comment
Please, Sign In to add comment