1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00

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

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