Sha256: 266432823c33ca23e10a1b39d606f8609b57dc3ef5c744b57f7c9b705e00cf41

Contents?: true

Size: 276 Bytes

Versions: 16

Compression:

Stored size: 276 Bytes

Contents

module FactoryGirl
  class Attribute

    class Sequence < Attribute
      def initialize(name, sequence)
        super(name)
        @sequence = sequence
      end

      def add_to(proxy)
        proxy.set(name, FactoryGirl.generate(@sequence))
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
factory_girl-2.1.2 lib/factory_girl/attribute/sequence.rb
factory_girl-2.1.0 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.5 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.4 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.3 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.2 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.1 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.0.rc4 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.0.rc3 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.0.rc2 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.0.rc1 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.0.beta5 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.0.beta4 lib/factory_girl/attribute/sequence.rb
factory_girl-2.0.0.beta3 lib/factory_girl/attribute/sequence.rb
factory_girl_kibiz0r-2.0.0.beta3 lib/factory_girl/attribute/sequence.rb
factory_girl_kibiz0r-2.0.0.beta2 lib/factory_girl/attribute/sequence.rb