<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -50,7 +50,7 @@ Spec::Rake::SpecTask.new('spec') do |t|
 end
 
 RCov::VerifyTask.new(:verify_coverage =&gt; :specs_with_rcov) do |t|
-  t.threshold = 97.0
+  t.threshold = 97.03
   t.index_html = 'coverage/index.html'
 end
 </diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require 'rubygems'
-gem :activerecord, '&gt;= 2.1.0'
-gem :activesupport, '&gt;= 2.1.0'
+gem 'activerecord', '&gt;= 2.1.0'
+gem 'activesupport', '&gt;= 2.1.0'
 
 require 'active_support'
 require 'activerecord'</diff>
      <filename>castronaut.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,7 +42,7 @@ describe Castronaut::Adapters::Development::User do
       describe &quot;when the credentials are invalid&quot; do
         
         it &quot;returns a Castronaut::AuthenticationResult object with the unable to authenticate user message&quot; do
-          Castronaut::Adapters::Development::User.stub!(:find_by_login).and_return(stub_everything(:crypted_password =&gt; &quot;a&quot;, :salt =&gt; &quot;b&quot;))
+          Castronaut::Adapters::Development::User.stub!(:find_by_login).and_return(stub(:crypted_password =&gt; &quot;a&quot;, :salt =&gt; &quot;b&quot;).as_null_object)
           Castronaut::Adapters::Development::User.authenticate('bob', '1234').error_message.should == &quot;Unable to authenticate the username bob&quot;
         end
         </diff>
      <filename>spec/castronaut/adapters/development/user_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,14 +5,14 @@ describe Castronaut::Adapters::Ldap::User do
   describe &quot;authenticate&quot; do
     
     it &quot;attempts to authenticate the user&quot; do
-      connection = stub_everything
+      connection = stub({}).as_null_object
       Net::LDAP.stub!(:new).and_return(connection)
       connection.should_receive(:authenticate).with('cn=bob, dc=example, dc=com, ', '1234').and_return(nil)
       Castronaut::Adapters::Ldap::User.authenticate('cn=bob, dc=example, dc=com', '1234')
     end
     
     it &quot;returns a failed to authenticate message when authentication fails&quot; do
-      connection = stub_everything
+      connection = stub({}).as_null_object
       Net::LDAP.stub!(:new).and_return(connection)
       connection.stub!(:authenticate).and_return(nil)
       connection.stub!(:bind).and_return(false)</diff>
      <filename>spec/castronaut/adapters/ldap/user_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -85,7 +85,7 @@ describe Castronaut::Adapters::RestfulAuthentication::User do
       describe &quot;when the credentials are invalid&quot; do
         
         it &quot;returns a Castronaut::AuthenticationResult object with the unable to authenticate user message&quot; do
-          Castronaut::Adapters::RestfulAuthentication::User.stub!(:find_by_login).and_return(stub_everything(:crypted_password =&gt; &quot;a&quot;, :salt =&gt; &quot;b&quot;))
+          Castronaut::Adapters::RestfulAuthentication::User.stub!(:find_by_login).and_return(stub(:crypted_password =&gt; &quot;a&quot;, :salt =&gt; &quot;b&quot;).as_null_object)
           Castronaut::Adapters::RestfulAuthentication::User.authenticate('bob', '1234').error_message.should == &quot;Unable to authenticate the username bob&quot;
         end
         </diff>
      <filename>spec/castronaut/adapters/restful_authentication/user_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ describe Castronaut::Configuration do
       config = Castronaut::Configuration.new
       config.stub!(:parse_config_into_settings)
       config.stub!(:connect_activerecord)
-      config.stub!(:setup_logger).and_return(stub_everything)
+      config.stub!(:setup_logger).and_return(stub({}).as_null_object)
       Castronaut::Configuration.stub!(:new).and_return(config)
 
       Castronaut::Configuration.load.config_file_path.should == './castronaut.yml'
@@ -27,7 +27,7 @@ describe Castronaut::Configuration do
       config = Castronaut::Configuration.new
       config.stub!(:parse_config_into_settings)
       config.stub!(:connect_activerecord)
-      config.stub!(:setup_logger).and_return(stub_everything)
+      config.stub!(:setup_logger).and_return(stub({}).as_null_object)
       Castronaut::Configuration.stub!(:new).and_return(config)
 
       Castronaut::Configuration.load(&quot;/foo/bar/baz&quot;).config_file_path.should == '/foo/bar/baz'
@@ -39,7 +39,7 @@ describe Castronaut::Configuration do
       config = Castronaut::Configuration.new
       config.stub!(:parse_config_into_settings)
       config.stub!(:connect_activerecord)
-      config.stub!(:setup_logger).and_return(stub_everything)
+      config.stub!(:setup_logger).and_return(stub({}).as_null_object)
       Castronaut::Configuration.stub!(:new).and_return(config)
 
       Castronaut::Configuration.load(@test_config_file)
@@ -52,7 +52,7 @@ describe Castronaut::Configuration do
       config = Castronaut::Configuration.new
       config.stub!(:parse_config_into_settings)
       config.stub!(:connect_activerecord)
-      config.stub!(:setup_logger).and_return(stub_everything)
+      config.stub!(:setup_logger).and_return(stub({}).as_null_object)
       Castronaut::Configuration.stub!(:new).and_return(config)
 
       Castronaut::Configuration.load(@test_config_file).config_hash = config_hash
@@ -72,7 +72,7 @@ describe Castronaut::Configuration do
       config = Castronaut::Configuration.new
       config.stub!(:connect_activerecord)
       Castronaut::Configuration.stub!(:new).and_return(config)
-      Hodel3000CompliantLogger.should_receive(:new).with(&quot;log/castronaut.log&quot;, anything).and_return(stub_everything)
+      Hodel3000CompliantLogger.should_receive(:new).with(&quot;log/castronaut.log&quot;, anything).and_return(stub({}).as_null_object)
 
       Castronaut::Configuration.load(@test_config_file)
     end
@@ -90,7 +90,7 @@ describe Castronaut::Configuration do
       config.stub!(:connect_activerecord)
       Castronaut::Configuration.stub!(:new).and_return(config)
 
-      Hodel3000CompliantLogger.should_receive(:new).with(&quot;log/castronaut.log&quot;, &quot;daily&quot;).and_return(stub_everything)
+      Hodel3000CompliantLogger.should_receive(:new).with(&quot;log/castronaut.log&quot;, &quot;daily&quot;).and_return(stub({}).as_null_object)
 
       Castronaut::Configuration.load(@test_config_file)
     end</diff>
      <filename>spec/castronaut/configuration_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -70,7 +70,7 @@ describe Castronaut::Models::LoginTicket do
       describe &quot;and it has already been consumed&quot; do
         
         it &quot;returns a ticket result with the AlreadyConsumedMessage&quot; do
-          login_ticket = stub_everything(:consumed? =&gt; true)
+          login_ticket = stub(:consumed? =&gt; true).as_null_object
           
           Castronaut::TicketResult.should_receive(:new).with(login_ticket, LoginTicket::AlreadyConsumedMessage)
           LoginTicket.stub!(:find_by_ticket).and_return(login_ticket)</diff>
      <filename>spec/castronaut/models/login_ticket_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -69,7 +69,7 @@ describe Castronaut::Models::ProxyGrantingTicket do
     describe &quot;when proxy granting ticket url is valid&quot; do
  
       it &quot;creates a new net/http connection to uri host and port&quot; do
-        https = stub_everything
+        https = stub({}).as_null_object
         Net::HTTP.stub!(:new).and_return(https)  
         
         uri = stub('uri', :host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
@@ -80,10 +80,10 @@ describe Castronaut::Models::ProxyGrantingTicket do
       end
       
       it &quot;sets the new net/http connection to use ssl&quot; do
-        https = stub_everything
+        https = stub({}).as_null_object
         Net::HTTP.stub!(:new).and_return(https)  
         
-        uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+        uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
         URI.stub!(:parse).and_return(uri)
         
         https.should_receive(:use_ssl=).with(true)
@@ -94,10 +94,10 @@ describe Castronaut::Models::ProxyGrantingTicket do
       end
       
       it &quot;starts the connection&quot; do
-        https = stub_everything
+        https = stub({}).as_null_object
         Net::HTTP.stub!(:new).and_return(https)  
         
-        uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+        uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
         URI.stub!(:parse).and_return(uri)
         
         https.should_receive(:start)
@@ -108,28 +108,28 @@ describe Castronaut::Models::ProxyGrantingTicket do
       describe &quot;inside the http connection block&quot; do
         
         it &quot;intializes a new proxy granting ticket&quot; do
-          https = stub_everything
+          https = stub({}).as_null_object
           Net::HTTP.stub!(:new).and_return(https)  
 
-          uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+          uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
           URI.stub!(:parse).and_return(uri)
           
-          https.stub!(:start).and_yield(stub_everything(:request_get =&gt; stub_everything))
+          https.stub!(:start).and_yield(stub(:request_get =&gt; stub({}).as_null_object).as_null_object)
           
-          ProxyGrantingTicket.should_receive(:new).with(:service_ticket =&gt; 'service ticket', :client_hostname =&gt; '10.1.1.1').and_return(stub_everything)
+          ProxyGrantingTicket.should_receive(:new).with(:service_ticket =&gt; 'service ticket', :client_hostname =&gt; '10.1.1.1').and_return(stub({}).as_null_object)
           ProxyGrantingTicket.generate_ticket('http://example.com', '10.1.1.1', 'service ticket')
         end
         
         it &quot;dispenses a new ticket for the proxy granting ticket&quot; do
-          https = stub_everything
+          https = stub({}).as_null_object
           Net::HTTP.stub!(:new).and_return(https)  
 
-          uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+          uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
           URI.stub!(:parse).and_return(uri)
 
-          https.stub!(:start).and_yield(stub_everything(:request_get =&gt; stub_everything))
+          https.stub!(:start).and_yield(stub(:request_get =&gt; stub({}).as_null_object).as_null_object)
 
-          proxy_granting_ticket = stub_everything
+          proxy_granting_ticket = stub({}).as_null_object
           proxy_granting_ticket.should_receive(:dispense_ticket)
           ProxyGrantingTicket.stub!(:new).and_return(proxy_granting_ticket)
           
@@ -137,15 +137,15 @@ describe Castronaut::Models::ProxyGrantingTicket do
         end
 
         it &quot;dispenses a new iou for the proxy granting ticket&quot; do
-          https = stub_everything
+          https = stub({}).as_null_object
           Net::HTTP.stub!(:new).and_return(https)  
 
-          uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+          uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
           URI.stub!(:parse).and_return(uri)
 
-          https.stub!(:start).and_yield(stub_everything(:request_get =&gt; stub_everything))
+          https.stub!(:start).and_yield(stub(:request_get =&gt; stub({}).as_null_object).as_null_object)
 
-          proxy_granting_ticket = stub_everything
+          proxy_granting_ticket = stub({}).as_null_object
           proxy_granting_ticket.should_receive(:dispense_iou)
           ProxyGrantingTicket.stub!(:new).and_return(proxy_granting_ticket)
           
@@ -153,13 +153,13 @@ describe Castronaut::Models::ProxyGrantingTicket do
         end
         
         it &quot;requests the proxy granting ticket path via GET&quot; do
-          https = stub_everything
+          https = stub({}).as_null_object
           Net::HTTP.stub!(:new).and_return(https)  
 
-          uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+          uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
           URI.stub!(:parse).and_return(uri)
           http_connection = mock('httpconnection')
-          http_connection.should_receive(:request_get).with('/?pgtId=PGT-RANDOM&amp;pgtIou=PGTIOU-RANDOM').and_return(stub_everything)
+          http_connection.should_receive(:request_get).with('/?pgtId=PGT-RANDOM&amp;pgtIou=PGTIOU-RANDOM').and_return(stub({}).as_null_object)
           
           https.stub!(:start).and_yield(http_connection)
           
@@ -171,7 +171,7 @@ describe Castronaut::Models::ProxyGrantingTicket do
         describe &quot;when the request to the proxy granting ticket path is successful&quot; do
           
           it &quot;saves the proxy granting ticket&quot; do
-            https = stub_everything
+            https = stub({}).as_null_object
             Net::HTTP.stub!(:new).and_return(https)  
 
             uri = stub('uri', :host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '', :query =&gt; '')
@@ -191,7 +191,7 @@ describe Castronaut::Models::ProxyGrantingTicket do
           describe &quot;returns a ticket result&quot; do
             
             it &quot;with the proxy granting ticket&quot; do
-              https = stub_everything
+              https = stub({}).as_null_object
               Net::HTTP.stub!(:new).and_return(https)  
 
               uri = stub('uri', :host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '', :query =&gt; '')
@@ -207,10 +207,10 @@ describe Castronaut::Models::ProxyGrantingTicket do
             end
             
             it &quot;with a proxy granting ticket generated message&quot; do
-              https = stub_everything
+              https = stub({}).as_null_object
               Net::HTTP.stub!(:new).and_return(https)  
 
-              uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+              uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
               URI.stub!(:parse).and_return(uri)
               http_connection = mock('httpconnection')
               http_connection.stub!(:request_get).and_return(stub('request', :code =&gt; '200'))
@@ -223,16 +223,16 @@ describe Castronaut::Models::ProxyGrantingTicket do
             end
             
             it &quot;with a message category of success&quot; do
-              https = stub_everything
+              https = stub({}).as_null_object
               Net::HTTP.stub!(:new).and_return(https)  
 
-              uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+              uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
               URI.stub!(:parse).and_return(uri)
               http_connection = mock('httpconnection')
               http_connection.stub!(:request_get).and_return(stub('request', :code =&gt; '200'))
               https.stub!(:start).and_yield(http_connection)
 
-              proxy_granting_ticket = stub_everything(:iou =&gt; 'PGTIOU-RANDOM', :ticket =&gt; 'PGT-RANDOM', :save! =&gt; true)
+              proxy_granting_ticket = stub(:iou =&gt; 'PGTIOU-RANDOM', :ticket =&gt; 'PGT-RANDOM', :save! =&gt; true).as_null_object
               ProxyGrantingTicket.stub!(:new).and_return(proxy_granting_ticket)              
               
               ProxyGrantingTicket.generate_ticket('http://example.com', '10.1.1.1', 'service ticket').message_category.should == 'success'
@@ -247,32 +247,32 @@ describe Castronaut::Models::ProxyGrantingTicket do
            describe &quot;returns a ticket result&quot; do
 
               it &quot;with a proxy granting ticket generated message&quot; do
-                https = stub_everything
+                https = stub({}).as_null_object
                 Net::HTTP.stub!(:new).and_return(https)  
 
-                uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+                uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
                 URI.stub!(:parse).and_return(uri)
                 http_connection = mock('httpconnection')
                 http_connection.stub!(:request_get).and_return(stub('request', :code =&gt; '404'))
                 https.stub!(:start).and_yield(http_connection)
 
-                proxy_granting_ticket = stub_everything(:iou =&gt; 'PGTIOU-RANDOM', :ticket =&gt; 'PGT-RANDOM', :save! =&gt; true, :inspect =&gt; 'PGT-INSPECT')
+                proxy_granting_ticket = stub(:iou =&gt; 'PGTIOU-RANDOM', :ticket =&gt; 'PGT-RANDOM', :save! =&gt; true, :inspect =&gt; 'PGT-INSPECT').as_null_object
                 ProxyGrantingTicket.stub!(:new).and_return(proxy_granting_ticket)              
 
                 ProxyGrantingTicket.generate_ticket('http://example.com', '10.1.1.1', 'service ticket').message.should == &quot;PGT callback server responded with a bad result code '404'. PGT will not be stored.&quot;
               end
 
               it &quot;with a message category of success&quot; do
-                https = stub_everything
+                https = stub({}).as_null_object
                 Net::HTTP.stub!(:new).and_return(https)  
 
-                uri = stub_everything(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '')
+                uri = stub(:host =&gt; 'example.com', :port =&gt; 443, :path =&gt; '').as_null_object
                 URI.stub!(:parse).and_return(uri)
                 http_connection = mock('httpconnection')
-                http_connection.stub!(:request_get).and_return(stub_everything(:code =&gt; '404'))
+                http_connection.stub!(:request_get).and_return(stub(:code =&gt; '404').as_null_object)
                 https.stub!(:start).and_yield(http_connection)
 
-                proxy_granting_ticket = stub_everything(:iou =&gt; 'PGTIOU-RANDOM', :ticket =&gt; 'PGT-RANDOM', :save! =&gt; true)
+                proxy_granting_ticket = stub(:iou =&gt; 'PGTIOU-RANDOM', :ticket =&gt; 'PGT-RANDOM', :save! =&gt; true).as_null_object
                 ProxyGrantingTicket.stub!(:new).and_return(proxy_granting_ticket)              
 
                 ProxyGrantingTicket.generate_ticket('http://example.com', '10.1.1.1', 'service ticket').message_category.should == 'warn'</diff>
      <filename>spec/castronaut/models/proxy_granting_ticket_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,7 @@ describe Castronaut::Models::ProxyTicket do
   describe &quot;validating ticket&quot; do
 
     it &quot;validates the service and ticket using the service ticket validator&quot; do
-      ServiceTicket.should_receive(:validate_ticket).with('service', 'ticket', true).and_return(stub_everything(:invalid? =&gt; true))
+      ServiceTicket.should_receive(:validate_ticket).with('service', 'ticket', true).and_return(stub(:invalid? =&gt; true).as_null_object)
       ProxyTicket.validate_ticket('service', 'ticket')
     end
 </diff>
      <filename>spec/castronaut/models/proxy_ticket_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -114,7 +114,7 @@ describe Castronaut::Models::ServiceTicket do
     describe &quot;when the service and ticket are given&quot; do
 
       it &quot;attempts to find the ServiceTicket by the given ticket&quot; do
-        Castronaut::Models::ServiceTicket.should_receive(:find_by_ticket).with('ticket').and_return(stub_everything)
+        Castronaut::Models::ServiceTicket.should_receive(:find_by_ticket).with('ticket').and_return(stub({}).as_null_object)
         Castronaut::Models::ServiceTicket.validate_ticket('service', 'ticket')
       end
 
@@ -142,17 +142,17 @@ describe Castronaut::Models::ServiceTicket do
         describe &quot;when it is already consumed it returns a ticket result&quot; do
 
           it &quot;with the ticket used up message&quot; do
-            Castronaut::Models::ServiceTicket.stub!(:find_by_ticket).and_return(stub_everything(:consumed? =&gt; true))
+            Castronaut::Models::ServiceTicket.stub!(:find_by_ticket).and_return(stub(:consumed? =&gt; true).as_null_object)
             Castronaut::Models::ServiceTicket.validate_ticket('service', 'ticket').message.should == &quot;Ticket 'ticket' has already been used up.&quot;
           end
 
           it &quot;with the INVALID_TICKET message category&quot; do
-            Castronaut::Models::ServiceTicket.stub!(:find_by_ticket).and_return(stub_everything(:consumed? =&gt; true))
+            Castronaut::Models::ServiceTicket.stub!(:find_by_ticket).and_return(stub(:consumed? =&gt; true).as_null_object)
             Castronaut::Models::ServiceTicket.validate_ticket('service', 'ticket').message_category.should == 'INVALID_TICKET'
           end
 
           it &quot;is marked as invalid&quot; do
-            Castronaut::Models::ServiceTicket.stub!(:find_by_ticket).and_return(stub_everything(:consumed? =&gt; true))
+            Castronaut::Models::ServiceTicket.stub!(:find_by_ticket).and_return(stub(:consumed? =&gt; true).as_null_object)
             Castronaut::Models::ServiceTicket.validate_ticket('service', 'ticket').should be_invalid
           end
 </diff>
      <filename>spec/castronaut/models/service_ticket_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -47,7 +47,7 @@ describe Castronaut::Presenters::Login do
 
     it &quot;validates the ticket generating ticket&quot; do
       @controller.request.cookies['tgt'] = 'fake cookie'
-      Castronaut::Models::TicketGrantingTicket.should_receive(:validate_cookie).with('fake cookie').and_return(Castronaut::TicketResult.new(stub_everything))
+      Castronaut::Models::TicketGrantingTicket.should_receive(:validate_cookie).with('fake cookie').and_return(Castronaut::TicketResult.new(stub({}).as_null_object))
       Castronaut::Presenters::Login.new(@controller).represent!
     end
 
@@ -143,7 +143,7 @@ describe Castronaut::Presenters::Login do
   describe &quot;login ticket generation&quot; do
     
      it &quot;generates a new login ticket when you call :login_ticket&quot; do
-       Castronaut::Models::LoginTicket.should_receive(:generate_from).and_return(stub_everything(:ticket =&gt; 'ticket'))
+       Castronaut::Models::LoginTicket.should_receive(:generate_from).and_return(stub(:ticket =&gt; 'ticket').as_null_object)
        Castronaut::Presenters::Login.new(@controller).login_ticket
      end
 </diff>
      <filename>spec/castronaut/presenters/login_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -24,7 +24,7 @@ describe Castronaut::Presenters::Logout do
   end
 
   it &quot;generates a new login ticket when you call :login_ticket&quot; do
-    Castronaut::Models::LoginTicket.should_receive(:generate_from).and_return(stub_everything(:ticket =&gt; 'ticket'))
+    Castronaut::Models::LoginTicket.should_receive(:generate_from).and_return(stub(:ticket =&gt; 'ticket').as_null_object)
     Castronaut::Presenters::Logout.new(@controller).login_ticket
   end
 </diff>
      <filename>spec/castronaut/presenters/logout_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -122,10 +122,10 @@ describe Castronaut::Presenters::ProcessLogin do
         Castronaut.config.stub!(:callbacks).and_return({'on_authentication_success' =&gt; 'example.com'})
         process_login = Castronaut::Presenters::ProcessLogin.new(@controller)
         
-        Net::HTTP::Post.stub!(:new).and_return(stub_everything)
-        Net::HTTP.stub!(:new).and_return(stub_everything)
+        Net::HTTP::Post.stub!(:new).and_return(stub({}).as_null_object)
+        Net::HTTP.stub!(:new).and_return(stub({}).as_null_object)
 
-        URI.should_receive(:parse).with('example.com').and_return(stub_everything)
+        URI.should_receive(:parse).with('example.com').and_return(stub({}).as_null_object)
 
         process_login.fire_notice 'success', {}
       end
@@ -137,8 +137,8 @@ describe Castronaut::Presenters::ProcessLogin do
         
         URI.stub!(:parse).and_return(stub('uri', 'path' =&gt; 'uri-path', 'host' =&gt; 'example.com', 'port' =&gt; '2000', 'scheme'=&gt; 'http'))
         
-        Net::HTTP::Post.should_receive(:new).with('uri-path', { &quot;port&quot;=&gt;&quot;2000&quot;}).and_return(stub_everything)
-        Net::HTTP.stub!(:new).and_return(stub_everything)
+        Net::HTTP::Post.should_receive(:new).with('uri-path', { &quot;port&quot;=&gt;&quot;2000&quot;}).and_return(stub({}).as_null_object)
+        Net::HTTP.stub!(:new).and_return(stub({}).as_null_object)
 
         process_login.fire_notice 'success', {}
       end
@@ -148,10 +148,10 @@ describe Castronaut::Presenters::ProcessLogin do
         Castronaut.config.stub!(:callbacks).and_return({'on_authentication_success' =&gt; 'example.com'})
         process_login = Castronaut::Presenters::ProcessLogin.new(@controller)
         
-        Net::HTTP::Post.stub!(:new).and_return(stub_everything)
-        URI.stub!(:parse).and_return(stub_everything)
+        Net::HTTP::Post.stub!(:new).and_return(stub({}).as_null_object)
+        URI.stub!(:parse).and_return(stub({}).as_null_object)
 
-        Net::HTTP.should_receive(:new).and_return(stub_everything)
+        Net::HTTP.should_receive(:new).and_return(stub({}).as_null_object)
 
         process_login.fire_notice 'success', {}
       end
@@ -213,7 +213,7 @@ describe Castronaut::Presenters::ProcessLogin do
       end
 
       it &quot;attempts to authenticate&quot; do
-        adapter = stub_everything(:authenticate =&gt; 'result')
+        adapter = stub(:authenticate =&gt; 'result').as_null_object
         Castronaut::Adapters.stub!(:selected_adapter).and_return(adapter)
         adapter.should_receive(:authenticate).with('username', 'password').and_return(stub('auth result', :valid? =&gt; false, :error_message =&gt; 'nil'))
         Castronaut::Presenters::ProcessLogin.new(@controller).represent!
@@ -222,7 +222,7 @@ describe Castronaut::Presenters::ProcessLogin do
       describe &quot;when authentication fails&quot; do
 
         it &quot;appends a could not authenticate message to the messages&quot; do
-          adapter = stub_everything(:authenticate =&gt; 'result')
+          adapter = stub(:authenticate =&gt; 'result').as_null_object
           Castronaut::Adapters.stub!(:selected_adapter).and_return(adapter)
           adapter.stub!(:authenticate).with('username', 'password').and_return(stub('auth result', :valid? =&gt; false, :error_message =&gt; &quot;oggie boogie&quot;))
           Castronaut::Presenters::ProcessLogin.new(@controller).represent!.messages.should include(&quot;oggie boogie&quot;)
@@ -233,21 +233,21 @@ describe Castronaut::Presenters::ProcessLogin do
       describe &quot;when authentication succeeds&quot; do
 
         before(:each) do
-          adapter = stub_everything(:authenticate =&gt; 'result')
+          adapter = stub(:authenticate =&gt; 'result').as_null_object
           Castronaut::Adapters.stub!(:selected_adapter).and_return(adapter)
-          adapter.stub!(:authenticate).with('username', 'password').and_return(stub_everything(:valid? =&gt; true))
+          adapter.stub!(:authenticate).with('username', 'password').and_return(stub(:valid? =&gt; true).as_null_object)
           @controller.should_receive(:set_cookie)
         end
 
         it &quot;generates a ticket granting ticket&quot; do
-          Castronaut::Models::TicketGrantingTicket.should_receive(:generate_for).and_return(stub_everything(:to_cookie =&gt; 'cookie'))
+          Castronaut::Models::TicketGrantingTicket.should_receive(:generate_for).and_return(stub(:to_cookie =&gt; 'cookie').as_null_object)
           Castronaut::Presenters::ProcessLogin.new(@controller).represent!
         end
 
         describe &quot;when the service is blank&quot; do
 
           it &quot;appends a successful login message to the messages&quot; do
-            Castronaut::Models::TicketGrantingTicket.stub!(:generate_for).and_return(stub_everything(:to_cookie =&gt; 'cookie'))
+            Castronaut::Models::TicketGrantingTicket.stub!(:generate_for).and_return(stub(:to_cookie =&gt; 'cookie').as_null_object)
             Castronaut::Presenters::ProcessLogin.new(@controller).represent!.messages.should include(&quot;You have successfully logged in.&quot;)
           end
 
@@ -257,7 +257,7 @@ describe Castronaut::Presenters::ProcessLogin do
 
           before(:each) do
             @controller.stub!(:params).and_return({ 'username' =&gt; 'username', 'password' =&gt; 'password', 'service' =&gt; 'service'})
-            adapter = stub_everything(:authenticate =&gt; 'result')
+            adapter = stub(:authenticate =&gt; 'result').as_null_object
             Castronaut::Adapters.stub!(:selected_adapter).and_return(adapter)
             adapter.stub!(:authenticate).with('username', 'password').and_return(stub('auth result', :valid? =&gt; true))
             Castronaut::Models::TicketGrantingTicket.stub!(:generate_for).and_return(stub('ticket granting ticket', :to_cookie =&gt; 'cookie'))</diff>
      <filename>spec/castronaut/presenters/process_login_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,7 +40,7 @@ describe Castronaut::Presenters::ProxyValidate do
       it &quot;validates the proxy ticket&quot; do
         @controller.params['service'] = 'http://example.com'
         @controller.params['ticket'] = 'footicket'
-        Castronaut::Models::ProxyTicket.should_receive(:validate_ticket).with('http://example.com', 'footicket').and_return(stub_everything(:valid? =&gt; false))
+        Castronaut::Models::ProxyTicket.should_receive(:validate_ticket).with('http://example.com', 'footicket').and_return(stub(:valid? =&gt; false).as_null_object)
         Castronaut::Presenters::ProxyValidate.new(@controller).represent!
       end
 
@@ -52,7 +52,7 @@ describe Castronaut::Presenters::ProxyValidate do
         end
 
         it &quot;exposes the proxy ticket result as :proxy_ticket_result&quot; do
-          proxy_ticket_result = stub_everything(:valid? =&gt; false, :ticket_granting_ticket =&gt; stub_everything)
+          proxy_ticket_result = stub(:valid? =&gt; false, :ticket_granting_ticket =&gt; stub({}).as_null_object).as_null_object
           Castronaut::Models::ProxyTicket.should_receive(:validate_ticket).and_return(proxy_ticket_result)
           Castronaut::Presenters::ProxyValidate.new(@controller).represent!.proxy_ticket_result.should == proxy_ticket_result
         end
@@ -65,8 +65,8 @@ describe Castronaut::Presenters::ProxyValidate do
         describe &quot;when the proxy ticket result is a proxy ticket&quot; do
           
           it &quot;creates an array of proxies from the proxy ticket results service ticket service&quot; do
-            service_ticket = stub_everything(:service =&gt; 'http://myservice.com')
-            Castronaut::Models::ProxyTicket.should_receive(:validate_ticket).and_return(stub_everything(:valid? =&gt; true, :service_ticket =&gt; service_ticket))
+            service_ticket = stub(:service =&gt; 'http://myservice.com').as_null_object
+            Castronaut::Models::ProxyTicket.should_receive(:validate_ticket).and_return(stub(:valid? =&gt; true, :service_ticket =&gt; service_ticket).as_null_object)
             Castronaut::Presenters::ProxyValidate.new(@controller).represent!
           end
 
@@ -76,9 +76,9 @@ describe Castronaut::Presenters::ProxyValidate do
 
           it &quot;attempts to generate a proxy granting ticket&quot; do
             @controller.params['pgtUrl'] = 'http://proxygrantingticketurl'
-            Castronaut::Models::ProxyTicket.stub!(:validate_ticket).and_return(stub_everything(:valid? =&gt; true, :ticket =&gt; 'service ticket', :ticket_granting_ticket =&gt; stub_everything))
+            Castronaut::Models::ProxyTicket.stub!(:validate_ticket).and_return(stub(:valid? =&gt; true, :ticket =&gt; 'service ticket', :ticket_granting_ticket =&gt; stub({}).as_null_object).as_null_object)
 
-            Castronaut::Models::ProxyGrantingTicket.should_receive(:generate_ticket).with('http://proxygrantingticketurl', '10.1.1.1', anything).and_return(stub_everything)
+            Castronaut::Models::ProxyGrantingTicket.should_receive(:generate_ticket).with('http://proxygrantingticketurl', '10.1.1.1', anything).and_return(stub({}).as_null_object)
             Castronaut::Presenters::ProxyValidate.new(@controller).represent!
           end
 
@@ -86,7 +86,7 @@ describe Castronaut::Presenters::ProxyValidate do
 
             it &quot;gets :proxy_granting_ticket_iou from the proxy_granting_ticket_result&quot; do
               @controller.params['pgtUrl'] = 'http://proxygrantingticketurl'
-              Castronaut::Models::ProxyTicket.stub!(:validate_ticket).and_return(stub('ticket result', :proxies =&gt; nil, :valid? =&gt; true, :ticket =&gt; 'service ticket', :ticket_granting_ticket =&gt; stub_everything))
+              Castronaut::Models::ProxyTicket.stub!(:validate_ticket).and_return(stub('ticket result', :proxies =&gt; nil, :valid? =&gt; true, :ticket =&gt; 'service ticket', :ticket_granting_ticket =&gt; stub({}).as_null_object))
               Castronaut::Models::ProxyGrantingTicket.stub!(:generate_ticket).and_return(stub('proxy granting ticket result', :iou =&gt; 'pgtiou'))
 
               Castronaut::Presenters::ProxyValidate.new(@controller).represent!.proxy_granting_ticket_iou.should == 'pgtiou'</diff>
      <filename>spec/castronaut/presenters/proxy_validate_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -39,7 +39,7 @@ describe Castronaut::Presenters::ServiceValidate do
     it &quot;validates the service ticket&quot; do
       @controller.params['service'] = 'http://example.com'
       @controller.params['ticket'] = 'footicket'
-      Castronaut::Models::ServiceTicket.should_receive(:validate_ticket).with('http://example.com', 'footicket').and_return(stub_everything(:valid? =&gt; false))
+      Castronaut::Models::ServiceTicket.should_receive(:validate_ticket).with('http://example.com', 'footicket').and_return(stub(:valid? =&gt; false).as_null_object)
       Castronaut::Presenters::ServiceValidate.new(@controller).represent!
     end
 
@@ -61,7 +61,7 @@ describe Castronaut::Presenters::ServiceValidate do
           @controller.params['pgtUrl'] = 'http://proxygrantingticketurl'
           Castronaut::Models::ServiceTicket.stub!(:validate_ticket).and_return(stub('ticket result', :valid? =&gt; true, :ticket =&gt; 'service ticket', :ticket_granting_ticket =&gt; stub('tgt')))
 
-          Castronaut::Models::ProxyGrantingTicket.should_receive(:generate_ticket).with('http://proxygrantingticketurl', '10.1.1.1', 'service ticket').and_return(stub_everything)
+          Castronaut::Models::ProxyGrantingTicket.should_receive(:generate_ticket).with('http://proxygrantingticketurl', '10.1.1.1', 'service ticket').and_return(stub({}).as_null_object)
           Castronaut::Presenters::ServiceValidate.new(@controller).represent!
         end
 
@@ -69,7 +69,7 @@ describe Castronaut::Presenters::ServiceValidate do
 
           it &quot;gets :proxy_granting_ticket_iou from the proxy_granting_ticket_result&quot; do
             @controller.params['pgtUrl'] = 'http://proxygrantingticketurl'
-            Castronaut::Models::ServiceTicket.stub!(:validate_ticket).and_return(stub('ticket result', :proxies =&gt; nil, :valid? =&gt; true, :ticket =&gt; 'service ticket', :ticket_granting_ticket =&gt; stub_everything))
+            Castronaut::Models::ServiceTicket.stub!(:validate_ticket).and_return(stub('ticket result', :proxies =&gt; nil, :valid? =&gt; true, :ticket =&gt; 'service ticket', :ticket_granting_ticket =&gt; stub({}).as_null_object))
             Castronaut::Models::ProxyGrantingTicket.stub!(:generate_ticket).and_return(stub('proxy granting ticket result', :iou =&gt; 'pgtiou'))
 
             Castronaut::Presenters::ServiceValidate.new(@controller).represent!.proxy_granting_ticket_iou.should == 'pgtiou'</diff>
      <filename>spec/castronaut/presenters/service_validate_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,7 @@ describe Castronaut do
   end
   
   it &quot;allows you to reset the config&quot; do
-    new_config = stub_everything
+    new_config = stub({}).as_null_object
     original_config = Castronaut.config
     
     Castronaut.config.should_not == new_config</diff>
      <filename>spec/castronaut_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
 require 'rubygems'
 
 gem 'sqlite3-ruby'
-gem :rspec, '&gt;= 1.1.4'
-gem :activerecord, '&gt;= 2.1.0'
+gem 'rspec', '&gt;= 1.2.4'
+gem 'activerecord', '&gt;= 2.1.0'
 
 require File.join(File.dirname(__FILE__), '..', 'castronaut')
 require File.join(File.dirname(__FILE__), 'spec_rails_mocks')</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>abf034723b73ce4225b94cb7b12ea781aee66abf</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Bedra</name>
    <email>aaron@thinkrelevance.com</email>
  </author>
  <url>http://github.com/relevance/castronaut/commit/cdeb5d00b302d8ead987ca9a9988989ecd709344</url>
  <id>cdeb5d00b302d8ead987ca9a9988989ecd709344</id>
  <committed-date>2009-05-22T07:01:39-07:00</committed-date>
  <authored-date>2009-05-22T07:01:39-07:00</authored-date>
  <message>fixing test suite to work with the latest version of rspec</message>
  <tree>7ed059c3bf88aa80623ba45376d3471b019f2a1b</tree>
  <committer>
    <name>Aaron Bedra</name>
    <email>aaron@thinkrelevance.com</email>
  </committer>
</commit>
