diff options
| author | Teddy Wing | 2017-11-14 16:38:52 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-11-14 16:38:52 +0100 |
| commit | 21c786e856a9cf3c211468edf12825b390da7b6a (patch) | |
| tree | 561fba5987241ba23eae8ea1acc850bc41123962 /spec/support/with_commit.rb | |
| parent | 0aa10eea8e8813b3578a3e471e933b3260ec5a54 (diff) | |
| download | chouette-core-21c786e856a9cf3c211468edf12825b390da7b6a.tar.bz2 | |
schema_spec: Use Ruby 2.2-compatible heredoc
Apparently the Jenkins server runs Ruby 2.2.0.
Sample log output:
/usr/bin/ruby2.2 -I/var/lib/jenkins/workspace/stif-boiv-branches/vendor/bundle-201746/ruby/2.2.0/gems/rspec-core-3.5.4/lib:/var/lib/jenkins/workspace/stif-boiv-branches/vendor/bundle-201746/ruby/2.2.0/gems/rspec-support-3.5.0/lib /var/lib/jenkins/workspace/stif-boiv-branches/vendor/bundle-201746/ruby/2.2.0/gems/rspec-core-3.5.4/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
WTF? I thought we were all using Ruby 2.3.
Here's the error:
/var/lib/jenkins/workspace/stif-boiv-branches/spec/db/schema_spec.rb:38: syntax error, unexpected << (SyntaxError)
<<~EOS
^
/var/lib/jenkins/workspace/stif-boiv-branches/spec/db/schema_spec.rb:40: syntax error, unexpected ':', expecting keyword_end
Diff: #{diff}
^
Convert the tilde-heredoc to a dash-heredoc to make Jenkins happy.
Refs #4951
Diffstat (limited to 'spec/support/with_commit.rb')
0 files changed, 0 insertions, 0 deletions
