# 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 == "" 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