Sha256: 098c30e88652572df69ed25328aea449dd135d46a1802a81a1f9b039556c6f46

Contents?: true

Size: 689 Bytes

Versions: 4

Compression:

Stored size: 689 Bytes

Contents

Synvert::Rewriter.new "rspec_new_syntax" do
  description <<-EOF
It converts rspec code to new syntax, it calls all convert_rspec_* snippets.
  EOF

  add_snippet "convert_rspec_should_to_expect"
  add_snippet "convert_rspec_block_to_expect"
  add_snippet "convert_rspec_one_liner_expectation"
  add_snippet "convert_rspec_boolean_matcher"
  add_snippet "convert_rspec_be_close_to_be_within"
  add_snippet "convert_rspec_collection_matcher"
  add_snippet "convert_rspec_negative_error_expectation"
  add_snippet "convert_rspec_its_to_it"

  add_snippet "convert_rspec_stub_and_mock_to_double"
  add_snippet "convert_rspec_message_expectation"
  add_snippet "convert_rspec_method_stub"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
synvert-0.0.17 lib/synvert/snippets/rspec/new_syntax.rb
synvert-0.0.16 lib/synvert/snippets/rspec/new_syntax.rb
synvert-0.0.15 lib/synvert/snippets/rspec/new_syntax.rb
synvert-0.0.14 lib/synvert/snippets/rspec/new_syntax.rb