Sha256: 67da64f7c435f999f0ff726c04355fc6e458297cd8a067b22a7484832ef4387e
Contents?: true
Size: 876 Bytes
Versions: 4
Compression:
Stored size: 876 Bytes
Contents
# encoding: utf-8 require File.expand_path("test/test_helper.rb") class ThemesForRailsTest < Test::Unit::TestCase setup do @common = Object.new @common.extend ThemesForRails::CommonMethods @common.theme_name = "awesome" ThemesForRails.config.clear end should 'use config base_dir to build theme path' do ThemesForRails.config.base_dir = '/some_path' assert_match /some_path/, @common.theme_view_path end should 'use config views_dir to build theme path' do ThemesForRails.config.views_dir =':root/skinner/:name/views' assert_match /skinner/, @common.theme_view_path_for('awesome') assert_match /skinner/, @common.theme_view_path end should 'use config base_dir to build theme path for theme' do ThemesForRails.config.base_dir ='some_path' assert_match /some_path/, @common.theme_view_path_for('doodley') end end
Version data entries
4 entries across 4 versions & 2 rubygems