<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Rakefile</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -39,7 +39,7 @@ describe Rakismet::Base do
     it &quot;should build url with host&quot; do
       host = &quot;api.antispam.typepad.com&quot;
       Rakismet::HOST = host
-      Net::HTTP.should_receive(:start).with(host).and_yield(stub_everything(:http))
+      Net::HTTP.should_receive(:start).with(host).and_yield(mock(:http).as_null_object)
       Rakismet::Base.validate_key
     end
   end
@@ -53,7 +53,7 @@ describe Rakismet::Base do
     it &quot;should build url with API key for the correct host&quot; do
       host = &quot;api.antispam.typepad.com&quot;
       Rakismet::HOST = host
-      Net::HTTP.should_receive(:start).with(&quot;#{Rakismet::KEY}.#{host}&quot;).and_yield(stub_everything(:http))
+      Net::HTTP.should_receive(:start).with(&quot;#{Rakismet::KEY}.#{host}&quot;).and_yield(mock(:http).as_null_object)
       Rakismet::Base.send(:akismet_call, 'bogus-function')
     end
     </diff>
      <filename>spec/models/base_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,3 +6,23 @@ require 'spec/rails'
 Spec::Runner.configure do |config|
 
 end
+
+class Class
+  # Creates a new subclass of self, with a name &quot;under&quot; our own name. Example:
+  #
+  #     x = Foo::Bar.subclass('Zap'){}
+  #     x.name # =&gt; Foo::Bar::Zap_1
+  #     x.superclass.name # =&gt; Foo::Bar
+  #
+  # Removed from RSpec after 1.1.something; reproduced here because much of the
+  # spec suite was already written with dynamic class creation.
+  def subclass(base_name, &amp;body)
+    klass = Class.new(self)
+    class_name = &quot;#{self.name}_#{base_name}&quot;
+    instance_eval do
+      const_set(class_name, klass)
+    end
+    klass.instance_eval(&amp;body)
+    klass
+  end
+end
\ No newline at end of file</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>71eeb6cb718225a0debeee5c5eecfe7eeaf3fc95</id>
    </parent>
  </parents>
  <author>
    <name>Josh French</name>
    <email>josh@vitamin-j.com</email>
  </author>
  <url>http://github.com/jfrench/rakismet/commit/17f871240562db886448d4a682e0dee0967c8f71</url>
  <id>17f871240562db886448d4a682e0dee0967c8f71</id>
  <committed-date>2009-07-03T08:49:05-07:00</committed-date>
  <authored-date>2009-07-03T08:27:33-07:00</authored-date>
  <message>Add Rakefile and update specs to run under recent versions of RSpec</message>
  <tree>ae5d7ca80da5b8c09c5b28086ac2fde4dcc54324</tree>
  <committer>
    <name>Josh French</name>
    <email>josh@vitamin-j.com</email>
  </committer>
</commit>
