Sha256: c77cfe040a5f06bdef6aef017edc31f57d06438ca55ff270d573be26b25781ff

Contents?: true

Size: 471 Bytes

Versions: 13

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'

describe FactoryGirl do
  let(:factory) { FactoryGirl::Factory.new(:object) }
  let(:sequence) { FactoryGirl::Sequence.new(:email) }

  it "finds a registered a factory" do
    FactoryGirl.register_factory(factory)
    FactoryGirl.factory_by_name(factory.name).should == factory
  end

  it "finds a registered a sequence" do
    FactoryGirl.register_sequence(sequence)
    FactoryGirl.sequence_by_name(sequence.name).should == sequence
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
factory_girl-2.0.4 spec/factory_girl_spec.rb
factory_girl-2.0.3 spec/factory_girl_spec.rb
factory_girl-2.0.2 spec/factory_girl_spec.rb
factory_girl-2.0.1 spec/factory_girl_spec.rb
factory_girl-2.0.0.rc4 spec/factory_girl_spec.rb
factory_girl-2.0.0.rc3 spec/factory_girl_spec.rb
factory_girl-2.0.0.rc2 spec/factory_girl_spec.rb
factory_girl-2.0.0.rc1 spec/factory_girl_spec.rb
factory_girl-2.0.0.beta5 spec/factory_girl_spec.rb
factory_girl-2.0.0.beta4 spec/factory_girl_spec.rb
factory_girl-2.0.0.beta3 spec/factory_girl_spec.rb
factory_girl_kibiz0r-2.0.0.beta3 spec/factory_girl_spec.rb
factory_girl_kibiz0r-2.0.0.beta2 spec/factory_girl_spec.rb