[rspec-users] [ANN] RSpec-1.1.5 has been released

Scott Taylor mailing_lists at railsnewbie.com
Mon Sep 29 07:01:41 EDT 2008


On Sep 29, 2008, at 2:26 AM, Mikel Lindsaar wrote:

> On Mon, Sep 29, 2008 at 12:07 PM, David Chelimsky <dchelimsky at gmail.com 
> > wrote:
>> RSpec-1.1.5 has been released
>
> rspec_team.should_receive(:thank_you).at_least(:once)
> GmailMailer.post(email)

class GmailMailer
   class << self
     def post(email)
       email.send
     end
   end
end

class Email
   class << self
     def send
       rspec_team.thank_you
     end
   end
end

Scott



More information about the rspec-users mailing list