Sha256: 85976f066eaa02958e3787dea3309de510103477faea204542f8ff5b0266c5f9
Contents?: true
Size: 783 Bytes
Versions: 21
Compression:
Stored size: 783 Bytes
Contents
require 'spec_helper' describe "ey recipes download" do given "integration" after(:each) do FileUtils.rm_rf('cookbooks') end def command_to_run(opts) cmd = "recipes download" cmd << " --environment #{opts[:env]}" if opts[:env] cmd end def verify_ran(scenario) @out.should =~ /Recipes downloaded successfully for #{scenario[:environment]}/ File.read('cookbooks/README').should == "Remove this file to clone an upstream git repository of cookbooks\n" end it_should_behave_like "it takes an environment name" it "fails when cookbooks/ already exists" do api_scenario "one app, one environment" Dir.mkdir("cookbooks") ey "recipes download", :expect_failure => true @err.should match(/cookbooks.*already exists/i) end end
Version data entries
21 entries across 21 versions & 1 rubygems