Project

General

Profile

Patch #20740 » issues_controller_test.patch

Kirill Smirnov, 2015-09-14 10:53

View differences:

test/functional/issues_controller_test.rb 2015-09-14 11:49:38.073994525 +0300 → test/functional/issues_controller_test.rb 2015-09-14 11:49:48.580638937 +0300
398 398
  end
399 399

  
400 400
  def test_public_query_should_be_available_to_other_users
401
    q = IssueQuery.create!(:name => "private", :user => User.find(2), :visibility => IssueQuery::VISIBILITY_PUBLIC, :project => nil)
401
    q = IssueQuery.create!(:name => "public", :user => User.find(2), :visibility => IssueQuery::VISIBILITY_PUBLIC, :project => nil)
402 402
    @request.session[:user_id] = 3
403 403

  
404 404
    get :index, :query_id => q.id
    (1-1/1)