diff options
Diffstat (limited to 'spec/integration/knife')
-rw-r--r-- | spec/integration/knife/upload_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/knife/upload_spec.rb b/spec/integration/knife/upload_spec.rb index 739dfa44d1..9a1717b2d9 100644 --- a/spec/integration/knife/upload_spec.rb +++ b/spec/integration/knife/upload_spec.rb @@ -159,14 +159,14 @@ EOM file "cookbooks/x/metadata.rb", "name 'x'; version '1.0.0'; depends 'x'" end - it "should warn", :chef_lt_13_only do + it "should warn", chef: "< 13" do knife("upload /cookbooks").should_succeed( stdout: "Updated /cookbooks/x\n", stderr: "WARN: Ignoring self-dependency in cookbook x, please remove it (in the future this will be fatal).\n" ) knife("diff --name-status /").should_succeed "" end - it "should fail in Chef 13", :chef_gte_13_only do + it "should fail in Chef 13", chef: ">= 13" do knife("upload /cookbooks").should_fail "" # FIXME: include the error message here end |