Sha256: a51685e11b6f02c920576a6172f77df59a87609f37a64582d1f000a0ec292360

Contents?: true

Size: 306 Bytes

Versions: 24

Compression:

Stored size: 306 Bytes

Contents

RSpec.describe "EitilCore Kernel#args_to_h!" do

  it "should create an hash, with the local variables as key / value pairs" do

    a = 1
    b = "two"
    c = :three

    created_hash  = args_to_h! :a, :c
    expected_hash = {a: 1, c: :three}    

    expect(created_hash).to eq expected_hash

  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
eitil-2.0.8 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-2.0.7 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-2.0.6 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-2.0.5 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-2.0.4 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-2.0.3 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-2.0.2 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-2.0.1 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-2.0.0 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.4.1 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.4.0 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.3.12 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.3.11 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.3.10 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.3.9 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.3.8 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.3.7 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.3.6 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.3.5 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb
eitil-1.3.4 spec/eitil_core/argument_helpers/args_to_h_bang_spec.rb