How to execute a snippet script?


#1

Cucumber inserts Ruby scripts e.g.

Feature: `#!/usr/bin/env ruby
   title = (ENV['TM_FILENAME'] || 'title').gsub(/..*$/, '').gsub(/[-_]/, ' ')
   puts title[0..0].upcase + title[1..-1].downcase`

Is this supposed to automatically execute? Do I execute it? How?

Thank you


#2

Atom doesn’t have built-in support for executing code. You may want to look at the build package.