Skip to content
Browse files

spec fix: more hash ordering fixes

  • Loading branch information...
1 parent 1065e43 commit 709ef8825ce2d017ea9cd97491d2400cbab60fb0 @zimbatm zimbatm committed Mar 9, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 spec/video_spec.rb
View
8 spec/video_spec.rb
@@ -226,11 +226,7 @@
it "should return a json on attributes" do
video = Panda::Video.new(:attr => "value")
- if(RUBY_VERSION >= "1.9")
- video.to_json.should == "{\"attr\":\"value\",\"cloud_id\":\"my_cloud_id\"}"
- else
- video.to_json.should == "{\"cloud_id\":\"my_cloud_id\",\"attr\":\"value\"}"
- end
+ MultiJson.decode( video.to_json ).should == {"attr" => "value", "cloud_id" => "my_cloud_id"}
end
it "should create an encoding using video scope" do
@@ -284,7 +280,7 @@
encodings_json = "[{\"abc\":\"my_source_url\",\"id\":\"456\"}]"
stub_http_request(:get, /api.example.com:85\/v2\/videos\/123\/encodings.json/).to_return(:body => encodings_json)
- MultiJson.decode(video.encodings.first.to_json).should == {"abc" => "my_source_url", "id" => "456", "cloud_id" => "my_cloud_id"}
+ MultiJson.decode( video.encodings.first.to_json ).should == {"abc" => "my_source_url", "id" => "456", "cloud_id" => "my_cloud_id"}
end
it "should return the video url" do

0 comments on commit 709ef88

Please sign in to comment.
Something went wrong with that request. Please try again.