Sha256: 09900ef9a3e0ca2169c9fee0c4a014bb6c7769e838e4fa8f3ba97843397c58cb
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper') module BlogTests class ContentHelperTest < ActionView::TestCase include ContentHelper include ResourceHelper include BlogHelper attr_accessor :controller def setup @controller = Class.new { def controller_path; 'articles' end }.new end test "#show_path given the content's section is a Blog it returns a blog_article_path" do @article = Blog.first.articles.first show_path(@article).should =~ %r(/2008/1/1/a-blog-article) end end end
Version data entries
4 entries across 4 versions & 2 rubygems