Sha256: 7094f063ae188a05dccad3f321517c2f35769364d0a20ea0c8d514067ee780ad

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

require 'spec_helper'

describe Opennorth::Represent, "#get_postal_code", type: :request  do
  let(:service_options) {{}}
  context "success" do
    subject { described_request("V6H2V4") }

    it "should be status 200" do
      expect(subject.status).to eql(200)
    end

    it "should be formatted as a postal code response" do
      expect(subject.body).to be_formatted_like(POSTAL_CODE_RESPONSE)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opennorth-represent-0.1.0 spec/opennorth/represent/requests/get_postal_code_spec.rb