Sha256: 9bd0dd72254d5c02411d429cc0516af235e69498b50945903d25b4c8dfc4dbdb
Contents?: true
Size: 669 Bytes
Versions: 24
Compression:
Stored size: 669 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
24 entries across 22 versions & 2 rubygems