paul / progress_bar

A Ruby terminal progress_bar
Do What The F*ck You Want To Public License
623 stars 49 forks source link

Convert specs to RSpec 3.1.4 syntax with Transpec #25

Closed deivid-rodriguez closed 9 years ago

deivid-rodriguez commented 10 years ago

This conversion is done by Transpec 2.3.7 with the following command: transpec

For more details: https://github.com/yujinakayama/transpec#supported-conversions

deivid-rodriguez commented 10 years ago

Hi @paul, I forked the gem to have a look at the source and I noticed several warnings about "using rspec 3 with the old should syntax and not specifying a preferred syntax". So I run transpec to automatically migrate the specs to the new syntax and remove the warning. Transpec automatically adds a commit message for you that's why it looked like a bot... Sorry, I should have explained myself... :S

In any case, if you like the old syntax you can keep it and remove the warnings by specifying your preferred syntax in the spec_helper file. Something like this will do:

config.expect_with :rspec do |expectations|
  expectations.syntax = :should
end
deivid-rodriguez commented 10 years ago

@paul ping