Sha256: 1848bea6b51d81311ef9e0db4219a337c0f64f02bffe339f616446d6454f6b5f

Contents?: true

Size: 515 Bytes

Versions: 34

Compression:

Stored size: 515 Bytes

Contents

1.describe('method call with an argument and a block') do

  let(:file_name) { 'method_call_with_an_argument_and_a_block.rb' }

  let(:call_element) { ripper.drop(1).first.last }

  it 'should detect argument and a block' do
    expect(method_call.method_name).to eq('fetch')
    expect(method_call.arguments.count).to eq(1)
    expect(method_call.arguments.first.type).to eq(:symbol_literal)
    expect(method_call.has_block?).to be
    expect(method_call.receiver).to be_a(Fasterer::VariableReference)
  end

end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
fasterer-0.2.0 spec/support/analyzer/98_misc.rb
fasterer-0.1.12 spec/support/analyzer/98_misc.rb
fasterer-0.1.11 spec/support/analyzer/98_misc.rb
fasterer-0.1.10 spec/support/analyzer/98_misc.rb
fasterer-0.1.9 spec/support/analyzer/98_misc.rb
fasterer-0.1.8 spec/support/analyzer/98_misc.rb
fasterer-0.1.7 spec/support/analyzer/98_misc.rb
fasterer-0.1.6 spec/support/analyzer/98_misc.rb
fasterer-0.1.5 spec/support/analyzer/98_misc.rb
fasterer-0.1.4 spec/support/analyzer/98_misc.rb
fasterer-0.1.3 spec/support/analyzer/98_misc.rb
fasterer-0.1.2 spec/support/analyzer/98_misc.rb
fasterer-0.1.1 spec/support/analyzer/98_misc.rb
fasterer-0.1.0 spec/support/analyzer/98_misc.rb