lib/lookbook/preview.rb in lookbook-0.5.1 vs lib/lookbook/preview.rb in lookbook-0.5.2
- old
+ new
@@ -42,10 +42,10 @@
end
# Examples::FooBarComponentPreview -> "Examples::FooBar"
# Examples::FooBarComponent::Preview -> "Examples::FooBar"
def lookbook_name
- name.chomp("ComponentPreview").chomp("Component::Preview").chomp("::")
+ name.chomp("ComponentPreview").chomp("Component::Preview").chomp("::Preview").chomp("::")
end
# Examples::FooBarComponentPreview -> "examples/foo_bar"
# Examples::FooBarComponent::Preview -> "examples/foo_bar"
def lookbook_path