Sha256: 3dd46a354d1436c1318d7147a2c754f1a845ac0a96ec272bf5f33c8b7747a535
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'spec_helper') require "shared_factory_specs" require 'rubyonacid/factories/constant' include RubyOnAcid describe ConstantFactory do MARGIN = 0.01 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubyonacid-0.1.2 | spec/generators/constant_spec.rb |
rubyonacid-0.1.1 | spec/generators/constant_spec.rb |
rubyonacid-0.1.0 | spec/generators/constant_spec.rb |