Sha256: 04f6836c4d0cf733c6f849af5a9d0ff35310a9bbf1bce41bd17c8b32060a937e

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe DirtySeed::Assigners::Type::Boolean do
  let(:attribute) { build_attribute(:boolean) }

  describe '#value' do
    it 'returns a Boolean' do
      10.times { expect(described_class.new(attribute).value).to be_in([true, false]) }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dirty_seed-0.2.1 spec/lib/dirty_seed/assigners/type/boolean_spec.rb
dirty_seed-0.2.0 spec/lib/dirty_seed/assigners/type/boolean_spec.rb