Sha256: bd0063d7bf12badfbdecbcdf02e090703629ac425a1f04b033aa52731029c70f
Contents?: true
Size: 1.07 KB
Versions: 6
Compression:
Stored size: 1.07 KB
Contents
require "rails_helper" RSpec.describe AppointmentsController, type: :routing do describe "routing" do it "routes to #index" do expect(:get => "/appointments").to route_to("appointments#index") end it "routes to #new" do expect(:get => "/appointments/new").to route_to("appointments#new") end it "routes to #show" do expect(:get => "/appointments/1").to route_to("appointments#show", :id => "1") end it "routes to #edit" do expect(:get => "/appointments/1/edit").to route_to("appointments#edit", :id => "1") end it "routes to #create" do expect(:post => "/appointments").to route_to("appointments#create") end it "routes to #update via PUT" do expect(:put => "/appointments/1").to route_to("appointments#update", :id => "1") end it "routes to #update via PATCH" do expect(:patch => "/appointments/1").to route_to("appointments#update", :id => "1") end it "routes to #destroy" do expect(:delete => "/appointments/1").to route_to("appointments#destroy", :id => "1") end end end
Version data entries
6 entries across 6 versions & 1 rubygems