Sha256: 1e5aa63d7dfa893f8c4583c656b5a47c05630dfa36940b62428ac93b4c3919d9

Contents?: true

Size: 1.75 KB

Versions: 15

Compression:

Stored size: 1.75 KB

Contents

# we're using a standard route instead of this filter now

# require File.dirname(__FILE__) + '/../spec_helper'
# require File.dirname(__FILE__) + '/../spec_routing_helper'
# require File.dirname(__FILE__) + '/../spec_mocks'
#
# describe "Routing Filter::RootBlogArchive" do
#   include SpecRoutingHelper
#   include SpecMocks
#
#   describe "#before_recognize_path" do
#     describe "given an incoming root blog archive path with no locale (like /2008/1)" do
#       controller_name 'base'
#
#       it "should insert the blog path segment to the path when the root section is a blog" do
#         Site.should_receive(:find_by_host).and_return mock_site(mock_blog)
#         before_recognize_path(:root_blog_archive, '/2008/1').should == '/blog/2008/1'
#       end
#
#       it "should not modify the path when the root section is not a blog" do
#         Site.should_receive(:find_by_host).and_return mock_site(mock_section)
#         before_recognize_path(:root_blog_archive, '/2008/1').should == '/2008/1'
#       end
#     end
#
#     describe "given an incoming root blog archive path with a locale and trailing stuff (like /de/2008/1/something)" do
#       controller_name 'base'
#
#       it "should insert the blog path segment to the path when the root section is a blog" do
#         Site.should_receive(:find_by_host).and_return mock_site(mock_blog)
#         before_recognize_path(:root_blog_archive, '/de/2008/1/something').should == '/de/blog/2008/1/something'
#       end
#
#       it "should not modify the path when the root section is not a blog" do
#         Site.should_receive(:find_by_host).and_return mock_site(mock_section)
#         before_recognize_path(:root_blog_archive, '/de/2008/1/something').should == '/de/2008/1/something'
#       end
#     end
#   end
# end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.3.1 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.3.0 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.2.4 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.2.3 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.2.2 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.2.1 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.2.0 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.1.4 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.1.3 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.1.2 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.1.1 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.1.0 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva_cms-0.0.1 test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb
adva-0.0.1 adva_cms/test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb