Sha256: dc55153df0871d8186b72a96ed4631fa5793a0495c8bd07edeee4afc5d12693c
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
require 'spec_helper' describe FactoryGirl::Attribute::Static do let(:name) { :first_name } let(:value) { "John" } let(:proxy) { stub("proxy") } subject { FactoryGirl::Attribute::Static.new(name, value, false) } its(:name) { should == name } it "returns the value when executing the proc" do subject.to_proc(proxy).call.should == value end end describe FactoryGirl::Attribute::Static, "with a string name" do subject { FactoryGirl::Attribute::Static.new("name", nil, false) } its(:name) { should == :name } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
factory_girl-2.3.2 | spec/factory_girl/attribute/static_spec.rb |