Sha256: 95babd8672572d7fb4602f1a4c1e1f3580e6447c8b7dcbea7cfae8c050558ee7

Contents?: true

Size: 443 Bytes

Versions: 7

Compression:

Stored size: 443 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require "shared_factory_specs"
require "rubyonacid/factories/random"

include RubyOnAcid

describe RandomFactory do
  
  before :each do
    @it = RandomFactory.new
  end
  
  it_should_behave_like "a factory"
  
  it "generates random numbers between 0 and 1" do
    @it.get_unit(:x).should_not == @it.get_unit(:x)
    @it.get_unit(:x).should_not == @it.get_unit(:x)
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubyonacid-0.4.0 spec/factories/random_spec.rb
rubyonacid-0.3.1 spec/factories/random_spec.rb
rubyonacid-0.3.0 spec/factories/random_spec.rb
rubyonacid-0.2.0 spec/factories/random_spec.rb
rubyonacid-0.1.2 spec/generators/random_spec.rb
rubyonacid-0.1.1 spec/generators/random_spec.rb
rubyonacid-0.1.0 spec/generators/random_spec.rb