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.11.0 spec/support/analyzer/98_misc.rb
fasterer-0.10.1 spec/support/analyzer/98_misc.rb
fasterer-0.10.0 spec/support/analyzer/98_misc.rb
fasterer-0.9.0 spec/support/analyzer/98_misc.rb
fasterer-0.8.3 spec/support/analyzer/98_misc.rb
fasterer-0.8.2 spec/support/analyzer/98_misc.rb
fasterer-0.8.1 spec/support/analyzer/98_misc.rb
fasterer-0.8.0 spec/support/analyzer/98_misc.rb
fasterer-0.7.1 spec/support/analyzer/98_misc.rb
fasterer-0.7.0 spec/support/analyzer/98_misc.rb
fasterer-0.6.0 spec/support/analyzer/98_misc.rb
fasterer-0.5.1 spec/support/analyzer/98_misc.rb
fasterer-0.5.0 spec/support/analyzer/98_misc.rb
fasterer-0.4.2 spec/support/analyzer/98_misc.rb
fasterer-0.4.1 spec/support/analyzer/98_misc.rb
fasterer-0.4.0 spec/support/analyzer/98_misc.rb
fasterer-0.3.2 spec/support/analyzer/98_misc.rb
fasterer-0.3.1 spec/support/analyzer/98_misc.rb
fasterer-0.3.0 spec/support/analyzer/98_misc.rb
fasterer-0.2.1 spec/support/analyzer/98_misc.rb