Sha256: a85128e311293b718034e289a7d5301d88e5833fe5f029f8c1e75976baddd68a
Contents?: true
Size: 614 Bytes
Versions: 5
Compression:
Stored size: 614 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe BikePOA::Station do describe 'string representation' do it 'should have station name, size and available bikes' do subject.id = 5 subject.name = 'le estacion' subject.size = 99 subject.available = 6 subject.to_s.should == "<Station#5:le estacion, 6/99>" end end describe 'active station' do it 'is active when online is A' do subject.online = 'A' subject.active?.should be_true end it 'is inactive otherwise' do subject.online = "E" subject.active?.should be_false end end end
Version data entries
5 entries across 5 versions & 1 rubygems