class Frameworks::Cucumber
Public Instance Methods
command(*args)
click to toggle source
# File lib/soundcheck/frameworks/cucumber.rb, line 17 def command(*args) args = (args.empty? ? default_args : filter(*args)) return nil if args.empty? to_run = [] to_run << "bundle exec" if has_gemfile? to_run << "cucumber #{args.join(" ")}".strip to_run.join(" ") end
default_args()
click to toggle source
# File lib/soundcheck/frameworks/cucumber.rb, line 13 def default_args ["features"] end
filter(*args)
click to toggle source
# File lib/soundcheck/frameworks/cucumber.rb, line 9 def filter(*args) args.select { |arg| arg =~ /\.feature$/ } end
present?()
click to toggle source
# File lib/soundcheck/frameworks/cucumber.rb, line 5 def present? project.has_file?("features") end
Private Instance Methods
has_gemfile?()
click to toggle source
# File lib/soundcheck/frameworks/cucumber.rb, line 29 def has_gemfile? project.has_file?("Gemfile") end