#757: fix "build_lists_controller" spec

This commit is contained in:
Vokhmin Alexey V 2013-02-22 16:57:17 +04:00
parent 9f5ceef0ab
commit e0ad752204
1 changed files with 1 additions and 3 deletions

View File

@ -312,9 +312,7 @@ describe Projects::BuildListsController do
it 'should filter by project_name and update_date' do it 'should filter by project_name and update_date' do
get :index, :filter => {:project_name => @build_list3.project.name, :ownership => 'everything', get :index, :filter => {:project_name => @build_list3.project.name, :ownership => 'everything',
"updated_at_start(1i)" => @build_list3.updated_at.year.to_s, "updated_at_start" => @build_list3.updated_at.strftime('%d/%m/%Y')}
"updated_at_start(2i)" => @build_list3.updated_at.month.to_s,
"updated_at_start(3i)" => @build_list3.updated_at.day.to_s}
assigns[:build_lists].should_not include(@build_list1) assigns[:build_lists].should_not include(@build_list1)
assigns[:build_lists].should_not include(@build_list2) assigns[:build_lists].should_not include(@build_list2)
assigns[:build_lists].should include(@build_list3) assigns[:build_lists].should include(@build_list3)