Sha256: 81b06e497da2811e685e28587a04891ed76527451aef4be6d2c0903fcb299693
Contents?: true
Size: 414 Bytes
Versions: 79
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' module Synvert::Core describe Rewriter::Action do subject { source = "before_save do\n return false\nend" block_node = Parser::CurrentRuby.parse(source).body.first instance = double(current_node: block_node) Rewriter::Action.new(instance, source) } it 'gets line' do expect(subject.line).to eq 2 end end end
Version data entries
79 entries across 79 versions & 1 rubygems