Sha256: 3712a34f0a080f33d446437c97dde7537184d9e6bccad0bbc28d2fb46be21c10
Contents?: true
Size: 1012 Bytes
Versions: 3
Compression:
Stored size: 1012 Bytes
Contents
require File.expand_path("../../../test_helper.rb", __FILE__) module App class RoutingTest < ActionController::TestCase test "rich_cms" do assert_routing "/cms", :controller => "rich/cms", :action => "display", :display => true assert_named_route "/cms", :rich_cms end test "rich_cms_hide" do assert_routing "/cms/hide", :controller => "rich/cms", :action => "display", :display => false assert_named_route "/cms/hide", :rich_cms_hide end %w(login logout).each do |action| test "rich_cms_#{action}" do assert_routing "/cms/#{action}", :controller => "rich/cms_sessions", :action => action assert_named_route "/cms/#{action}", :"rich_cms_#{action}" end end %w(position update).each do |action| test "rich_cms_#{action}" do assert_routing "/cms/#{action}", :controller => "rich/cms", :action => action assert_named_route "/cms/#{action}", :"rich_cms_#{action}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rich_cms-3.0.2 | test/shared/tests/app/routing_test.rb |
rich_cms-3.0.1 | test/shared/tests/app/routing_test.rb |
rich_cms-3.0.0 | test/shared/tests/app/routing_test.rb |