07 Apr '12, 10am

[links] How I learned to test my Rails applications, Part 4: Controller specs:

Controllers are models too, as Piotr Solnica indicated in an excellent blog post . And in Rails applications, they’re pretty important models—so it’s a good idea to put them on equal footing, spec-wise, as your Rails models. Controller specs can be written more quickly than their integration spec counterparts. For me, this becomes critical when I encounter a bug that’s residing at the controller level, or I want to add additional specs to verify some refactoring. Writing a solid controller spec is a comparatively straightforward process, since I can generate very specific input to the method I’m testing without the overhead of request specs. This also means that Controller specs run more quickly than request specs, making them very valuable during bug fixing and checking the bad paths your users can take (in addition to the good ones, of course).

Full article: http://everydayrails.com/2012/04/07/testing-series-rspec-...

Tweets

Ruby on Rails Guides: Performance Testing Rails...

guides.rubyonrails.org 10 Apr '12, 8am

# routes.rb root :to => 'home#index' resources :posts # home_controller.rb class HomeController < ApplicationController de...

What’s New in Edge Rails #16: Week of April 1 –...

afreshcup.com 09 Apr '12, 11am

Week of April 1 - April 7, 2012 Although there were quite a few commits this past week, nearly all of them were to the doc...

Oh my! @drnic you have outdone yourself. Rails ...

drnicwilliams.com 10 Apr '12, 10pm

Instant new Rails applications with the App Scrolls April 10th, 2012 , posted in Announcement , Engine Yard , Ruby on Rail...

@vivisuke んーと( )、new, private, …実はたくさんあるんです。また ...

api.rubyonrails.org 08 Apr '12, 12am

Adds a new renderer to call within controller actions. A renderer is invoked by passing its name as an option to AbstractC...

Scheduled tasks on rails - Ruby Forum:

ruby-forum.com 08 Apr '12, 3am

Douglas, I have been using cron tasks that invoke curl that invokes the routes that perform the periodic tasks for several...

Konacha: JavaScript Testing on Rails

rubyflow.com 03 Apr '12, 2pm

Konacha: JavaScript Testing on Rails Posted by joliss on April 03, 2012 — 0 comments For those looking to test heavy (Back...

What have we learned about cheap energy?

What have we learned about cheap energy?

mnn.com 12 Apr '12, 2pm

There were two blockbuster pieces of energy news last week that I’m going to discuss as the renewable and nonrenewable pol...

Ruby Forum - Rails I18n:

ruby-forum.com 05 Apr '12, 2am

Subject Author Replies Last post Rails 3.x, Ruby 1.9.x + HAML = Terror? Ramon Cahenzli 2 21 hrs ago by Ramon Cahenzli web ...

Everything I Needed to Know About Sex I Learned from Dan Savage

Everything I Needed to Know About Sex I Learned...

care2.com 07 Apr '12, 5am

Dan Savage, the creator of the It Gets Better Project , sex advice columnist , and podcast host , has taken his particular...

just set up a brand new Lubuntu VM for Rails (d...

guides.rubyonrails.org 07 Apr '12, 9pm

Please don’t put “feature request” items into GitHub Issues. If there’s a new feature that you want to see added to Ruby o...