summaryrefslogtreecommitdiff
path: root/spec/models/note_spec.rb
diff options
context:
space:
mode:
authorDrew <bowmande@gmail.com>2011-11-18 01:52:13 -0500
committerDrew <bowmande@gmail.com>2011-11-18 01:52:13 -0500
commit91d5a906f9cd1f120312d1ca72c8e500263c4439 (patch)
treea6283aea66d4a84f0cba3bb5c5e8c5c176489d8a /spec/models/note_spec.rb
parent15016ae68dd2e59ce1b12b0be6e9870d16219569 (diff)
downloadgitlab-ce-91d5a906f9cd1f120312d1ca72c8e500263c4439.tar.gz
Resolved issue #235
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index 038e4f9d36e..bd3f3934aec 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -12,7 +12,12 @@ describe Note do
it { Factory.create(:note,
:project => Factory.create(:project)).should be_valid }
-
+ describe "Scopes" do
+ it "should have a today named scope that returns ..." do
+ Note.today.where_values.should == ["created_at >= '#{Date.today}'"]
+ end
+ end
+
describe :authorization do
before do
@p1 = Factory :project