mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-25 01:37:52 -05:00
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).
13 lines
197 B
Ruby
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
|