Skip to content

Commit

Permalink
Specs for tree_with_advanced_search for configuration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Nov 17, 2016
1 parent 8344072 commit 025652b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/helpers/application_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,20 @@
expect(result).to be_truthy
end

it 'should return true for the configuration scripts tree' do
controller.instance_variable_set(:@sb,
:active_tree => :configuration_scripts_tree,
:trees => {
:configuration_scripts_tree => {
:tree => :configuration_scripts_tree,
:type => :configuration_scripts
}
}
)
result = helper.tree_with_advanced_search?
expect(result).to be_truthy
end

it 'should return false for tree w/o advanced search' do
controller.instance_variable_set(:@sb,
:active_tree => :reports_tree,
Expand Down

0 comments on commit 025652b

Please sign in to comment.