Sha256: f14859eaf0671c7c80560d3010a494a0e98c10a02aa67b9f65fbe9305cb5ccae
Contents?: true
Size: 1.04 KB
Versions: 5
Compression:
Stored size: 1.04 KB
Contents
require 'test_helper' class CellsModuleTest < ActiveSupport::TestCase context "Cells" do context "view_paths" do setup do @old_view_paths = Cell::Rails.view_paths.clone end teardown do Cell::Rails.view_paths = @old_view_paths end should "provide .setup" do Cells.setup do |c| c.append_view_path "/road/to/nowhere" end if Cells.rails3_2_or_more? assert_equal "/road/to/nowhere", Cell::Rails.view_paths.paths.last.to_s else assert_equal "/road/to/nowhere", Cell::Rails.view_paths.last.to_s end end end should "respond to #rails3_1_or_more?" do if Rails::VERSION::MINOR == 0 assert ! Cells.rails3_1_or_more? assert Cells.rails3_0? elsif Rails::VERSION::MINOR == 1 assert Cells.rails3_1_or_more? assert ! Cells.rails3_0? elsif Rails::VERSION::MINOR == 2 assert Cells.rails3_1_or_more? assert ! Cells.rails3_0? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems