Sha256: 2a12c069856bf4f6d49daf8d5d211f44de43a7673a0c917b7bd03c302d500434

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 Bytes

Contents

require 'spec_helper'

describe Mutant::Random do
  describe '.string' do
    it 'returns a random string' do
      Mutant::Random.string.should be_a(String)
    end
  end

  describe '.symbol' do
    it 'returns a random symbol' do
      Mutant::Random.symbol.should be_a(Symbol)
    end
  end

  describe '.fixnum' do
    it 'returns a random fixnum' do
      Mutant::Random.fixnum.should be_a(Fixnum)
    end
  end

  describe '.float' do
    it 'returns a random float' do
      Mutant::Random.float.should be_a(Float)
    end
  end

  describe '.range' do
    it 'returns a random range' do
      Mutant::Random.range.should be_a(Range)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutant-0.1.1 spec/mutant/random_spec.rb
mutant-0.1.0 spec/mutant/random_spec.rb