aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/models/chouette/routing_constraint_zone_spec.rb2
-rw-r--r--spec/tasks/reflex_rake_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/chouette/routing_constraint_zone_spec.rb b/spec/models/chouette/routing_constraint_zone_spec.rb
index 0f34db5f9..87ee9e9ac 100644
--- a/spec/models/chouette/routing_constraint_zone_spec.rb
+++ b/spec/models/chouette/routing_constraint_zone_spec.rb
@@ -13,7 +13,7 @@ describe Chouette::RoutingConstraintZone, type: :model do
it 'validates the presence of route_id' do
expect {
routing_constraint_zone.update!(route_id: nil)
- }.to raise_error
+ }.to raise_error(NoMethodError)
end
it 'validates the presence of stop_point_ids' do
diff --git a/spec/tasks/reflex_rake_spec.rb b/spec/tasks/reflex_rake_spec.rb
index 49874231e..04c5886aa 100644
--- a/spec/tasks/reflex_rake_spec.rb
+++ b/spec/tasks/reflex_rake_spec.rb
@@ -1,7 +1,7 @@
require 'spec_helper'
describe 'reflex:sync' do
- pending 'On first sync' do
+ context 'On first sync' do
before(:each) do
['getOP', 'getOR'].each do |method|
stub_request(:get, "#{Rails.application.config.reflex_api_url}/?format=xml&idRefa=0&method=#{method}").