FactoryGirl for Controller specs

While using Rails scaffold generator, you probably noticed the following controller_spec code:

describe EventsController do
# This should return the minimal set of attributes required to create a valid
# Event. As you add validations to Event, be sure to
# adjust the attributes here as well.
let(:valid_attributes) { { "name" => "MyString" } }
#...
end