From a29c5827a2701d198bff3bd0e055cf0a7d91fd9b Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Tue, 31 Mar 2015 10:34:02 +0530 Subject: [PATCH] Add Ruby version to specs info header and use a local variable for the line display. [skip ci] --- spec/spec_helper.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5aeeb2f..e5642df 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -28,10 +28,11 @@ RSpec.configure do |config| config.alias_it_should_behave_like_to :it_has_behavior, 'has behavior' config.before(:suite) do - connection_name = ActiveRecord::Base.connection.adapter_name - message = "Running specs against #{connection_name}, Active Record #{ - ActiveRecord::VERSION::STRING} and Arel #{Arel::VERSION}..." - puts '=' * message.length, message, '=' * message.length + message = "Running specs with #{ActiveRecord::Base.connection.adapter_name + }, Active Record #{::ActiveRecord::VERSION::STRING}, Arel #{Arel::VERSION + } and Ruby #{RUBY_VERSION}" + line = '=' * message.length + puts line, message, line Schema.create end