Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
calavera committed Feb 28, 2012
1 parent a1a3e23 commit a1deca5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -28,7 +28,7 @@ report_handlers << MiniTest::Chef::Handler.new
2. Write your tests as normal MiniTest cases extending from MiniTest::Chef::TestCase:

```ruby
class TestNginx < MiniTest::Chef::TestUnit
class TestNginx < MiniTest::Chef::TestCase
def test_config_file_exist
assert File.exist?('/etc/nginx.conf')
end
Expand All @@ -38,8 +38,8 @@ end
You still have access to Chef's `run_status`, `node` and `run_context` from your tests:

```ruby
class TestNginx < MiniTest::Chef::TestUnit
def test_config_file_exist
class TestNginx < MiniTest::Chef::TestCase
def test_succeed
assert run_status.success?
end
end
Expand Down

0 comments on commit a1deca5

Please sign in to comment.