Sha256: d2ebe513a5ba1bc55a1deb81c8ff720f772732ae70575d360e36086667592f10
Contents?: true
Size: 640 Bytes
Versions: 214
Compression:
Stored size: 640 Bytes
Contents
require 'spec_helper' describe FactoryGirl::Declaration::Implicit do let(:name) { :author } let(:declaration) { FactoryGirl::Declaration::Implicit.new(name) } subject { declaration.to_attributes.first } context "with a known factory" do before do FactoryGirl.factories.stubs(:registered? => true) end it { should be_association } its(:factory) { should == name } end context "with a known sequence" do before do FactoryGirl.sequences.stubs(:registered? => true) end it { should_not be_association } it { should be_a(FactoryGirl::Attribute::Sequence) } end end
Version data entries
214 entries across 101 versions & 8 rubygems