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