Project

General

Profile

« Previous | Next » 

Revision b08c68d2

Added by Marek Hulán about 8 years ago

Fixes #14184 - allow filter creation for users with taxonomies

(cherry picked from commit 473ba1c6562c039564331bf5cf66804d27dfd736)

View differences:

test/unit/filter_test.rb
f = FactoryGirl.build(:filter, :search => nil, :resource_type => 'Domain')
assert_valid f
end
test 'filter for taxable resource does not skip escalation check' do
f = FactoryGirl.build(:filter, :resource_type => 'Domain')
refute f.skip_taxonomy_escalation_check?
end
test 'filter for nontaxable resource skips escalation check' do
f = FactoryGirl.build(:filter, :resource_type => 'Architecture')
assert f.skip_taxonomy_escalation_check?
end
test 'filter without resource always skips escalation check' do
f = FactoryGirl.build(:filter, :resource_type => nil)
assert f.skip_taxonomy_escalation_check?
end
end

Also available in: Unified diff