Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[CHEF-3025] Fixed failing spec due to JSON parse order error

  • Loading branch information...
commit bb4f5027677decf2a9d6eb53038a5e902556aed1 1 parent 1780b8e
@stormsilver authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  chef/spec/unit/knife/bootstrap_spec.rb
View
3  chef/spec/unit/knife/bootstrap_spec.rb
@@ -76,7 +76,8 @@
it "should have foo => {bar => baz} in the first_boot" do
template_string = @knife.load_template(@knife.config[:template_file])
@knife.parse_options(["-j", '{"foo":{"bar":"baz"}}'])
- @knife.render_template(template_string).should == '{"foo":{"bar":"baz"},"run_list":[]}'
+ json = Yajl::Parser.new.parse('{"foo":{"bar":"baz"},"run_list":[]}')
+ @knife.render_template(template_string).should == json.to_json.to_s
end
Please sign in to comment.
Something went wrong with that request. Please try again.