Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

version 0.0.6. removed factory_girl dependency in gemspec and require

  • Loading branch information...
commit 7843fd23de9abccd7708a73b171ddf55377b73f6 1 parent 83dd630
@garysweaver authored
View
22 README.md
@@ -1,7 +1,21 @@
Stepford
=====
-Stepford is a CLI to create starter [Factory Girl][factory_girl] factories for all of your Rails models.
+Stepford is a CLI to create starter [Factory Girl][factory_girl] factories for all of your Rails models, e.g.
+
+ require 'factory_girl_rails'
+
+ FactoryGirl.define do
+
+ factory :item do
+ association :created_by, factory: :user
+ created_at { 2.weeks.ago }
+ name 'Test Name'
+ price 1.23
+ updated_at { 2.weeks.ago }
+ end
+
+ end
### Setup
@@ -9,6 +23,10 @@ In your Rails 3+ project, add this to your Gemfile:
gem 'stepford'
+If you don't already have it, add this also:
+
+ gem 'factory_girl_rails'
+
Then run:
bundle install
@@ -41,6 +59,8 @@ If you have duplicate factory definitions during Rails load, it may complain. Ju
Uses the Ruby 1.9 hash syntax in generated factories. If you don't have 1.9, it might not fail during generation, but it may later when loading the factories.
+If you are using STI, you'll need to manually fix the value that goes into the `type` attribute, or remove it.
+
### License
Copyright (c) 2012 Gary S. Weaver, released under the [MIT license][lic].
View
1  lib/stepford/factory_girl.rb
@@ -1,4 +1,3 @@
-require 'factory_girl'
require 'stepford/common'
module Stepford
View
2  lib/stepford/version.rb
@@ -1,3 +1,3 @@
module Stepford
- VERSION = '0.0.5'
+ VERSION = '0.0.6'
end
View
1  stepford.gemspec
@@ -14,7 +14,6 @@ Gem::Specification.new do |s|
s.license = 'MIT'
s.add_dependency 'thor'
s.add_runtime_dependency 'rails'
- s.add_runtime_dependency 'factory_girl'
s.executables = %w(stepford)
s.require_paths = ["lib"]
end
Please sign in to comment.
Something went wrong with that request. Please try again.