Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (38 sloc) 2.357 kb
Feature: Write examples for gem packages
Express an expectation that a gem package will be installed:
chef_run.should install_gem_package 'foo'
Scenario: Gem package resource
Given a Chef cookbook with a recipe that declares a gem package resource
And the recipe has a spec example that expects the gem package to be installed
When the recipe example is successfully run
Then the gem package will not have been installed
Scenario: Package resource with default action
Given a Chef cookbook with a recipe that declares a gem package resource with no action specified
And the recipe has a spec example that expects the gem package to be installed
When the recipe example is successfully run
Then the gem package will not have been installed
Scenario: Package resource with fixed version
Given a Chef cookbook with a recipe that declares a gem package resource at a fixed version
And the recipe has a spec example that expects the gem package to be installed at that version
When the recipe example is successfully run
Then the gem package will not have been installed
Scenario: Package resource with fixed version and default action
Given a Chef cookbook with a recipe that declares a gem package resource at a fixed version with no action specified
And the recipe has a spec example that expects the gem package to be installed at that version
When the recipe example is successfully run
Then the gem package will not have been installed
Scenario: Upgrade a package
Given a Chef cookbook with a recipe that upgrades a gem package
And the recipe has a spec example that expects the gem package to be upgraded
When the recipe example is successfully run
Then the gem package will not have been upgraded
Scenario: Remove a package
Given a Chef cookbook with a recipe that removes a gem package
And the recipe has a spec example that expects the gem package to be removed
When the recipe example is successfully run
Then the gem package will not have been removed
Scenario: Purge a package
Given a Chef cookbook with a recipe that purges a gem package
And the recipe has a spec example that expects the gem package to be purged
When the recipe example is successfully run
Then the gem package will not have been purged
Jump to Line
Something went wrong with that request. Please try again.