aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib
diff options
context:
space:
mode:
authorTeddy Wing2018-03-12 12:41:28 +0100
committerTeddy Wing2018-03-14 16:38:39 +0100
commitf04a89b3af581c8956add61e4a05edc0ae9405f5 (patch)
tree390b4b6baaf181b8a461e3fd71b91be128bea909 /spec/lib
parent0d5e6f92f74a06807c67c9d0427dd5b5543a6400 (diff)
downloadchouette-core-f04a89b3af581c8956add61e4a05edc0ae9405f5.tar.bz2
Move `lib/tom_tom.rb` to `lib/tom_tom/batch.rb`
Separate the functionality a little better by moving the `/batch` endpoint code into a new class. The goal here is also to lay the foundation for being able to call `TomTom.batch()` instead of `TomTom.new.batch()`. Refs #6095
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/tom_tom/batch_spec.rb (renamed from spec/lib/tom_tom_spec.rb)4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/tom_tom_spec.rb b/spec/lib/tom_tom/batch_spec.rb
index 57f22d26a..5aff970eb 100644
--- a/spec/lib/tom_tom_spec.rb
+++ b/spec/lib/tom_tom/batch_spec.rb
@@ -1,5 +1,5 @@
-RSpec.describe TomTom do
- let(:tomtom) { TomTom.new }
+RSpec.describe TomTom::Batch do
+ let(:tomtom) { TomTom::Batch.new }
describe "#convert_way_costs_for_batch" do
it "turns WayCost points into a collection of colon-separated strings" do