spec/collection_spec.rb in bitstamp-0.2.8 vs spec/collection_spec.rb in bitstamp-0.3.0

- old
+ new

@@ -2,23 +2,11 @@ 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 + subject { Bitstamp::Coins.new } + its(:name) { should eq 'coin' } + its(:module) { should eq "bitstamp/coin" } + its(:model) { should be Bitstamp::Coin } + its(:path) { should eq "/api/coins" } end