Skip to content

Commit 4786936

Browse files
committed
remove configure parser for collection snippets
1 parent cefd7f8 commit 4786936

File tree

5 files changed

+0
-10
lines changed

5 files changed

+0
-10
lines changed

lib/factory_girl/use_2_0_new_syntax.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

33
Synvert::Rewriter.new 'factory_girl', 'use_2_0_new_syntax' do
4-
configure(parser: Synvert::PARSER_PARSER)
5-
64
description 'It uses factory_girl new syntax.'
75

86
add_snippet 'factory_girl', 'use_short_syntax'

lib/minitest/better_syntax.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

33
Synvert::Rewriter.new 'minitest', 'better_syntax' do
4-
configure(parser: Synvert::PARSER_PARSER)
5-
64
description 'It converts rspec code to better syntax, it calls all minitest sub snippets.'
75

86
add_snippet 'minitest', 'assert_empty'

lib/rspec/use_new_syntax.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

33
Synvert::Rewriter.new 'rspec', 'use_new_syntax' do
4-
configure(parser: Synvert::PARSER_PARSER)
5-
64
description 'It converts rspec code to new syntax, it calls all rspec sub snippets.'
75

86
add_snippet 'rspec', 'be_close_to_be_within'

lib/ruby/fast_syntax.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

33
Synvert::Rewriter.new 'ruby', 'fast_syntax' do
4-
configure(parser: Synvert::PARSER_PARSER)
5-
64
description <<~EOS
75
Use ruby fast syntax.
86

lib/shoulda/use_new_syntax.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

33
Synvert::Rewriter.new 'shoulda', 'use_new_syntax' do
4-
configure(parser: Synvert::PARSER_PARSER)
5-
64
description 'It uses shoulda new syntax and fix deprecations.'
75

86
add_snippet 'shoulda', 'use_matcher_syntax'

0 commit comments

Comments
 (0)