Fixed a bug where Rates on a project were being selected by the default
rate finder. #1921
This commit is contained in:
1 parent
cfd6e09df5
commit
0d90144c0e
2 files changed
+2
-2
No files matched your search
@@ -287,7 +287,7 @@ describe Rate, 'for_user_project_and_date (private)' do
|
||||
|
||||
it 'should search rates without a project when +project+ is nil' do
|
||||
Rate.should_receive(:find).with(:first, {
|
||||
:conditions => ["user_id IN (?) AND date_in_effect <= ?",
|
||||
:conditions => ["user_id IN (?) AND date_in_effect <= ? AND project_id IS NULL",
|
||||
@user.id,
|
||||
@date
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user