simple-graphite
simple-graphite copied to clipboard
Ordering of "Graphite sends metrics from an hash" test
When running that test, I think as hashes aren't ordering dependent on 1.8.7. I get the following:
[enlil:simple-graphite]% rspec ./spec/simple-graphite_spec.rb Run options: include {:focus=>true} All examples were filtered out; ignoring {:focus=>true} ..... Finished in 0.00159 seconds 5 examples, 0 failures [enlil:simple-graphite]% rspec ./spec/simple-graphite_spec.rb Run options: include {:focus=>true} All examples were filtered out; ignoring {:focus=>true} ....F Failures: 1) Graphite sends metrics from an hash Failure/Error: ftcp.buffer.should == "foo.bar 200 #{time}\nfoo.test 10.2 #{time}\n" expected: "foo.bar 200 1340930488\nfoo.test 10.2 1340930488\n" got: "foo.test 10.2 1340930488\nfoo.bar 200 1340930488\n" (using ==) Diff: @@ -1,3 +1,3 @@ -foo.bar 200 1340930488 foo.test 10.2 1340930488 +foo.bar 200 1340930488 # ./spec/simple-graphite_spec.rb:40 Finished in 0.00215 seconds 5 examples, 1 failure Failed examples: rspec ./spec/simple-graphite_spec.rb:32 # Graphite sends metrics from an hash