Resolved issue #235

This commit is contained in:
Drew 2011-11-18 01:52:13 -05:00
parent 15016ae68d
commit 91d5a906f9
4 changed files with 63 additions and 3 deletions

View file

@ -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