Sha256: 7946c5dfc093ba49f8d001fe0e226b398b311a1206ba84084de477d5b2cff4ef
Contents?: true
Size: 648 Bytes
Versions: 21
Compression:
Stored size: 648 Bytes
Contents
require "rails_helper" RSpec.describe WithdrawsController, type: :routing do describe "routing" do it "routes to #index" do expect(get: "/withdraws").to route_to("withdraws#index") end it "routes to #new" do expect(get: "/withdraws/new").to route_to("withdraws#new") end it "routes to #show" do expect(get: "/withdraws/1").to route_to("withdraws#show", id: "1") end it "routes to #create" do expect(post: "/withdraws").to route_to("withdraws#create") end it "routes to #destroy" do expect(delete: "/withdraws/1").to route_to("withdraws#destroy", id: "1") end end end
Version data entries
21 entries across 21 versions & 1 rubygems