Sha256: 5861cbae494a4a7ce979036f3f051dbd1c9aac97e11999f05bc7715e00804bf7
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
require 'test_helper' class CellsModuleTest < MiniTest::Spec describe "Cells" do describe "#view_paths" do before do @old_view_paths = Cell::Rails.view_paths.clone end after do Cell::Rails.view_paths = @old_view_paths end it "provide .before" do Cells.setup do |c| c.append_view_path "/road/to/nowhere" end if Cell.rails3_2_or_more? or Cell.rails4_0_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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cells-3.9.0 | test/cells_module_test.rb |
cells-3.8.8 | test/cells_module_test.rb |
cells-3.8.7 | test/cells_module_test.rb |