Sha256: 43d02a29fd011817da5cf0a150d0045b3c8c7782597caace05d16c0e63ce9abe
Contents?: true
Size: 464 Bytes
Versions: 13
Compression:
Stored size: 464 Bytes
Contents
require 'spec_helper' describe FactoryGirl::Strategy::Create do it_should_behave_like "strategy with association support", FactoryGirl::Strategy::Create it_should_behave_like "strategy with callbacks", :after_build, :after_create it "runs a custom create block" do block_run = false block = lambda {|instance| block_run = true } subject.result(stub("assigner", :object => stub("result instance")), block) block_run.should be_true end end
Version data entries
13 entries across 13 versions & 3 rubygems