Permalink
Switch branches/tags
Nothing to show
Commits on Feb 18, 2009
  1. Added rakefile and gemspec

    jnicklas committed Feb 18, 2009
Commits on Feb 9, 2009
  1. Changed make -> make! and make_unsaved -> make

    jnicklas committed Feb 9, 2009
    This better conforms with Ruby conventions, and
    makes specs a little easier to write.
Commits on Feb 6, 2009
Commits on Feb 5, 2009
  1. Added documentation on the plan method, and using it for Rails contro…

    notahat committed Feb 5, 2009
    …ller tests. Also updated the documentation to cover T.J. Sheehy's patch that introspects on associations to find the class when creating associated objects.
  2. Added support for calling make and plan on ActiveRecord associations.

    notahat committed Feb 4, 2009
    No documentation yet.
  3. Converted specs to use real ActiveRecord objects and a sqlite databas…

    notahat committed Feb 4, 2009
    …e, and picked up a couple of bugs in the tests along the way.
Commits on Feb 4, 2009
  1. Added the plan method, that parallels make but, rather than saving th…

    notahat committed Feb 4, 2009
    …e object, returns a hash of its attributes. This is great for use in controller tests.
    
    No documentation yet.
Commits on Jan 10, 2009
  1. Added code to support the :class_name attribute on object associations.

    tjsheehy committed Jan 10, 2009
    class Comment < ActiveRecord::Base
      belongs_to :author, :class_name => "Person"
    end
    
    Previously, machinist would assume that the class name of :author is "Author".
    So the blueprint had to explicitly make a "Person":
    
    Comment.blueprint do
      author { Person.make }
    end
    
    This change looks at the associated object's class_name so that we can say:
    
    Comment.blueprint do
      author
    end
Commits on Dec 30, 2008
Commits on Dec 29, 2008
  1. Gem version 0.1.7

    notahat committed Dec 29, 2008
Commits on Dec 26, 2008
Commits on Dec 23, 2008
  1. Sham.define allows defining a bunch of shams at once, e.g.

    ianwhite committed Dec 23, 2008
    Sham.define do
      name      { Faker::Name.first_name }
      star_sign { %w(Messiah Aquarius).rand }
    end
Commits on Dec 20, 2008
  1. make now supports overriding protected attributes.

    notahat committed Dec 20, 2008
    (This used to work, but got broken in a code cleanup. There's now a spec.)
    
    Gem version is now 0.1.6.
Commits on Dec 17, 2008
  1. Update gem version to 0.1.5.

    notahat committed Dec 17, 2008
  2. Allow id and type attributes in blueprints. (Thanks to Jon Guymon and…

    notahat committed Dec 17, 2008
    … Roland Swingler for pointing out the need for this, and providing equivalent patches.)
Commits on Dec 16, 2008
  1. Added a "Gotchas" section to the readme highlighting possible problem…

    Gareth Townsend committed Dec 16, 2008
    … attributes in blueprints and how to work around them.
Commits on Dec 14, 2008
  1. Rewrote the specs.

    notahat committed Dec 14, 2008
    I was using the same couple of blueprints for all the specs, and they were starting to smell a lot like fixtures. That was somewhere between ironic and hypocritical, so now each spec defines its own blueprint.
  2. Cleaned up perryn's patch to allow strings as keys to make, which hel…

    notahat committed Dec 14, 2008
    …ps machinist play nicely with Cucumber's FIT tables.
    
    Gem version is now 0.1.4.
  3. Added specs for accessing the object under construction and its attri…

    notahat committed Dec 14, 2008
    …butes from within a blueprint.
Commits on Dec 13, 2008
  1. allow string keys in parameters

    perryn committed Dec 13, 2008
  2. allow strings as keys

    perryn committed Dec 13, 2008
Commits on Dec 11, 2008
Commits on Dec 2, 2008
Commits on Dec 1, 2008
  1. Merge branch 'master' of git://github.com/elight/machinist into eligh…

    notahat committed Dec 1, 2008
    …t/master
    
    Brought in elight's fixes to make machinist work as a gem, and made them play nicely with my gemspec generation stuff.
Commits on Nov 30, 2008