Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A rewrite of fixjour.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 bench
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README
Octocat-spinner-32 fixjour-2.gemspec
# fixjour 2 (to be renamed)

A rewrite I don't need to write.

The builder definitions are more like factory girl now.

## Usage

    require 'fixjour'
    Fixjour do
      define User do |user| = "Pat"
      define Article do |article|
        article.user = new_user
        article.title = "This is a good one"

The methods generated are the same old Fixjour methods:

    include Fixjour
    new_user(:name => "Pat")
    create_user(:name => "Pat")

That's it for now.

## What's New

I ripped out a bunch of stuff. Here are some things I don't need:

### Overrides and `process`

The overrides hash in Fixjour was confusing to pretty much everybody I explained
it to, so it's gone now. PEACE.

### valid_*_attributes

This was useful for controller tests. Controller tests are no longer useful
though. I like acceptance tests now. Hopefully you do too.

### attr_protected attributes

They just work now. Don't worry about it.

### Fixjour.verify!

It's gone now. Write tests for your builders and you're good to go.

(c) Copyright 2011 Pat Nakajima. All Rights Reserved. 
Something went wrong with that request. Please try again.