spec/vcloud/tools/tester/test_parameters_spec.rb in vcloud-tools-tester-0.0.1 vs spec/vcloud/tools/tester/test_parameters_spec.rb in vcloud-tools-tester-0.0.2

- old
+ new

@@ -29,9 +29,16 @@ parameters = TestParameters.new("#{@data_dir}/test_minimal_config.yaml") test_vdc = parameters.vdc_1_name expect(test_vdc).to eq("minimal-vdc-name") end + it "gives a useful error when there is no config file" do + ENV['FOG_CREDENTIAL'] = 'minimal-organisation' + expect { + TestParameters.new("#{@data_dir}/non_existent_testing_config.yaml") + }.to raise_error(ArgumentError, /Missing required file/) + end + end context "parameters required for integration tests" do it "contains all the parameters required for the vCloud Launcher tests" do