spec/grape/dsl/routing_spec.rb in grape-1.6.2 vs spec/grape/dsl/routing_spec.rb in grape-1.7.0
- old
+ new
@@ -1,9 +1,7 @@
# frozen_string_literal: true
-require 'spec_helper'
-
module Grape
module DSL
module RoutingSpec
class Dummy
include Grape::DSL::Routing
@@ -19,10 +17,10 @@
describe '.version' do
it 'sets a version for route' do
version = 'v1'
expect(subject).to receive(:namespace_inheritable).with(:version, [version])
- expect(subject).to receive(:namespace_inheritable).with(:version_options, using: :path)
+ expect(subject).to receive(:namespace_inheritable).with(:version_options, { using: :path })
expect(subject.version(version)).to eq(version)
end
end
describe '.prefix' do