Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nihil2501 committed Feb 6, 2025
1 parent 8b93e67 commit 22bb41e
Showing 1 changed file with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@

require 'rails_helper'

class BypassOliveBranchTestController < ActionController::API
def arp = render json: {}
def normal = render json: {}
end

RSpec.describe AccreditedRepresentativePortal::BypassOliveBranch, type: :request do
before(:all) do
class BypassOliveBranchTestController < ActionController::API
def arp = render json: {}
def normal = render json: {}
end
subject do
get "#{path_prefix}/bypass_olive_branch_test", headers: {
'X-Key-Inflection' => 'camel',
'Content-Type' => 'application/json'
}
end

before(:all) do
Rails.application.routes.draw do
get '/accredited_representative_portal/bypass_olive_branch_test', to: 'bypass_olive_branch_test#arp'
get '/bypass_olive_branch_test', to: 'bypass_olive_branch_test#normal'
Expand All @@ -19,13 +26,6 @@ def normal = render json: {}
Rails.application.reload_routes!
end

subject do
get "#{path_prefix}/bypass_olive_branch_test", headers: {
'X-Key-Inflection' => 'camel',
'Content-Type' => 'application/json'
}
end

context 'when the request is for an accredited representative portal route' do
let(:path_prefix) { '/accredited_representative_portal' }

Expand All @@ -46,5 +46,3 @@ def normal = render json: {}
end
end
end


0 comments on commit 22bb41e

Please sign in to comment.