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

Version Path
enju_library-0.2.5 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.4 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.3 spec/routing/withdraws_routing_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/routing/withdraws_routing_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/routing/withdraws_routing_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/routing/withdraws_routing_spec.rb
enju_library-0.2.2 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.1 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.10 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.9 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.8 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.7 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.6 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.5 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.4 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.3 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.2 spec/routing/withdraws_routing_spec.rb
enju_library-0.2.0.beta.1 spec/routing/withdraws_routing_spec.rb
enju_library-0.1.2 spec/routing/withdraws_routing_spec.rb