Sha256: 9c592106d1b159e34f37ff7d9b1a29f51df64b46008aafbc754c9728a6f2c120
Contents?: true
Size: 427 Bytes
Versions: 6
Compression:
Stored size: 427 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
6 entries across 6 versions & 1 rubygems