Browse files

Added some tests

  • Loading branch information...
1 parent 7d0bc9a commit d143b4a4ddc3d9234d9fa19abbf4558eb9dbff90 @chendo committed Dec 7, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 spec/journey_spec.rb
View
10 spec/journey_spec.rb
@@ -12,6 +12,14 @@
it "parses journey effectively" do
subject.steps.length.should == 7
- pp subject.steps
+ step = subject.steps.first
+
+ step.method.should == :tram
+ step.origin.should == "Stop 29 - Barkers Rd/High St (Kew)"
+ step.destination.should == "Stop 19 - North Richmond Railway Station/Victoria St (Richmond)"
+ step.departure_time.should == "8:39pm"
+ step.arrival_time.should == "8:48pm"
+ step.duration.should == "9 min"
+ step.route.should == "109 tram towards Port Melbourne"
end
end

0 comments on commit d143b4a

Please sign in to comment.