Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
permits :description param in new_node_groups (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
big32mike authored Jun 30, 2020
1 parent f3e7b34 commit 56df5ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/node_groups_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def destroy
def node_group_params
params.require(:node_group).permit(
:name,
:description,
:assigned_node_ids => [],
:assigned_node_class_ids => [],
:assigned_node_group_ids => [],
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/node_groups_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def model; NodeGroup end

describe "#create" do
it "should create a node group on successful creation" do
post :create, params: { node_group: { name: 'foo' } }
post :create, params: { node_group: { name: 'foo', description: 'foo' } }
assigns[:node_group].name.should == 'foo'
end

Expand Down

0 comments on commit 56df5ed

Please sign in to comment.