Sha256: 84e9ceb1c26cfd7a30a7dc6d72a65887595ab5fc35cdae47ab04679edea2af52

Contents?: true

Size: 447 Bytes

Versions: 4

Compression:

Stored size: 447 Bytes

Contents

require_relative '../test_helper'

describe Ebanx::Command::Zipcode do
  before do
    @params = {
      zipcode: '80230010'
    }
  end

  it "can't run without arguments" do
    lambda { ebanx.do_zipcode }.must_raise ArgumentError
  end

  # Evil integration test
  it "performs a successful request" do
    response = ebanx.do_zipcode @params
    response.http_code.must_equal 200
    response.response['status'].must_equal 'SUCCESS'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ebanx-1.3.5 test/ebanx/zipcode_command_test.rb
ebanx-1.3.4 test/ebanx/zipcode_command_test.rb
ebanx-1.3.3 test/ebanx/zipcode_command_test.rb
ebanx-1.3.2 test/ebanx/zipcode_command_test.rb