Skip to content

Commit

Permalink
Don't run knife plugin features on Chef 0.9.x.
Browse files Browse the repository at this point in the history
Knife gained the ability to load plugins from gems in 0.10.0.
  • Loading branch information
Andrew Crump committed Sep 28, 2011
1 parent e92471f commit 617e068
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -9,8 +9,9 @@ task :default => [:install, :spec, :features]
Bundler.setup
Bundler::GemHelper.install_tasks

require 'chef'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format pretty"
t.cucumber_opts = "features --format pretty#{' -t ~@requires_chef_10' if Chef::VERSION.start_with? '0.9.'}"
end

RSpec::Core::RakeTask.new
Expand Down
1 change: 1 addition & 0 deletions features/generate_placeholder_examples.feature
@@ -1,3 +1,4 @@
@requires_chef_10
Feature: Generate placeholder examples

In order to encourage cookbooks to have examples
Expand Down

0 comments on commit 617e068

Please sign in to comment.