Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bunch of small cleanups, mostly to get tests passing. #1

Merged
merged 5 commits into from Oct 21, 2011

Conversation

nirvdrum
Copy link
Contributor

No description provided.

@@ -61,7 +61,7 @@ describe Resque::Plugins::ConcurrentRestriction do

it "should encode jobs correctly" do
job = Resque::Job.new("somequeue", {"class" => "RestrictionJob", "args" => [1, 2, 3]})
ConcurrentRestrictionJob.encode(job).should == '{"queue":"somequeue","payload":{"class":"RestrictionJob","args":[1,2,3]}}'
JSON.parse(ConcurrentRestrictionJob.encode(job)).should == JSON.parse('{"queue":"somequeue","payload":{"class":"RestrictionJob","args":[1,2,3]}}')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this needed? Tests are passing for me. Is it a 1.8/1.9 difference with ordered hashes or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. And while I didn't run through other rubies, I've noticed in the past that rbx and jruby may order differently too. They're consistent in how they do it, but it may not match other rubies.

wr0ngway pushed a commit that referenced this pull request Oct 21, 2011
A bunch of small cleanups, mostly to get tests passing.
@wr0ngway wr0ngway merged commit d2786ca into wr0ngway:master Oct 21, 2011
russCloak added a commit that referenced this pull request Apr 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants