Mercurial > hg > soundsoftware-site
comparison test/functional/queries_controller_test.rb @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 8661b858af72 |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
62 @request.session[:user_id] = 2 | 62 @request.session[:user_id] = 2 |
63 post :new, | 63 post :new, |
64 :project_id => 'ecookbook', | 64 :project_id => 'ecookbook', |
65 :confirm => '1', | 65 :confirm => '1', |
66 :default_columns => '1', | 66 :default_columns => '1', |
67 :fields => ["status_id", "assigned_to_id"], | 67 :f => ["status_id", "assigned_to_id"], |
68 :operators => {"assigned_to_id" => "=", "status_id" => "o"}, | 68 :op => {"assigned_to_id" => "=", "status_id" => "o"}, |
69 :values => { "assigned_to_id" => ["1"], "status_id" => ["1"]}, | 69 :v => { "assigned_to_id" => ["1"], "status_id" => ["1"]}, |
70 :query => {"name" => "test_new_project_public_query", "is_public" => "1"} | 70 :query => {"name" => "test_new_project_public_query", "is_public" => "1"} |
71 | 71 |
72 q = Query.find_by_name('test_new_project_public_query') | 72 q = Query.find_by_name('test_new_project_public_query') |
73 assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook', :query_id => q | 73 assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook', :query_id => q |
74 assert q.is_public? | 74 assert q.is_public? |
99 post :new, | 99 post :new, |
100 :confirm => '1', | 100 :confirm => '1', |
101 :fields => ["status_id", "assigned_to_id"], | 101 :fields => ["status_id", "assigned_to_id"], |
102 :operators => {"assigned_to_id" => "=", "status_id" => "o"}, | 102 :operators => {"assigned_to_id" => "=", "status_id" => "o"}, |
103 :values => { "assigned_to_id" => ["me"], "status_id" => ["1"]}, | 103 :values => { "assigned_to_id" => ["me"], "status_id" => ["1"]}, |
104 :query => {"name" => "test_new_global_private_query", "is_public" => "1", "column_names" => ["", "tracker", "subject", "priority", "category"]} | 104 :query => {"name" => "test_new_global_private_query", "is_public" => "1"}, |
105 :c => ["", "tracker", "subject", "priority", "category"] | |
105 | 106 |
106 q = Query.find_by_name('test_new_global_private_query') | 107 q = Query.find_by_name('test_new_global_private_query') |
107 assert_redirected_to :controller => 'issues', :action => 'index', :project_id => nil, :query_id => q | 108 assert_redirected_to :controller => 'issues', :action => 'index', :project_id => nil, :query_id => q |
108 assert !q.is_public? | 109 assert !q.is_public? |
109 assert !q.has_default_columns? | 110 assert !q.has_default_columns? |