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