Sha256: 8b48b8a8be7cc02312c07dcba99979213db1aae1c8931d68e4d93af91944d1f5
Contents?: true
Size: 1.45 KB
Versions: 5
Compression:
Stored size: 1.45 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 File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe EmailsController do describe "routing" do it "recognizes and generates #index" do { :get => "/emails" }.should route_to(:controller => "emails", :action => "index") end it "recognizes and generates #new" do { :get => "/emails/new" }.should route_to(:controller => "emails", :action => "new") end it "recognizes and generates #show" do { :get => "/emails/1" }.should route_to(:controller => "emails", :action => "show", :id => "1") end it "recognizes and generates #edit" do { :get => "/emails/1/edit" }.should route_to(:controller => "emails", :action => "edit", :id => "1") end it "recognizes and generates #create" do { :post => "/emails" }.should route_to(:controller => "emails", :action => "create") end it "recognizes and generates #update" do { :put => "/emails/1" }.should route_to(:controller => "emails", :action => "update", :id => "1") 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
5 entries across 5 versions & 1 rubygems