Skip to content

Instantly share code, notes, and snippets.

@dreamr
Created August 23, 2010 22:38
Show Gist options
  • Save dreamr/546495 to your computer and use it in GitHub Desktop.
Save dreamr/546495 to your computer and use it in GitHub Desktop.
iterate app/models/*.rb
read file and pull in these
has_many :items
has_many :folders
has_many :blocks
has_many :picoticker_blocks
has_one :login_cookie
and create a spec/models/model_spec.rb file and add the related
it { should have_many(:items) }
it { should have_many(:folders) }
it { should have_many(:blocks) }
it { should have_many(:picoticker_blocks) }
it { should have_one(:login_cookie) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment