Sha256: a291764148171861febf03157b71f3f4d5c1ef32dde70482f1b08af8bb4e0412

Contents?: true

Size: 781 Bytes

Versions: 10

Compression:

Stored size: 781 Bytes

Contents

require 'spec_helper'

describe Etherscanio::Api do
  describe 'account_getminedblocks' do
    subject { Etherscanio::Api.new(apikey).account_getminedblocks(address, blocktype) }

    context 'no paging' do
      let(:apikey) { 'YourApiKeyToken' }
      let(:address) { '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' }
      let(:blocktype) { 'block' }
      it { is_expected.to be_a(Object) }
    end

    context 'paging' do
      subject { Etherscanio::Api.new(apikey).account_getminedblocks(address, blocktype, page, offset) }
      let(:apikey) { 'YourApiKeyToken' }
      let(:address) { '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' }
      let(:page) { 1 }
      let(:offset) { 10 }
      let(:blocktype) { 'block' }
      it { is_expected.to be_a(Object) }
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
etherscan-0.1.4 spec/api/account/getminedblocks_spec.rb
etherscan-0.1.3 spec/api/account/getminedblocks_spec.rb
etherscan-0.1.2 spec/api/account/getminedblocks_spec.rb
etherscan-0.1.1 spec/api/account/getminedblocks_spec.rb
etherscan-0.1.0 spec/api/account/getminedblocks_spec.rb
etherscan-0.0.9 spec/api/account/getminedblocks_spec.rb
etherscan-0.0.8 spec/api/account/getminedblocks_spec.rb
etherscan-0.0.7 spec/api/account/getminedblocks_spec.rb
etherscan-0.0.6 spec/api/account/getminedblocks_spec.rb
etherscanio-0.0.5 spec/api/account/getminedblocks_spec.rb