Sha256: 9fc9b354fd819bf8a44a0f76afc7665cc33921a061bcf5a6e5366ca1a4050cbe

Contents?: true

Size: 444 Bytes

Versions: 4

Compression:

Stored size: 444 Bytes

Contents

require "spec_helper"

describe DiscountNetwork::Destination do
  describe ".list" do
    it "returns the similar destinations" do
      search_term = "bang"
      stub_destination_list_api(term: search_term)

      destinations = DiscountNetwork::Destination.list(term: search_term)
      destination = destinations.first

      expect(destination.value).to eq(835)
      expect(destination.label).to eq("Bangkok, Thailand")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
discountnetwork-0.1.3 spec/discountnetwork/destination_spec.rb
discountnetwork-0.1.2 spec/discountnetwork/destination_spec.rb
discountnetwork-0.1.1 spec/discountnetwork/destination_spec.rb
discountnetwork-0.1.0 spec/discountnetwork/destination_spec.rb