Permalink
Browse files

[Specs] Fix Specification::JSON on Ruby 1.8.7

  • Loading branch information...
1 parent 8738fcd commit e82b1c846c85486f725fab849ec0d1bab5631dc7 @fabiopelosin fabiopelosin committed Dec 20, 2013
Showing with 5 additions and 7 deletions.
  1. +5 −7 spec/specification/json_spec.rb
@@ -7,17 +7,15 @@ module Pod
it "returns the json representation" do
sut = Specification.new(nil, "BananaLib")
sut.version = "1.0"
- expected = <<-DOC.strip_heredoc
- {
- "name": "BananaLib",
- "version": "1.0"
+ expected = {
+ "name" => "BananaLib",
+ "version" => "1.0"
}
- DOC
- sut.to_json.should == expected.chomp
+ JSON.parse(sut.to_json).should == expected
end
it "allows to specify multi-platform attributes" do
- json = <<-DOC.strip_heredoc
+ json = <<-DOC
{
"name": "BananaLib",
"ios": {

0 comments on commit e82b1c8

Please sign in to comment.