Updated

spec/requests / unknown_format_spec.rb

A
11 lines of codes
0 methods
N/A complexity/method
1 churn
7.3 complexity
0 duplications
require 'rails_helper' RSpec.describe 'Requests for an unknown format', type: :request, show_exceptions: true do before do get "/petitions/100001.please" end it "redirect to the path without the extension" do expect(response).to redirect_to('/petitions/100001') end end