Skip to content

Commit

Permalink
Fix #169 write_stories_json tries too write non stories files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonspalmer committed May 27, 2023
1 parent 78708fc commit 93dba92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Other environments, such as production, require equivalent configuration.

## Stories Path

Story classes live in `test/components/stories`, which can be configured using the `stories_path` setting. For example to use RSpec set the following configuration:
Story classes live in `test/components/stories`, which can be configured using the `stories_paths` setting. For example to use RSpec set the following configuration:

```ruby
# config/application.rb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def load(code_objects)

def self.stories_from_code_object(code_object)
klass = code_object.path.constantize
return unless stories_class?(klass)

klass.code_object = code_object
klass
end
Expand Down

0 comments on commit 93dba92

Please sign in to comment.