Permalink
Browse files

move Note.count into spec_helper

  • Loading branch information...
1 parent 8d7db9b commit 7b22a99476a771bdf6931159b05d9d819218399a @nouse committed with Mar 24, 2012
Showing with 6 additions and 5 deletions.
  1. +0 −5 cuba/app.rb
  2. +6 −0 cuba/spec/spec_helper.rb
View
@@ -6,11 +6,6 @@ class Note < Ohm::Model
attribute :title
attribute :body
- class << self
- def count
- all.size
- end
- end
end
Cuba.plugin Cuba::Render
@@ -21,6 +21,12 @@
require CUBA_ROOT+'/app'
+Note.instance_eval do
+ def count
+ all.size
+ end
+end
+
Note.blueprint do
title { generate_description }
body { generate_content }

0 comments on commit 7b22a99

Please sign in to comment.