Sha256: 9ae97d5b855c74f97a29db00304f2d2a957194eae21620ef91983fc7faffe916

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

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

include RubyOnAcid

describe ConstantFactory do
  
  
  before :each do
    @it = ConstantFactory.new
  end
  
  it_should_behave_like "a factory"
  

  it "always returns the same value" do
    @it.value = 0.1
    @it.get_unit(:x).should == 0.1
    @it.get_unit(:x).should == 0.1
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubyonacid-0.4.0 spec/factories/constant_spec.rb
rubyonacid-0.3.1 spec/factories/constant_spec.rb
rubyonacid-0.3.0 spec/factories/constant_spec.rb
rubyonacid-0.2.0 spec/factories/constant_spec.rb