Sha256: c1f822ec0aa27c0ab7023cd3f5bc9f2c409f10264199921107cb36fcdaf4bd94
Contents?: true
Size: 344 Bytes
Versions: 133
Compression:
Stored size: 344 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/patches/object/call_if_proc' RSpec.describe ::Object do describe '#call_if_proc' do it { expect(nil.call_if_proc).to eq(nil) } it { expect('a string'.call_if_proc).to eq('a string') } it { expect(-> { 'a returned value' }.call_if_proc).to eq('a returned value') } end end
Version data entries
133 entries across 133 versions & 3 rubygems