Sha256: 3678a09a7e86b41b5a439eb82b39abbd8d55b3b816b6e545e52b75c74960f04b

Contents?: true

Size: 339 Bytes

Versions: 6

Compression:

Stored size: 339 Bytes

Contents

module Hermes::Builders
  @@sequence = 0
  build :user, :like => :the_user do
    {:name => "The Super User", :counter => (@@sequence += 1) }
  end

  build :another_user, :class => User do
    {:name => 'Another user', :active_at => Time.parse("Thu, 03 Mar 2011 18:11:26 UTC +00:00") }
  end

  build :blockless_user, :class => User
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hermes-0.6.0 test/builders.rb
hermes-0.5.1 test/builders.rb
hermes-0.5.0 test/builders.rb
hermes-0.4.1 test/builders.rb
hermes-0.4.0 test/builders.rb
hermes-0.3.0 test/builders.rb