Sha256: cb4a3540a0641fb632986382c71b75d3eeccb3f7ddc480cc811f0b0540ddf971
Contents?: true
Size: 372 Bytes
Versions: 11
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true RSpec.describe ObjectExtensions do context 'when refining Object' do using described_class describe '#integer?' do context 'with integers' do it { expect(rand(1..10).integer?).to eq(true) } end context 'with non integers' do it { expect(rand.integer?).to eq(false) } end end end end
Version data entries
11 entries across 11 versions & 1 rubygems