Sha256: 327e8658327b6f155796995fd824b42536b110a5c8c130f53efa6b8bca1186d0

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

# encoding: UTF-8
require 'spec_helper'
require 'cep'

describe "address search" do
  include RuaBentoGoncalvesNovoHamburgoSearch

  context "when searching for 'Rua Bento Gonçalves Novo Hamburgo'" do
    subject { Cep.new.search(term) }

    it "returnes the expected result" do
      subject.should =~ addresses
    end

    it "returnes the expected result in the same order" do
      expect(subject).to eq(addresses)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cep-0.0.8 spec/integration/cep_address_search_spec.rb
cep-0.0.7 spec/integration/cep_address_search_spec.rb