Sha256: f2a0b529d7771b21c4d43f8be4b577712a453bc0072383e9b9258c274905b5d5

Contents?: true

Size: 562 Bytes

Versions: 10

Compression:

Stored size: 562 Bytes

Contents

require 'spec_helper'

class Bitstamp::Coin < Bitstamp::Model;end
class Bitstamp::Coins < Bitstamp::Collection;end

describe Bitstamp::Coins do
  let(:kojns) { Bitstamp::Coins.new }

  it 'should have a name representing the class his name but not modules' do
    kojns.name.should eq 'coin'
  end

  it 'module should reflect a singular form' do
    kojns.module.should eq "bitstamp/coin"
  end

  it 'should have a model' do
    kojns.model.should be Bitstamp::Coin
  end

  it 'should have an api end point' do
    kojns.path.should eq "/api/coins"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bitstamp-0.2.8 spec/collection_spec.rb
bitstamp-0.2.7 spec/collection_spec.rb
bitstamp-0.2.6 spec/collection_spec.rb
bitstamp-0.2.5 spec/collection_spec.rb
bitstamp-0.2.4 spec/collection_spec.rb
bitstamp-0.2.3 spec/collection_spec.rb
bitstamp-0.2.2 spec/collection_spec.rb
bitstamp-0.2.1 spec/collection_spec.rb
bitstamp-0.2.0 spec/collection_spec.rb
bitstamp-0.1.0 spec/collection_spec.rb