Sha256: 0a529f08803d797e1392f8bd0408ca70951bf4a6bffe1bbe3ac8ec646fd4f284
Contents?: true
Size: 1.15 KB
Versions: 8
Compression:
Stored size: 1.15 KB
Contents
require "test_helper" module ThemesForRails class RoutingTest < ActionController::TestCase should "recognize stylesheets route" do assert_generates('/themes/default/stylesheets/app.css', { :controller => 'themes_for_rails/assets', :action => 'stylesheets', :theme => 'default', :asset => 'app.css' }) end should "recognize javascripts route" do assert_generates('/themes/default/javascripts/app.js', { :controller => 'themes_for_rails/assets', :action => 'javascripts', :theme => 'default', :asset => 'app.js' }) end should "recognize images route" do assert_generates('/themes/default/images/logo.png', { :controller => 'themes_for_rails/assets', :action => 'images', :theme => 'default', :asset => 'logo.png' }) end should "recognize nested route" do assert_generates('/themes/default/images/nested/logo.png', { :controller => 'themes_for_rails/assets', :action => 'images', :theme => 'default', :asset => 'nested/logo.png' }) end end end
Version data entries
8 entries across 8 versions & 1 rubygems