aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorcedricnjanga2017-11-27 15:45:37 +0100
committercedricnjanga2017-11-27 16:15:51 +0100
commitd5db245d67ba14351f09c707b566671e1bd04541 (patch)
tree96d2ae3bd6b8945d980ffe655246633ba192e334 /spec
parentd832ccaa091595bbab0ee0e4c5e863905963686c (diff)
downloadchouette-core-d5db245d67ba14351f09c707b566671e1bd04541.tar.bz2
Refs #4941 Fix objectid short version Display on views
Diffstat (limited to 'spec')
-rw-r--r--spec/models/chouette/stop_point_spec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/models/chouette/stop_point_spec.rb b/spec/models/chouette/stop_point_spec.rb
index f48173e65..264fd26fc 100644
--- a/spec/models/chouette/stop_point_spec.rb
+++ b/spec/models/chouette/stop_point_spec.rb
@@ -1,7 +1,4 @@
-# From Chouette import what we need ™
-StopPoint = Chouette::StopPoint
-
-describe StopPoint, :type => :model do
+describe Chouette::StopPoint, :type => :model do
let!(:vehicle_journey) { create(:vehicle_journey)}
subject { Chouette::Route.find( vehicle_journey.route_id).stop_points.first }
@@ -44,7 +41,7 @@ describe StopPoint, :type => :model do
let!( :new_route ){ create :route }
it 'creates a new instance' do
- expect{ subject.duplicate(for_route: new_route) }.to change{ StopPoint.count }.by(1)
+ expect{ subject.duplicate(for_route: new_route) }.to change{ Chouette::StopPoint.count }.by(1)
end
it 'new instance has a new route' do
expect(subject.duplicate(for_route: new_route).route).to eq(new_route)