spec/lib/oapi_tasks_spec.rb in grape-swagger-1.5.0 vs spec/lib/oapi_tasks_spec.rb in grape-swagger-1.6.0

- old
+ new

@@ -28,10 +28,10 @@ let(:api_class) { subject.send(:api_class) } let(:docs_url) { subject.send(:urls_for, api_class).first } describe '.new' do it 'accepts class name as a constant' do - expect(described_class.new(::Api::Base).send(:api_class)).to eq(Api::Base) + expect(described_class.new(Api::Base).send(:api_class)).to eq(Api::Base) end it 'accepts class name as a string' do expect(described_class.new('::Api::Base').send(:api_class)).to eq(Api::Base) end