Project

General

Profile

« Previous | Next » 

Revision 9d43fc71

Added by Michael Moll almost 6 years ago

Fixes #19789 - fix Layout/SpaceAroundOperators cop

View differences:

test/models/hostgroup_test.rb
assert_equal "2", second.parameters["secondA"]
third = Hostgroup.new(:name => "ThirdA", :parent_id => second.id,
:group_parameters_attributes => { pid += 1 => {"name"=>"topB", "value"=>"3"},
pid + 1 => {"name"=>"topA", "value"=>"3"}})
:group_parameters_attributes => { pid += 1 => {"name" => "topB", "value" => "3"},
pid + 1 => {"name" => "topA", "value" => "3"}})
assert third.save
assert third.parameters.include? "topA"

Also available in: Unified diff