Commit 948d639a3dd06c33da8fadb3de40a9b1af644aef
1 parent
b587b9b9
Exists in
rails5
rails5: drop find(:all) and find(:first)
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
plugins/solr/lib/acts_as_searchable.rb
test/unit/product_test.rb
... | ... | @@ -404,7 +404,7 @@ class ProductTest < ActiveSupport::TestCase |
404 | 404 | |
405 | 405 | env_production_cost = fast_create(ProductionCost, :owner_id => ent.environment.id, :owner_type => 'Environment') |
406 | 406 | ent_production_cost = fast_create(ProductionCost, :owner_id => ent.id, :owner_type => 'Profile') |
407 | - create(PriceDetail, :product => product, :production_cost => env_production_cost, :product => product) | |
407 | + create(PriceDetail, product: product, production_cost: env_production_cost) | |
408 | 408 | assert_equal [env_production_cost, ent_production_cost], product.available_production_costs |
409 | 409 | end |
410 | 410 | ... | ... |