Permalink
Browse files

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

  • Loading branch information...
1 parent 1780b8e commit bb4f5027677decf2a9d6eb53038a5e902556aed1 @stormsilver committed Apr 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit bb4f502

Please sign in to comment.