File size: 385 Bytes
def1299
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "rails_helper"

RSpec.describe SubmissionsController, type: :routing do
  describe "routing" do
    it "routes to #show" do
      token = SecureRandom.uuid
      expect(:get => "/submissions/#{token}").to route_to("submissions#show", token: token)
    end

    it "routes to #create" do
      expect(:post => "/submissions").to route_to("submissions#create")
    end
  end
end