Created
November 4, 2017 02:10
-
-
Save mattmartini/72c33a9f230fd7530ad2729962c4282e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dish F......F.. | |
1) Dish Model should validate that :name cannot be empty/falsy | |
Failure/Error: delegate :multi_size?, to: :category | |
Module::DelegationError: | |
Dish#multi_size? delegated to category.multi_size?, but category is nil: #<Dish id: nil, name: nil, category_id: 6, description: nil, small_size_price: nil, large_size_price: nil, created_at: nil, updated_at: nil> | |
# ./app/models/dish.rb:21:in `rescue in multi_size?' | |
# ./app/models/dish.rb:21:in `multi_size?' | |
# ./spec/models/dish_spec.rb:25:in `block (3 levels) in <top (required)>' | |
# ./spec/support/spork_patch.rb:12:in `run_tests' | |
# ------------------ | |
# --- Caused by: --- | |
# NoMethodError: | |
# undefined method `multi_size?' for nil:NilClass | |
# ./app/models/dish.rb:21:in `multi_size?' | |
2) Dish Model model validations is invalid with an unknown category | |
Failure/Error: delegate :multi_size?, to: :category | |
Module::DelegationError: | |
Dish#multi_size? delegated to category.multi_size?, but category is nil: #<Dish id: nil, name: "Katsu Curry", category_id: nil, description: "Ducimus provident non quam corrupti commodi aut mi...", small_size_price: #<BigDecimal:7fe2d7002000,'0.6299E2',18(18)>, large_size_price: #<BigDecimal:7fe2d7001e20,'0.5628E2',18(18)>, created_at: nil, updated_at: nil> | |
# ./app/models/dish.rb:21:in `rescue in multi_size?' | |
# ./app/models/dish.rb:21:in `multi_size?' | |
# ./spec/models/dish_spec.rb:43:in `block (4 levels) in <top (required)>' | |
# ./spec/support/spork_patch.rb:12:in `run_tests' | |
# ------------------ | |
# --- Caused by: --- | |
# NoMethodError: | |
# undefined method `multi_size?' for nil:NilClass | |
# ./app/models/dish.rb:21:in `multi_size?' | |
Finished in 0.18763 seconds (files took 48 minutes 18 seconds to load) | |
10 examples, 2 failures | |
Failed examples: | |
rspec ./spec/models/dish_spec.rb:25 # Dish Model should validate that :name cannot be empty/falsy | |
rspec ./spec/models/dish_spec.rb:41 # Dish Model model validations is invalid with an unknown category | |
Guard::RSpec: Warning: no environment passed - see https://github.com/guard/guard-rspec/wiki/Warning:-no-environment | |
Guard::RSpec: Warning: :results_file value unknown (using defaults) | |
Randomized with seed 35630 | |
[1] guard(main)> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment