Skip to content

Defines runner methods for ChefSpec matchers#112

Merged
bflad merged 1 commit into
sous-chefs:masterfrom
carmstrong:master
Apr 6, 2014
Merged

Defines runner methods for ChefSpec matchers#112
bflad merged 1 commit into
sous-chefs:masterfrom
carmstrong:master

Conversation

@carmstrong

Copy link
Copy Markdown
Contributor

This enables us to target these resources by using chef_run.docker_image('resource-name').

Example:

  it 'notifies the database container to redeploy' do
    image = chef_run.docker_image('database')
    expect(image).to notify('docker_container[database]').to(:redeploy).immediately
  end

This enables us to target these resources by using ```ruby chef_run.docker_image('resource-name')```.

Example:

```ruby
  it 'notifies the database container to redeploy' do
    image = chef_run.docker_image('database')
    expect(image).to notify('docker_container[database]').to(:redeploy).immediately
  end
```
@bflad

bflad commented Apr 6, 2014

Copy link
Copy Markdown
Contributor

Awesome! I'll merge and fix that trailing space. Expect some more ChefSpec/ServerSpec love today.

bflad added a commit that referenced this pull request Apr 6, 2014
Defines runner methods for ChefSpec matchers
@bflad bflad merged commit 2d3390b into sous-chefs:master Apr 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants