Sha256: f0d90aa2875730e2fa902cfbeaa0a9711ae36b5a45f5ca1f64dc604b7bc02038
Contents?: true
Size: 314 Bytes
Versions: 24
Compression:
Stored size: 314 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(binding, :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