diff options
Diffstat (limited to 'spec/models')
| -rw-r--r-- | spec/models/note_spec.rb | 7 |
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 |
