Skip to content

Commit

Permalink
_rbac_group_details spec - fix failures caused by missing @sb
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Jan 4, 2017
1 parent 90b0e86 commit 01193c0
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions spec/views/ops/_rbac_group_details.html.haml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,33 @@
allow(view).to receive(:current_tenant).and_return(Tenant.seed)
allow(view).to receive(:session).and_return(:assigned_filters => [])
FactoryGirl.create(:classification, :name => 'folder_selected', :show => true)

sb = {
:trees => {},
:active_rbac_group_tab => 'rbac_customer_tags',
}
view.instance_variable_set(:@sb, sb)

@tags_tree = TreeBuilderTags.new(:tag_tree,
:tag,
{},
sb,
true,
:edit => {}, :filters => {}, :group => @group)
:edit => {},
:filters => {},
:group => @group)
@ems_azure_network = FactoryGirl.create(:ems_azure_network)
@hac_tree = TreeBuilderBelongsToHac.new(:hac_tree,
:hac,
{:trees => {}},
sb,
true,
:edit => nil,
:filters => {},
:group => @group,
:selected => {})
@vat_tree = TreeBuilderBelongsToVat.new(:vat_tree,
:vat,
{:trees => {}},
sb,
true,
:edit => nil,
:filters => {},
:group => @group,
:selected => {})
end
Expand Down

0 comments on commit 01193c0

Please sign in to comment.