Sha256: c8a701899060c0a50a8fc5ad86d9d107fd3d572386cd3daf67b9660bfdf6fed0

Contents?: true

Size: 1.02 KB

Versions: 9

Compression:

Stored size: 1.02 KB

Contents

require "rails_helper"

RSpec.describe MailManager::ContactsController, :type => :routing do
  routes {MailManager::Engine.routes}
  describe "routing" do

    it "routes to #index" do
      expect(:get => "/contacts").to route_to("mail_manager/contacts#index")
    end

    it "routes to #new" do
      expect(:get => "/contacts/new").to route_to("mail_manager/contacts#new")
    end

    it "routes to #show" do
      expect(:get => "/contacts/1").to route_to("mail_manager/contacts#show", :id => "1")
    end

    it "routes to #edit" do
      expect(:get => "/contacts/1/edit").to route_to("mail_manager/contacts#edit", :id => "1")
    end

    it "routes to #create" do
      expect(:post => "/contacts").to route_to("mail_manager/contacts#create")
    end

    it "routes to #update" do
      expect(:put => "/contacts/1").to route_to("mail_manager/contacts#update", :id => "1")
    end

    it "routes to #destroy" do
      expect(:delete => "/contacts/1").to route_to("mail_manager/contacts#destroy", :id => "1")
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mail_manager-3.2.25.1 spec/test_app/spec/routing/mail_manager/contacts_routing_spec.rb
mail_manager-3.2.22.0 spec/test_app/spec/routing/mail_manager/contacts_routing_spec.rb
mail_manager-3.2.7 spec/test_app/spec/routing/mail_manager/contacts_routing_spec.rb
mail_manager-3.2.6 spec/test_app/spec/routing/mail_manager/contacts_routing_spec.rb
mail_manager-3.2.5 spec/test_app/spec/routing/mail_manager/contacts_routing_spec.rb
mail_manager-3.2.4 spec/test_app/spec/routing/mail_manager/contacts_routing_spec.rb
mail_manager-3.2.2 spec/test_app/spec/routing/mail_manager/contacts_routing_spec.rb
mail_manager-3.2.1 spec/test_app/spec/routing/mail_manager/contacts_routing_spec.rb
mail_manager-3.2.0 spec/test_app/spec/routing/mail_manager/contacts_routing_spec.rb