Sha256: 908180f22d84a80ac3f8b1f96f070f4fe9b31adf647d67731b0e8aee76631a0b
Contents?: true
Size: 976 Bytes
Versions: 2
Compression:
Stored size: 976 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 match_array [ "about", "also_dir/also_nested", "also_exists", "also_exists_but_references_nonexistent_partial", "current_page_helper", "dir/nested", "exists", "exists_but_references_nonexistent_partial", "rot13", "exists_without_html_extension", "text", ] 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.1.1 | spec/high_voltage/page_collector_spec.rb |
high_voltage-3.1.0 | spec/high_voltage/page_collector_spec.rb |