Skip to content

Commit

Permalink
fixed misuse of private method #select in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed May 10, 2017
1 parent 36d6fad commit 2d1ed89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/permissions/auth_lookup_table_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'test_helper'

class AuthLookupUpdateQueueTest < ActiveSupport::TestCase
class AuthLookupTableTest < ActiveSupport::TestCase
def setup
@val = Seek::Config.auth_lookup_enabled
Seek::Config.auth_lookup_enabled = true
Expand Down Expand Up @@ -36,8 +36,8 @@ def teardown
end
end

a_user_ids = ActiveRecord::Base.connection.select("select user_id from #{Assay.lookup_table_name}").map { |i| i['user_id'] }
d_user_ids = ActiveRecord::Base.connection.select("select user_id from #{DataFile.lookup_table_name}").map { |i| i['user_id'] }
a_user_ids = ActiveRecord::Base.connection.select_all("select user_id from #{Assay.lookup_table_name}").map { |i| i['user_id'] }
d_user_ids = ActiveRecord::Base.connection.select_all("select user_id from #{DataFile.lookup_table_name}").map { |i| i['user_id'] }

assert_not_includes a_user_ids, u.id
assert_not_includes d_user_ids, u.id
Expand Down

0 comments on commit 2d1ed89

Please sign in to comment.