-
-
Notifications
You must be signed in to change notification settings - Fork 109
Fix support for ruby file: …
Gemfile syntax
#219
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
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 |
---|---|---|
|
@@ -149,4 +149,33 @@ | |
gemspec :path => "../sitepress" | ||
Gemfile | ||
end | ||
|
||
it 'supports ruby file: ".ruby-version" DSL' do | ||
build_gemfile <<-Gemfile | ||
source 'https://rubygems.org' | ||
|
||
ruby RUBY_VERSION | ||
|
||
gem 'appraisal', :path => #{PROJECT_ROOT.inspect} | ||
Gemfile | ||
|
||
build_appraisal_file <<-Appraisals | ||
appraise 'ruby-version' do | ||
ruby file: ".ruby-version" | ||
end | ||
Appraisals | ||
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. Naming/HeredocDelimiterCase: Use uppercase heredoc delimiters. |
||
|
||
run 'bundle install --local' | ||
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. Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. |
||
run 'appraisal generate' | ||
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. Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. |
||
|
||
expect(content_of 'gemfiles/ruby_version.gemfile').to eq <<-Gemfile.strip_heredoc | ||
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. Style/NestedParenthesizedCalls: Add parentheses to nested method call content_of 'gemfiles/ruby_version.gemfile'. |
||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
ruby({:file=>".ruby-version"}) | ||
|
||
gem "appraisal", :path => #{PROJECT_ROOT.inspect} | ||
Gemfile | ||
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. Naming/HeredocDelimiterCase: Use uppercase heredoc delimiters. |
||
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.
Naming/HeredocDelimiterCase: Use uppercase heredoc delimiters.