Sha256: dd2a637d5af0fdbcf8e158eb12c8419e812a47387a69a770b4cb154f71df08c2

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 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
      { :get => "/emails" }.should_not be_routable
    end

    it "should not recognize #new" do
      { :get => "/emails/new" }.should_not be_routable
    end

    it "should not recognize #show" do
      { :get => "/emails/1" }.should_not be_routable
    end

    it "should not recognize #edit" do
      { :get => "/emails/1/edit" }.should_not be_routable
    end

    it "should not recognize #create" do
      { :post => "/emails" }.should_not be_routable
    end

    it "should not recognize #update" do
      { :put => "/emails/1" }.should_not be_routable
    end

    it "recognizes and generates #destroy" do
      { :delete => "/emails/1" }.should route_to(:controller => "emails", :action => "destroy", :id => "1")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/routing/emails_routing_spec.rb
fat_free_crm-0.13.5 spec/routing/emails_routing_spec.rb
fat_free_crm-0.13.4 spec/routing/emails_routing_spec.rb
fat_free_crm-0.13.3 spec/routing/emails_routing_spec.rb
fat_free_crm-0.13.2 spec/routing/emails_routing_spec.rb
fat_free_crm-0.13.1 spec/routing/emails_routing_spec.rb