Skip to content

Commit

Permalink
Enable RSpec tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thutterer committed Jul 18, 2022
1 parent 65c334b commit c0e3fa5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
bundle config path vendor/bundle
bundle update
bundle exec rake
bundle exec rake test spec
env:
RAISE_ON_WARNING: 1
MEASURE_COVERAGE: true
Expand Down
2 changes: 0 additions & 2 deletions lib/view_component/render_preview_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ module RenderPreviewHelper
def render_preview(name)
begin
preview_klass = if respond_to?(:described_class)
# :nocov:
if described_class.nil?
raise "`render_preview` expected a described_class, but it is nil."
end

"#{described_class}Preview"
# :nocov:
else
self.class.name.gsub("Test", "Preview")
end
Expand Down

0 comments on commit c0e3fa5

Please sign in to comment.