Sha256: 26c022cb338e29c29b34621283721e0a90a43427ae32dbd78f3e42a913ebc4b0
Contents?: true
Size: 426 Bytes
Versions: 42
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true RSpec.describe ObjectExtensions do context 'when refining Object' do using ObjectExtensions describe '#integer?' do context 'for integers' do subject { 1 + rand(10) } it { expect(subject.integer?).to eq(true) } end context 'for non integers' do subject { rand } it { expect(subject.integer?).to eq(false) } end end end end
Version data entries
42 entries across 42 versions & 2 rubygems