# Minitest examples?

**URL:** <https://discourse.chef.io/t/minitest-examples/2180>\
**Category:** Chef Infra (archive)\
**Created:** [November 14, 2011, 9:25am UTC](https://discourse.chef.io/t/minitest-examples/2180 "2011-11-14T09:25:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Berry](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bryan_berry/32/213_2.png) [@Bryan\_Berry](https://discourse.chef.io/u/Bryan_Berry)\
**Post date:** [November 14, 2011, 9:25am UTC](https://discourse.chef.io/t/minitest-examples/2180/1 "2011-11-14T09:25:12Z")

</div>

I would really like to try out fujin’s Minitest  
[https://github.com/fujin/minitest-cookbook](https://github.com/fujin/minitest-cookbook)

Does anyone know of any examples? That would definitely help me get started

---

<div class="post-metadata">

**Author:** ![AJ\_Christensen](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/aj_christensen/32/525_2.png) [@AJ\_Christensen](https://discourse.chef.io/u/AJ_Christensen)\
**Post date:** [November 14, 2011, 9:30am UTC](https://discourse.chef.io/t/minitest-examples/2180/2 "2011-11-14T09:30:46Z")

</div>

Did you have a look at the test examples I included? They do some basic  
sinatra tests.

I plan to add minitest tests for our recently released pennyworth  
continuous packaging system but probably not for a week or so.

What kind of stuff are you needing help with?

—AJ

On Nov 14, 2011 10:25 PM, "Bryan Berry" [bryan.berry@gmail.com](mailto:bryan.berry@gmail.com) wrote:

> I would really like to try out fujin's Minitest  
> [https://github.com/fujin/minitest-cookbook](https://github.com/fujin/minitest-cookbook)
> 
> Does anyone know of any examples? That would definitely help me get  
> started

---

<div class="post-metadata">

**Author:** ![Bryan\_Berry](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bryan_berry/32/213_2.png) [@Bryan\_Berry](https://discourse.chef.io/u/Bryan_Berry)\
**Post date:** [November 14, 2011, 9:36am UTC](https://discourse.chef.io/t/minitest-examples/2180/3 "2011-11-14T09:36:04Z")

</div>

perhaps I am retarded, I don't see the sinatra examples in your github repo  
for minitest.

tests I would like to do:

Check if a package resource actually installed a package

Check that a process is listening on port 80 after after starting the  
apache service

Check that a user has access to a directory that they should

On Mon, Nov 14, 2011 at 10:30 AM, AJ Christensen [aj@junglist.gen.nz](mailto:aj@junglist.gen.nz) wrote:

> Did you have a look at the test examples I included? They do some basic  
> sinatra tests.
> 
> I plan to add minitest tests for our recently released pennyworth  
> continuous packaging system but probably not for a week or so.
> 
> What kind of stuff are you needing help with?
> 
> —AJ
> 
> On Nov 14, 2011 10:25 PM, "Bryan Berry" [bryan.berry@gmail.com](mailto:bryan.berry@gmail.com) wrote:
> 
> > I would really like to try out fujin's Minitest  
> > [https://github.com/fujin/minitest-cookbook](https://github.com/fujin/minitest-cookbook)
> > 
> > Does anyone know of any examples? That would definitely help me get  
> > started

---

<div class="post-metadata">

**Author:** ![AJ\_Christensen](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/aj_christensen/32/525_2.png) [@AJ\_Christensen](https://discourse.chef.io/u/AJ_Christensen)\
**Post date:** [November 14, 2011, 9:39am UTC](https://discourse.chef.io/t/minitest-examples/2180/4 "2011-11-14T09:39:04Z")

</div>

[https://github.com/fujin/minitest-cookbook/blob/develop/cookbooks/minitest/recipes/examples.rb](https://github.com/fujin/minitest-cookbook/blob/develop/cookbooks/minitest/recipes/examples.rb)  
On Nov 14, 2011 10:36 PM, "Bryan Berry" [bryan.berry@gmail.com](mailto:bryan.berry@gmail.com) wrote:

> perhaps I am retarded, I don't see the sinatra examples in your github  
> repo for minitest.
> 
> tests I would like to do:
> 
> Check if a package resource actually installed a package
> 
> Check that a process is listening on port 80 after after starting the  
> apache service
> 
> Check that a user has access to a directory that they should
> 
> On Mon, Nov 14, 2011 at 10:30 AM, AJ Christensen [aj@junglist.gen.nz](mailto:aj@junglist.gen.nz)wrote:
> 
> > Did you have a look at the test examples I included? They do some basic  
> > sinatra tests.
> > 
> > I plan to add minitest tests for our recently released pennyworth  
> > continuous packaging system but probably not for a week or so.
> > 
> > What kind of stuff are you needing help with?
> > 
> > —AJ
> > 
> > On Nov 14, 2011 10:25 PM, "Bryan Berry" [bryan.berry@gmail.com](mailto:bryan.berry@gmail.com) wrote:
> > 
> > > I would really like to try out fujin's Minitest  
> > > [https://github.com/fujin/minitest-cookbook](https://github.com/fujin/minitest-cookbook)
> > > 
> > > Does anyone know of any examples? That would definitely help me get  
> > > started

---

<div class="post-metadata">

**Author:** ![Bryan\_Berry](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bryan_berry/32/213_2.png) [@Bryan\_Berry](https://discourse.chef.io/u/Bryan_Berry)\
**Post date:** [November 14, 2011, 9:47am UTC](https://discourse.chef.io/t/minitest-examples/2180/5 "2011-11-14T09:47:12Z")

</div>

so i am retarded after all

thanks again for the great cookbook Fujin

On Mon, Nov 14, 2011 at 10:39 AM, AJ Christensen [aj@junglist.gen.nz](mailto:aj@junglist.gen.nz) wrote:

> [https://github.com/fujin/minitest-cookbook/blob/develop/cookbooks/minitest/recipes/examples.rb](https://github.com/fujin/minitest-cookbook/blob/develop/cookbooks/minitest/recipes/examples.rb)  
> On Nov 14, 2011 10:36 PM, "Bryan Berry" [bryan.berry@gmail.com](mailto:bryan.berry@gmail.com) wrote:
> 
> > perhaps I am retarded, I don't see the sinatra examples in your github  
> > repo for minitest.
> > 
> > tests I would like to do:
> > 
> > Check if a package resource actually installed a package
> > 
> > Check that a process is listening on port 80 after after starting the  
> > apache service
> > 
> > Check that a user has access to a directory that they should
> > 
> > On Mon, Nov 14, 2011 at 10:30 AM, AJ Christensen [aj@junglist.gen.nz](mailto:aj@junglist.gen.nz)wrote:
> > 
> > > Did you have a look at the test examples I included? They do some basic  
> > > sinatra tests.
> > > 
> > > I plan to add minitest tests for our recently released pennyworth  
> > > continuous packaging system but probably not for a week or so.
> > > 
> > > What kind of stuff are you needing help with?
> > > 
> > > —AJ
> > > 
> > > On Nov 14, 2011 10:25 PM, "Bryan Berry" [bryan.berry@gmail.com](mailto:bryan.berry@gmail.com) wrote:
> > > 
> > > > I would really like to try out fujin's Minitest  
> > > > [https://github.com/fujin/minitest-cookbook](https://github.com/fujin/minitest-cookbook)
> > > > 
> > > > Does anyone know of any examples? That would definitely help me get  
> > > > started
