<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -57,7 +57,9 @@ module Merb
           params = args.last.is_a?(Hash) ? args.last : {}
           if example_group_block
             params[:when] = params[:when] || params[:given]
-            ret.module_eval %{it_should_behave_like &quot;#{params[:when]}&quot;} if params[:when]
+            [params[:when]].flatten.compact.each do |w|
+              ret.module_eval %{it_should_behave_like &quot;#{w}&quot;}
+            end
           end
         end
         alias context describe</diff>
      <filename>merb-core/lib/merb-core/test/test_ext/rspec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,12 +4,26 @@ given &quot;we set an ivar&quot; do
   @foo = 7
 end
 
+given &quot;we set another ivar&quot; do
+  @pi = 3.14
+end
+
 describe &quot;a spec that reuses a given block&quot;, :given =&gt; &quot;we set an ivar&quot; do
   it &quot;sees the results of the given block&quot; do
     @foo.should == 7
   end
 end
 
+describe &quot;a spec that reuses many given blocks&quot;, :given =&gt; [&quot;we set an ivar&quot;, &quot;we set another ivar&quot;] do
+  it &quot;sees the results of the first given block&quot; do
+    @foo.should == 7
+  end
+
+  it &quot;sees the results of the second given block&quot; do
+    @pi.should == 3.14
+  end
+end
+
 describe &quot;a spec that does not reuse a given block&quot; do
   it &quot;does not see the given block&quot; do
     @foo.should == nil</diff>
      <filename>merb-core/spec/public/test/rspec_ext_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8b54dc935ed301551570c35adfb6e6151fb498b0</id>
    </parent>
  </parents>
  <author>
    <name>Sam Merritt</name>
    <login></login>
    <email>spam@andcheese.org</email>
  </author>
  <url>http://github.com/wycats/merb/commit/65a6e7f0a14ccfb1cad8f5d3f0940911e442b914</url>
  <id>65a6e7f0a14ccfb1cad8f5d3f0940911e442b914</id>
  <committed-date>2009-02-24T12:08:54-08:00</committed-date>
  <authored-date>2009-02-24T11:59:56-08:00</authored-date>
  <message>describe can use multiple given blocks

For example, you can now write

given &quot;some food&quot; do
  @food = &quot;pizza&quot;
end

given &quot;some drink&quot; do
  @drink = &quot;beer&quot;
end

describe &quot;Something&quot;, :given =&gt; [&quot;some food&quot;, &quot;some drink&quot;] do
  it &quot;should have dinner&quot; do
    # has @food and @drink set to pizza and beer, respectively
  end
end</message>
  <tree>b7c6782f8837b7f878b04c6a67570f1c71472a0f</tree>
  <committer>
    <name>Carl Lerche</name>
    <login></login>
    <email>carllerche@mac.com</email>
  </committer>
</commit>
