Sha256: ad5f7ee8fd828b83a8ca6b876792d877594e1445f2de7768ffc968ed82750c8e

Contents?: true

Size: 344 Bytes

Versions: 13

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'

describe Etherscanio::Call do
  let(:uri) { 'http://api.etherscan.io/api?' }
  subject do
    call = Etherscanio::Call.new('foo', 'bar')
    call.api_key = api_key
    call.to_s
  end
  context 'with api_key' do
    let(:api_key) { '123' }
    it { is_expected.to eq(uri + 'module=foo&action=bar&apikey=123') }
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
etherscan-0.1.4 spec/etehrscanio_call_api_key_spec.rb
etherscan-0.1.3 spec/etehrscanio_call_api_key_spec.rb
etherscan-0.1.2 spec/etehrscanio_call_api_key_spec.rb
etherscan-0.1.1 spec/etehrscanio_call_api_key_spec.rb
etherscan-0.1.0 spec/etehrscanio_call_api_key_spec.rb
etherscan-0.0.9 spec/etehrscanio_call_api_key_spec.rb
etherscan-0.0.8 spec/etehrscanio_call_api_key_spec.rb
etherscan-0.0.7 spec/etehrscanio_call_api_key_spec.rb
etherscan-0.0.6 spec/etehrscanio_call_api_key_spec.rb
etherscanio-0.0.5 spec/etehrscanio_call_api_key_spec.rb
etherscanio-0.0.4 spec/etehrscanio_call_api_key_spec.rb
etherscanio-0.0.3 spec/etehrscanio_call_api_key_spec.rb
etherscanio-0.0.1 spec/etehrscanio_call_api_key_spec.rb