Sha256: b3f2b8865e3ad588a22910779e655e585cdd75d0ad9513c099f2822c4ab5fe88
Contents?: true
Size: 678 Bytes
Versions: 23
Compression:
Stored size: 678 Bytes
Contents
require 'spec_helper' describe FactoryGirl::Declaration::Implicit do let(:name) { :author } let(:proxy) { stub("proxy") } 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
23 entries across 23 versions & 2 rubygems