Commit 03fa53b54132e81b05ecf3b268486ade41530707
1 parent
0604e1da
Exists in
colab
and in
4 other branches
Added FactoryGirl for easy fixtures creation
Showing
2 changed files
with
7 additions
and
0 deletions
Show diff stats
Gemfile
| @@ -24,6 +24,7 @@ gem 'jquery-rails' | @@ -24,6 +24,7 @@ gem 'jquery-rails' | ||
| 24 | 24 | ||
| 25 | group :development, :test do | 25 | group :development, :test do |
| 26 | gem 'rspec-rails' | 26 | gem 'rspec-rails' |
| 27 | + gem 'factory_girl_rails' | ||
| 27 | end | 28 | end |
| 28 | 29 | ||
| 29 | # To use ActiveModel has_secure_password | 30 | # To use ActiveModel has_secure_password |
Gemfile.lock
| @@ -41,6 +41,11 @@ GEM | @@ -41,6 +41,11 @@ GEM | ||
| 41 | erubis (2.7.0) | 41 | erubis (2.7.0) |
| 42 | execjs (1.4.0) | 42 | execjs (1.4.0) |
| 43 | multi_json (~> 1.0) | 43 | multi_json (~> 1.0) |
| 44 | + factory_girl (4.2.0) | ||
| 45 | + activesupport (>= 3.0.0) | ||
| 46 | + factory_girl_rails (4.2.1) | ||
| 47 | + factory_girl (~> 4.2.0) | ||
| 48 | + railties (>= 3.0.0) | ||
| 44 | hike (1.2.2) | 49 | hike (1.2.2) |
| 45 | i18n (0.6.1) | 50 | i18n (0.6.1) |
| 46 | journey (1.0.4) | 51 | journey (1.0.4) |
| @@ -122,6 +127,7 @@ PLATFORMS | @@ -122,6 +127,7 @@ PLATFORMS | ||
| 122 | 127 | ||
| 123 | DEPENDENCIES | 128 | DEPENDENCIES |
| 124 | coffee-rails (~> 3.2.1) | 129 | coffee-rails (~> 3.2.1) |
| 130 | + factory_girl_rails | ||
| 125 | jquery-rails | 131 | jquery-rails |
| 126 | rails (= 3.2.13) | 132 | rails (= 3.2.13) |
| 127 | rspec-rails | 133 | rspec-rails |