Sha256: 44b18c4f1de4717668e8da7b58e4774e6af83a8be3f4414c241ef5f558e14e38
Contents?: true
Size: 921 Bytes
Versions: 1
Compression:
Stored size: 921 Bytes
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 assert_equal "/road/to/nowhere", Cell::Rails.view_paths.last.to_s 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cells-3.8.0 | test/cells_module_test.rb |