Sha256: a4ebb01a219b5f46e9b90675cec481d1810a5055f74ae717365329b003b11203

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

require "spec_helper"

describe Sendle::Api::Errors::MissingParams do

  describe "#to_s" do
    it "formats the message" do
      error = Sendle::Api::Errors::MissingParams.new(%w( pickup_address deliver_address ))

      expect(error.to_s).to eq "The following params are required: pickup_address, deliver_address. Please check your request and try again."
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sendle-api-0.0.13 spec/sendle/errors/missing_params_spec.rb
sendle-api-0.0.12 spec/sendle/errors/missing_params_spec.rb
sendle-api-0.0.11 spec/sendle/errors/missing_params_spec.rb