Sha256: 2a76f9a3ac331bf28967ff5db78dbc7279fd1d5112b05cab773e7d5a23eac864

Contents?: true

Size: 1.13 KB

Versions: 10

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
require 'spec_helper'

describe EmailsController do
  describe "routing" do
    it "should not recognize #index" do
      expect(get: "/emails").not_to be_routable
    end

    it "should not recognize #new" do
      expect(get: "/emails/new").not_to be_routable
    end

    it "should not recognize #show" do
      expect(get: "/emails/1").not_to be_routable
    end

    it "should not recognize #edit" do
      expect(get: "/emails/1/edit").not_to be_routable
    end

    it "should not recognize #create" do
      expect(post: "/emails").not_to be_routable
    end

    it "should not recognize #update" do
      expect(put: "/emails/1").not_to be_routable
    end

    it "recognizes and generates #destroy" do
      expect(delete: "/emails/1").to route_to(controller: "emails", action: "destroy", id: "1")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fat_free_crm-0.20.1 spec/routing/emails_routing_spec.rb
fat_free_crm-0.20.0 spec/routing/emails_routing_spec.rb
fat_free_crm-0.19.2 spec/routing/emails_routing_spec.rb
fat_free_crm-0.19.0 spec/routing/emails_routing_spec.rb
fat_free_crm-0.18.2 spec/routing/emails_routing_spec.rb
fat_free_crm-0.17.3 spec/routing/emails_routing_spec.rb
fat_free_crm-0.18.1 spec/routing/emails_routing_spec.rb
fat_free_crm-0.18.0 spec/routing/emails_routing_spec.rb
fat_free_crm-0.17.2 spec/routing/emails_routing_spec.rb
fat_free_crm-0.17.1 spec/routing/emails_routing_spec.rb