<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,9 +30,16 @@ a different approach.  Oh, and apparently this is an implementation of the Objec
     define_models do
       time 2007, 6, 1
     
+      model Role do
+        stub :owner, :name =&gt; 'owner'
+        stub :author, :name =&gt; 'author'
+      end
+    
       model User do
         stub :name =&gt; 'bob', :admin =&gt; false
         stub :admin, :admin =&gt; true # inherits from default fixture
+        stub :author, :roles =&gt; [all_stubs(:author_role)]
+        stub :owner, :roles =&gt; [all_stubs(:author_role), all_stubs(:owner_role)]
       end
     
       model Post do</diff>
      <filename>README</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ea65221d389bb673dff15e71dd6ac31cbc852e23</id>
    </parent>
  </parents>
  <author>
    <name>Lawrence Pit</name>
    <email>lawrence.pit@gmail.com</email>
  </author>
  <url>http://github.com/technoweenie/model_stubbing/commit/b73d7a7595cdc23acbc7194da9fa478ea068d87b</url>
  <id>b73d7a7595cdc23acbc7194da9fa478ea068d87b</id>
  <committed-date>2008-06-17T01:21:43-07:00</committed-date>
  <authored-date>2008-06-17T01:21:43-07:00</authored-date>
  <message>Added example of handling many-to-many stub setup</message>
  <tree>d9c243d25114d077227c26270ca2d45a05a2bb4f</tree>
  <committer>
    <name>Lawrence Pit</name>
    <email>lawrence.pit@gmail.com</email>
  </committer>
</commit>
