Judge0Tsting / spec /routing /submissions_routing_spec.rb
AdityaSharmaTech's picture
Upload 177 files
def1299 verified
raw
history blame
385 Bytes
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