Sha256: eee2704e3b8652ea42d7de45cd20d091c8f222ede3b9fb07d1746477a4d51609
Contents?: true
Size: 471 Bytes
Versions: 31
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe CfnDsl do context '.method_names' do it 'returns an array of string method names when called without a block' do expect(described_class.method_names('foo')).to eq(%w[foo Foo]) end it 'yields symbol method names when called with a block' do results = [] described_class.method_names('foo') { |name| results << name } expect(results).to eq(%i[foo Foo]) end end end
Version data entries
31 entries across 31 versions & 1 rubygems