Skip to content

Instantly share code, notes, and snippets.

@fdutey fdutey/gist:2938865
Created Jun 15, 2012

What would you like to do?
describe :note_for do
it 'give notes for the project' do
CategoryProject.create(:project => project,
:category => category,
:description => 'test')
params = { :category => category }
project.notes.create params.merge(:value => 8)
2.times{ project.notes.create params.merge(:value => 3) }
project.note_for(category).should == 4.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.