Looks wrong, but its correct :)

We have a mailer called "Messages".
This stubs the mail and deliver method.

Am 15.05.2013 um 17:00 schrieb Thomas von Deyen <notifications@github.com>:

> In spec/controllers/messages_controller_spec.rb:
> 
> > +          Element.stub!(:find_by_id).and_return(element)
> > +          Message.any_instance.stub(:contact_form_id).and_return(1)
> > +        end
> > +
> > +        context "is false" do
> > +          before { Message.any_instance.stub(:valid?).and_return(false) }
> > +
> > +          it "should render 'alchemy/pages/show' template" do
> > +            expect(get :create).to render_template('alchemy/pages/show')
> > +          end
> > +        end
> > +
> > +        context "is true" do
> > +          before do 
> > +            Message.any_instance.stub(:valid?).and_return(true)
> > +            Messages.stub_chain(:contact_form_mail, :deliver).and_return(true)
> Typo! Message not Messages
> 
> —
> Reply to this email directly or view it on GitHub.
>