Files
growstuff/spec/controllers/gardens_controller_spec.rb
Skud 1ff2211c0f removed boring tests from controllers
the tests generated by 'rails g scaffold...' are boring and brittle.
they don't actually test anything other than the rails framework, and
they were causing us all kinds of trouble. we've started to blow them
away (and raised a PT chore to remove them from other controllers in due
course).
2013-07-08 13:09:37 +10:00

13 lines
197 B
Ruby

require 'spec_helper'
describe GardensController do
login_member
def valid_attributes
member = FactoryGirl.create(:member)
{:name => 'My Garden', :owner_id => member.id }
end
end