Commit 329fcaa196888272f4f293ef0f826cadd258bb21
1 parent
2f880ac0
Exists in
master
and in
1 other branch
Revert "update fabrication gem"
This reverts commit 2f880ac002528cdf86bdc300d80f9c04155be8a7.
Showing
8 changed files
with
14 additions
and
13 deletions
Show diff stats
Gemfile
@@ -28,7 +28,7 @@ gem 'hoptoad_notifier', "~> 2.4" | @@ -28,7 +28,7 @@ gem 'hoptoad_notifier', "~> 2.4" | ||
28 | gem 'actionmailer_inline_css', "~> 1.3.0" | 28 | gem 'actionmailer_inline_css', "~> 1.3.0" |
29 | gem 'kaminari' | 29 | gem 'kaminari' |
30 | gem 'rack-ssl-enforcer' | 30 | gem 'rack-ssl-enforcer' |
31 | -gem 'fabrication', "~> 2.0" # Both for tests, and loading demo data | 31 | +gem 'fabrication', "~> 1.3.0" # Both for tests, and loading demo data |
32 | gem 'rails_autolink', '~> 1.0.9' | 32 | gem 'rails_autolink', '~> 1.0.9' |
33 | 33 | ||
34 | platform :ruby do | 34 | platform :ruby do |
Gemfile.lock
@@ -74,7 +74,7 @@ GEM | @@ -74,7 +74,7 @@ GEM | ||
74 | eventmachine (0.12.10) | 74 | eventmachine (0.12.10) |
75 | execjs (1.4.0) | 75 | execjs (1.4.0) |
76 | multi_json (~> 1.0) | 76 | multi_json (~> 1.0) |
77 | - fabrication (2.1.0) | 77 | + fabrication (1.3.2) |
78 | faraday (0.8.1) | 78 | faraday (0.8.1) |
79 | multipart-post (~> 1.1) | 79 | multipart-post (~> 1.1) |
80 | faraday_middleware (0.8.7) | 80 | faraday_middleware (0.8.7) |
@@ -275,7 +275,7 @@ DEPENDENCIES | @@ -275,7 +275,7 @@ DEPENDENCIES | ||
275 | devise (~> 1.5.3) | 275 | devise (~> 1.5.3) |
276 | email_spec | 276 | email_spec |
277 | execjs | 277 | execjs |
278 | - fabrication (~> 2.0) | 278 | + fabrication (~> 1.3.0) |
279 | haml | 279 | haml |
280 | hoptoad_notifier (~> 2.4) | 280 | hoptoad_notifier (~> 2.4) |
281 | htmlentities (~> 4.3.0) | 281 | htmlentities (~> 4.3.0) |
spec/fabricators/app_fabricator.rb
@@ -7,18 +7,18 @@ Fabricator(:app_with_watcher, :from => :app) do | @@ -7,18 +7,18 @@ Fabricator(:app_with_watcher, :from => :app) do | ||
7 | end | 7 | end |
8 | 8 | ||
9 | Fabricator(:watcher) do | 9 | Fabricator(:watcher) do |
10 | - app | 10 | + app! |
11 | watcher_type 'email' | 11 | watcher_type 'email' |
12 | email { sequence(:email){|n| "email#{n}@example.com"} } | 12 | email { sequence(:email){|n| "email#{n}@example.com"} } |
13 | end | 13 | end |
14 | 14 | ||
15 | Fabricator(:user_watcher, :from => :watcher) do | 15 | Fabricator(:user_watcher, :from => :watcher) do |
16 | - user | 16 | + user! |
17 | watcher_type 'user' | 17 | watcher_type 'user' |
18 | end | 18 | end |
19 | 19 | ||
20 | Fabricator(:deploy) do | 20 | Fabricator(:deploy) do |
21 | - app | 21 | + app! |
22 | username 'clyde.frog' | 22 | username 'clyde.frog' |
23 | repository 'git@github.com/errbit/errbit.git' | 23 | repository 'git@github.com/errbit/errbit.git' |
24 | environment 'production' | 24 | environment 'production' |
spec/fabricators/comment_fabricator.rb
spec/fabricators/err_fabricator.rb
1 | Fabricator :err do | 1 | Fabricator :err do |
2 | - problem | ||
3 | - error_class { 'FooError' } | 2 | + problem! |
3 | + error_class! { 'FooError' } | ||
4 | component 'foo' | 4 | component 'foo' |
5 | action 'bar' | 5 | action 'bar' |
6 | environment 'production' | 6 | environment 'production' |
7 | end | 7 | end |
8 | 8 | ||
9 | Fabricator :notice do | 9 | Fabricator :notice do |
10 | - err | 10 | + err! |
11 | message 'FooError: Too Much Bar' | 11 | message 'FooError: Too Much Bar' |
12 | backtrace { random_backtrace } | 12 | backtrace { random_backtrace } |
13 | server_environment { {'environment-name' => 'production'} } | 13 | server_environment { {'environment-name' => 'production'} } |
spec/fabricators/issue_tracker_fabricator.rb
spec/fabricators/problem_fabricator.rb
spec/fabricators/sequences_fabricator.rb