Add Ruby version to specs info header

and use a local variable for the line display.

[skip ci]
This commit is contained in:
Jon Atack 2015-03-31 10:34:02 +05:30
parent a8136c2045
commit a29c5827a2
1 changed files with 5 additions and 4 deletions

View File

@ -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