Sha256: 810bb74e3e678b4343dce7fec7554791bcb45e75a6ac8180d02630b4c8b59334

Contents?: true

Size: 562 Bytes

Versions: 21

Compression:

Stored size: 562 Bytes

Contents

require 'spec_helper'

describe "ey recipes upload" do
  given "integration"

  define_git_repo('+cookbooks') do |git_dir|
    git_dir.join("cookbooks").mkdir
    File.open(git_dir.join("cookbooks/file"), "w"){|f| f << "boo" }
  end
  use_git_repo('+cookbooks')

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

  def verify_ran(scenario)
    @out.should =~ /Recipes uploaded successfully for #{scenario[:environment]}/
  end

  it_should_behave_like "it takes an environment name"
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
engineyard-1.2.1 spec/ey/recipes/upload_spec.rb
engineyard-1.2.0 spec/ey/recipes/upload_spec.rb
engineyard-1.1.3 spec/ey/recipes/upload_spec.rb
engineyard-1.1.2 spec/ey/recipes/upload_spec.rb
engineyard-1.1.1 spec/ey/recipes/upload_spec.rb
engineyard-1.1.0 spec/ey/recipes/upload_spec.rb
engineyard-1.0.2 spec/ey/recipes/upload_spec.rb
engineyard-1.0.1 spec/ey/recipes/upload_spec.rb
engineyard-1.0.0 spec/ey/recipes/upload_spec.rb
engineyard-0.10.0 spec/ey/recipes/upload_spec.rb
engineyard-0.9.0 spec/ey/recipes/upload_spec.rb
engineyard-0.8.2 spec/ey/recipes/upload_spec.rb
engineyard-0.8.1 spec/ey/recipes/upload_spec.rb
engineyard-0.8.0 spec/ey/recipes/upload_spec.rb
engineyard-0.7.1 spec/ey/recipes/upload_spec.rb
engineyard-0.7.0 spec/ey/recipes/upload_spec.rb
engineyard-0.5.5 spec/ey/recipes/upload_spec.rb
engineyard-0.5.4 spec/ey/recipes/upload_spec.rb
engineyard-0.5.3 spec/ey/recipes/upload_spec.rb
engineyard-0.5.2 spec/ey/recipes/upload_spec.rb