Permalink
Browse files

adjust tests to enhanced validation warnings

  • Loading branch information...
florianpilz committed Mar 13, 2011
1 parent 7819a17 commit 11a9ad0a64aa5d04400ccef6ac28e78a2af75fb4
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/parser_spec.rb
View
@@ -116,25 +116,25 @@
describe "warnings if validation failed" do
it "should display a warning if validation value_in_set failed" do
result = `ruby spec/programs/example.rb --severity 1`
- result.strip.should == "Parameter for severity must be in [4,5,6,7,8]"
+ result.strip.should == "Parameter for --severity must be in [4,5,6,7,8]"
end
it "should display a warning if validation value_matches failed" do
result = `ruby spec/programs/example.rb --mutation Bazinga`
- result.strip.should == "Parameter for mutation must match /Mutation/"
+ result.strip.should == "Parameter for --mutation must match /Mutation/"
end
it "should display a warning if validation value_satisfies failed" do
result = `ruby spec/programs/example.rb --chance 300.21`
- result.strip.should == "Parameter for chance must satisfy given conditions (see description)"
+ result.strip.should == "Parameter for --chance must satisfy given conditions (see description)"
end
it "should validate all given validations" do
result = `ruby spec/programs/another_example.rb --eat-cake VanillaBrownie`
- result.strip.should == "Parameter for eat_cake must match /Cake/"
+ result.strip.should == "Parameter for --eat-cake must match /Cake/"
result = `ruby spec/programs/another_example.rb --eat-cake 2VanillaCakes`
- result.strip.should == "Parameter for eat_cake must satisfy given conditions (see description)"
+ result.strip.should == "Parameter for --eat-cake must satisfy given conditions (see description)"
end
end

0 comments on commit 11a9ad0

Please sign in to comment.