Sha256: 62a7ffcc236df56f8f1159215b47150a473a7470ee618d1089722b58d7986029
Contents?: true
Size: 869 Bytes
Versions: 2
Compression:
Stored size: 869 Bytes
Contents
require "spec_helper" describe HighVoltage::PageCollector do it "produces an array of all page_ids under pages/" do expect(HighVoltage.page_ids).to eq [ "also_dir/also_nested", "also_exists", "also_exists_but_references_nonexistent_partial", "dir/nested", "exists", "exists_but_references_nonexistent_partial", "rot13" ] end it "produces an array of all page_ids under other_pages/" do with_content_path("other_pages/") do expect(HighVoltage.page_ids).to eq [ "also_dir/also_nested", "also_exists", "also_exists_but_references_nonexistent_partial", ] end end private def with_content_path(path) original_content_path = HighVoltage.content_path HighVoltage.content_path = path yield HighVoltage.content_path = original_content_path end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
high_voltage-3.0.0 | spec/high_voltage/page_collector_spec.rb |
high_voltage-2.4.0 | spec/high_voltage/page_collector_spec.rb |