Sha256: df1fec2f7cda7b45c25ed4338524d762ecb624620162c0e72706ad7b1d0e6185
Contents?: true
Size: 515 Bytes
Versions: 4
Compression:
Stored size: 515 Bytes
Contents
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 {be_true: 'be_truthy', be_false: 'be_falsey'}.each do |old_matcher, new_matcher| with_node type: 'send', receiver: nil, message: old_matcher do replace_with new_matcher end end end end
Version data entries
4 entries across 4 versions & 1 rubygems