Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
added model_spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
robmckinnon committed Apr 24, 2008
1 parent 6fc4957 commit 94e9327
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/models/model_spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module ModelSpecHelper

def assert_loads_attribute model, symbol
value = mock(symbol.to_s)
group = model.create_from(symbol => value)
group.send(symbol).should == value
end

end

0 comments on commit 94e9327

Please sign in to comment.