Skip to content

Instantly share code, notes, and snippets.

@heronmedeiros
Created April 13, 2011 17:31
Show Gist options
  • Save heronmedeiros/917971 to your computer and use it in GitHub Desktop.
Save heronmedeiros/917971 to your computer and use it in GitHub Desktop.
context 'verificar a quantidade prevista de cachos' do
# Como usuario quero verificar a quantidade prevista de cachos a colher na semana
it 'cachos que podem ser colhidos' do
@bunch = Bunch.find(:all, :conditions => [ "created_at <= ?", 12.week.ago] )
@bunch.shoud be_colhivel
end
end
def colhivel?
created_at ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment