Sha256: 9d2c5c846ddf695d7d4c712896753c7c986f009035f60d388f3de1787fed8275

Contents?: true

Size: 812 Bytes

Versions: 9

Compression:

Stored size: 812 Bytes

Contents

require 'spec_helper'

describe "ey recipes apply" do
  given "integration"

  def command_to_run(opts)
    cmd = "recipes apply"
    cmd << " -e #{opts[:environment]}" if opts[:environment]
    cmd << " --account #{opts[:account]}" if opts[:account]
    cmd
  end

  def verify_ran(scenario)
    @out.should =~ /Uploaded recipes started for #{scenario[:environment]}/
  end

  it_should_behave_like "it takes an environment name and an account name"

  it "fails when given a bad option" do
    ey "web enable --lots --of --bogus --options", :expect_failure => true
    @err.should include("Unknown switches")
  end
end

describe "ey recipes apply with an ambiguous git repo" do
  given "integration"
  def command_to_run(_) "recipes apply" end
  it_should_behave_like "it requires an unambiguous git repo"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
engineyard-1.3.15 spec/ey/recipes/apply_spec.rb
engineyard-1.3.14 spec/ey/recipes/apply_spec.rb
engineyard-1.3.13 spec/ey/recipes/apply_spec.rb
engineyard-1.3.12 spec/ey/recipes/apply_spec.rb
engineyard-1.3.11 spec/ey/recipes/apply_spec.rb
engineyard-1.3.10 spec/ey/recipes/apply_spec.rb
engineyard-1.3.7 spec/ey/recipes/apply_spec.rb
engineyard-1.3.4 spec/ey/recipes/apply_spec.rb
engineyard-1.3.3 spec/ey/recipes/apply_spec.rb