diff options
author | Luke Kanies <luke@madstop.com> | 2008-08-21 22:41:01 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-08-26 22:40:38 -0700 |
commit | d1746054b8617271941e7307b2ecee0b61976818 (patch) | |
tree | f9c788170256225826f1cb37f71d5bbf59102a63 | |
parent | 5b9dd01326a61b9ae89ae978e29a8170f76deb5e (diff) | |
download | puppet-d1746054b8617271941e7307b2ecee0b61976818.tar.gz puppet-d1746054b8617271941e7307b2ecee0b61976818.tar.xz puppet-d1746054b8617271941e7307b2ecee0b61976818.zip |
Fixing a test that relied on hash ordering.
Signed-off-by: Luke Kanies <luke@madstop.com>
-rwxr-xr-x | spec/unit/indirector/rest.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/indirector/rest.rb b/spec/unit/indirector/rest.rb index 3bd63359d..0c88ea4df 100755 --- a/spec/unit/indirector/rest.rb +++ b/spec/unit/indirector/rest.rb @@ -158,7 +158,7 @@ describe Puppet::Indirector::REST do it "should include all options in the query string" do @request.stubs(:options).returns(:one => "two", :three => "four") should_path = "/%s/%s" % [@indirection.name.to_s, "foo"] - @connection.expects(:get).with { |path, args| path =~ /\?one=two&three=four$/ }.returns(@response) + @connection.expects(:get).with { |path, args| path =~ /\?one=two&three=four$/ or path =~ /\?three=four&one=two$/ }.returns(@response) @searcher.find(@request) end @@ -220,7 +220,7 @@ describe Puppet::Indirector::REST do @request.stubs(:options).returns(:one => "two", :three => "four") should_path = "/%s/%s" % [@indirection.name.to_s, "foo"] - @connection.expects(:get).with { |path, args| path =~ /\?one=two&three=four$/ }.returns(@response) + @connection.expects(:get).with { |path, args| path =~ /\?one=two&three=four$/ or path =~ /\?three=four&one=two$/ }.returns(@response) @searcher.search(@request) end |