aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/chouette/route.rb1
-rw-r--r--spec/models/chouette/stop_point_spec.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/app/models/chouette/route.rb b/app/models/chouette/route.rb
index 8b04b95d0..e361b9e8c 100644
--- a/app/models/chouette/route.rb
+++ b/app/models/chouette/route.rb
@@ -78,7 +78,6 @@ class Chouette::Route < Chouette::TridentActiveRecord
def duplicate
overrides = {
- 'object_version' => object_version - 1,
'opposite_route_id' => nil
}
keys_for_create = attributes.keys - %w{id objectid created_at updated_at}
diff --git a/spec/models/chouette/stop_point_spec.rb b/spec/models/chouette/stop_point_spec.rb
index 1be000b56..329e76a75 100644
--- a/spec/models/chouette/stop_point_spec.rb
+++ b/spec/models/chouette/stop_point_spec.rb
@@ -41,7 +41,7 @@ describe StopPoint, :type => :model do
end
describe '#duplicate' do
- let!( :new_route ){ create :route, objectid: 'newroute:Route:1' }
+ let!( :new_route ){ create :route }
it 'creates a new instance' do
expect{ subject.duplicate(for_route: new_route) }.to change{ StopPoint.count }.by(1)