travis-ci
148 of 148 new or added lines in 16 files covered. (100.0%)
2181 of 2309 relevant lines covered (94.46%)
320.89 hits per line
1 |
module Comable |
9✔ |
2 |
class Stock < ActiveRecord::Base |
9✔ |
3 |
module Csvable |
9✔ |
4 |
extend ActiveSupport::Concern |
9✔ |
5 |
|
|
6 |
include Comable::Importable |
9✔ |
7 |
|
|
8 |
included do
|
9✔ |
9 |
comma do
|
9✔ |
|
product_id |
18✔ |
|
id |
18✔ |
12 |
quantity |
18✔ |
13 |
sku_h_choice_name |
18✔ |
14 |
sku_v_choice_name |
18✔ |
15 |
end
|
|
16 |
end
|
|
17 |
|
|
|
delegate :id, to: :product, prefix: true, allow_nil: true |
9✔ |
19 |
|
|
|
def product_id=(id) |
9✔ |
|
self.product = Comable::Product.find_by(id: id) |
× |
22 |
end
|
|
23 |
end
|
|
24 |
end
|
|
25 |
end
|