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/db | |
| 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/db')
| -rw-r--r-- | spec/db/schema_spec.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/spec/db/schema_spec.rb b/spec/db/schema_spec.rb index 92c553205..b06e27bc7 100644 --- a/spec/db/schema_spec.rb +++ b/spec/db/schema_spec.rb @@ -35,9 +35,9 @@ RSpec::Matchers.define :use_bigint_keys do    end    failure_message do |filename| -    <<~EOS -      expected #{filename.inspect} to use bigint keys -      Diff: #{diff} +    <<-EOS +expected #{filename.inspect} to use bigint keys +Diff: #{diff}      EOS    end | 
