Sha256: 94fbe81f1c5bde86580f4fb58d5a49260249cc1dff66b84b882e31e92c957b89

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 Bytes

Contents

Given /^the environment variable (.+) is "(.+)"$/ do |variable, value|
  set_env(variable, value)
end

Then /^the exit status will be "(.+)"$/ do |error|
  # Ruby 1.9.3 sucks
  klass = error.split('::').inject(Stove) { |c, n| c.const_get(n) }
  assert_exit_status(klass.exit_code)
end

When /^the CLI options are all off$/ do
  class Stove::Cli
    private
      def options
        @options ||= {
          path:      Dir.pwd,
          git:       false,
          github:    false,
          devodd:    false,
          remote:    'origin',
          branch:    'master',
          jira:      false,
          upload:    false,
          changelog: false,
          log_level: :fatal,
        }
      end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stove-1.1.2 features/step_definitions/cli_steps.rb
stove-1.1.0 features/step_definitions/cli_steps.rb