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

Version Path
enju_library-0.3.11 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.10 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.9 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.8 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.8.rc.2 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.8.rc.1 spec/routing/withdraws_routing_spec.rb
enju_library-0.4.0.rc.1 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.7 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.6 spec/routing/withdraws_routing_spec.rb
enju_library-0.4.0.beta.4 spec/routing/withdraws_routing_spec.rb
enju_library-0.4.0.beta.3 spec/routing/withdraws_routing_spec.rb
enju_library-0.4.0.beta.2 spec/routing/withdraws_routing_spec.rb
enju_library-0.4.0.beta.1 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.5 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.4 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.3 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.2 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.1 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.0 spec/routing/withdraws_routing_spec.rb
enju_library-0.3.0.rc.1 spec/routing/withdraws_routing_spec.rb