module Support
  # Cucumber rake tasks don't exit with a failing code for failing tests, so
  # we need to use shell commands instead.
  class Run
    attr_writer :options

    def inialize
      @options = []
    end

    def execute
      @passed = system("cucumber #{@options.join(' ')}")
    end

    def passed?
      @passed
    end
  end
end
