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:
parent
a8136c2045
commit
a29c5827a2
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue