Class: ReadmeSpec::Configure
- Inherits:
-
Object
- Object
- ReadmeSpec::Configure
show all
- Defined in:
- lib/readme_spec.rb
Defined Under Namespace
Classes: ReadmeSpecMissingFilePathError
Instance Method Summary
collapse
Instance Method Details
#file_path ⇒ Object
38
39
40
|
# File 'lib/readme_spec.rb', line 38
def file_path
RSpec.configuration.readme_file_path
end
|
#load_path ⇒ Object
27
28
29
30
|
# File 'lib/readme_spec.rb', line 27
def load_path
validate
file_path
end
|
#validate ⇒ Object
32
33
34
35
36
|
# File 'lib/readme_spec.rb', line 32
def validate
unless RSpec.configuration.readme_file_path?
raise ReadmeSpecMissingFilePathError
end
end
|