Skip to content

Commit

Permalink
Spec for tagging Reset button for tenants
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Jun 2, 2017
1 parent ec655e8 commit 43cf0b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/controllers/ops_controller/ops_rbac_spec.rb
Expand Up @@ -366,6 +366,12 @@
expect(assigns(:edit)).to be_nil
end

it "resets tags edit" do
controller.instance_variable_set(:@_params, :button => "reset", :id => @tenant.id)
controller.send(:rbac_tenant_tags_edit)
expect(assigns(:flash_array).first[:message]).to include("All changes have been reset")
end

it "save tags" do
controller.instance_variable_set(:@_params, :button => "save", :id => @tenant.id)
controller.send(:rbac_tenant_tags_edit)
Expand Down

0 comments on commit 43cf0b0

Please sign in to comment.