On Sat, Mar 19, 2011 at 2:32 PM, Mobyye <bhellm...@gmail.com> wrote: > I'm trying to post to my controller in RSPEC by doing: > > it "should store create an IncomingMail record" do > > lambda { > post :create, > :from => 'xx', > :to => 'xx', > :cc => 'xx', > :subject => 'xx', > :message_text => 'xx', > :message_html => 'xx' > }.should change(IncomingMail, :count).by(1) > > end > > > I do have this in my rake routes: POST /incoming_mails(.:format) > {:controller=>"incoming_mails", :action=>"create"} > > I checked the logs. While the test above is hitting the controller, it is > never going inside the method def create. Any ideas why? > > Thanks > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
So you checked the log and you see a sql insert statement?
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users