Sha256: d9d8cbb5fdf47d2788d1b2e3d529be51220d460ed8c74ee6e290589f071abec4

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 Bytes

Contents

require 'spec_helper'

describe ApiResource::Formats::JsonFormat do


  context "#decode" do

    it "should not err on a blank response from an api" do

      blank_str = "      \n     "
      lambda{
        subject.decode(blank_str)
      }.should_not raise_error

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
api_resource-0.6.15 spec/lib/formats/json_format_spec.rb
api_resource-0.6.14 spec/lib/formats/json_format_spec.rb
api_resource-0.6.13 spec/lib/formats/json_format_spec.rb
api_resource-0.6.12 spec/lib/formats/json_format_spec.rb