-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use appraisal
gem in CI
#1308
Use appraisal
gem in CI
#1308
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "capybara", "~> 3" | ||
gem "rails", "~> 5.2.0" | ||
gem "rspec-rails", "~> 5" | ||
|
||
group :test do | ||
gem "cuprite", "~> 0.8" | ||
gem "puma", "~> 5" | ||
gem "selenium-webdriver", "~> 4" | ||
end | ||
|
||
group :development, :test do | ||
gem "appraisal", github: "thoughtbot/appraisal" | ||
end | ||
|
||
gemspec path: "../" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "capybara", "~> 3" | ||
gem "rails", "~> 6.0.0" | ||
gem "rspec-rails", "~> 5" | ||
gem "tailwindcss-rails", "~> 2.0" | ||
|
||
group :test do | ||
gem "cuprite", "~> 0.8" | ||
gem "puma", "~> 5" | ||
gem "selenium-webdriver", "~> 4" | ||
end | ||
|
||
group :development, :test do | ||
gem "appraisal", github: "thoughtbot/appraisal" | ||
end | ||
|
||
gemspec path: "../" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,15 +255,18 @@ def __vc_test_helpers_build_controller(klass) | |
|
||
def __vc_test_helpers_preview_class | ||
result = if respond_to?(:described_class) | ||
# :nocov: | ||
raise "`render_preview` expected a described_class, but it is nil." if described_class.nil? | ||
|
||
"#{described_class}Preview" | ||
# :nocov: | ||
else | ||
self.class.name.gsub("Test", "Preview") | ||
end | ||
result = result.constantize | ||
rescue NameError | ||
raise NameError, "`render_preview` expected to find #{result}, but it does not exist." | ||
end | ||
# :nocov: | ||
Comment on lines
+258
to
+270
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why were these changes necessary? I'd really prefer to avoid adding these comments. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll try dropping them, but runs were failing due to coverage errors. I think this was the cause, though I'm not sure if anything in this PR in particular would've triggered it. |
||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎