lib/synvert/snippets/rspec/boolean_matcher.rb in synvert-0.0.13 vs lib/synvert/snippets/rspec/boolean_matcher.rb in synvert-0.0.14
- old
+ new
@@ -1,5 +1,12 @@
-Synvert::Rewriter.new "convert_rspec_boolean_matcher", "RSpec converts boolean matcher" do
+Synvert::Rewriter.new "convert_rspec_boolean_matcher" do
+ description <<-EOF
+It converts rspec boolean matcher.
+
+ be_true => be_truthy
+ be_false => be_falsey
+ EOF
+
if_gem 'rspec', {gte: '2.99.0'}
within_files 'spec/**/*_spec.rb' do
# be_true => be_truthy
# be_false => be_falsey