Sha256: 88c560e0b5d238787b31bc5a978f167251a574ffcc2c54518e4924b76e4e522c
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe RuboCop::Cop::VariableForce do include AST::Sexp subject(:force) { described_class.new([]) } describe '#process_node' do before do force.variable_table.push_scope(s(:def)) end context 'when processing lvar node' do let(:node) { s(:lvar, :foo) } context 'when the variable is not yet declared' do it 'does not raise error' do expect { force.process_node(node) }.not_to raise_error end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems