Sha256: 3d59ea853fa70c66fd52ad301d2fa892c06c61cec7433bbb63e9729d7a0c7dce

Contents?: true

Size: 1.1 KB

Versions: 15

Compression:

Stored size: 1.1 KB

Contents

# 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

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 spec/routing/emails_routing_spec.rb
fat_free_crm-0.15.2 spec/routing/emails_routing_spec.rb
fat_free_crm-0.16.4 spec/routing/emails_routing_spec.rb
fat_free_crm-0.14.1 spec/routing/emails_routing_spec.rb
fat_free_crm-0.15.1 spec/routing/emails_routing_spec.rb
fat_free_crm-0.16.3 spec/routing/emails_routing_spec.rb
fat_free_crm-0.16.2 spec/routing/emails_routing_spec.rb
fat_free_crm-0.16.1 spec/routing/emails_routing_spec.rb
fat_free_crm-0.16.0 spec/routing/emails_routing_spec.rb
fat_free_crm-0.15.0 spec/routing/emails_routing_spec.rb
fat_free_crm-0.15.0.beta.2 spec/routing/emails_routing_spec.rb
fat_free_crm-0.15.0.beta spec/routing/emails_routing_spec.rb
fat_free_crm-0.14.0 spec/routing/emails_routing_spec.rb
reduced_fat_crm-0.15.0.beta spec/routing/emails_routing_spec.rb
reduced_fat_crm-0.14.0 spec/routing/emails_routing_spec.rb