Unified · Split
| @@ -14,6 +14,7 @@ module Docs · 13 unmodified lines | |||
| 14 | autoload_all "docs/filters/#{to_s.demodulize.underscore}", 'filter' | 14 | autoload_all "docs/filters/#{to_s.demodulize.underscore}", 'filter' |
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | subclass.root_path = root_path | ||
| 17 | subclass.options = options.deep_dup | 18 | subclass.options = options.deep_dup |
| 18 | subclass.html_filters = html_filters.inheritable_copy | 19 | subclass.html_filters = html_filters.inheritable_copy |
| 19 | subclass.text_filters = text_filters.inheritable_copy | 20 | subclass.text_filters = text_filters.inheritable_copy |
| @@ -33,6 +33,10 @@ class DocsScraperTest < MiniTest::Spec · 32 unmodified lines | |||
| 33 | assert_equal Scraper.type, subclass.type | 33 | assert_equal Scraper.type, subclass.type |
| 34 | end | 34 | end |
| 35 | 35 | ||
| 36 | it "sets .root_path" do | ||
| 37 | assert_equal Scraper.root_path, subclass.root_path | ||
| 38 | end | ||
| 39 | |||
| 36 | it "duplicates .options" do | 40 | it "duplicates .options" do |
| 37 | stub(Scraper).options { { test: [] } } | 41 | stub(Scraper).options { { test: [] } } |
| 38 | assert_equal Scraper.options, subclass.options | 42 | assert_equal Scraper.options, subclass.options |