Sha256: ef000993f6c5281c2b911f8b4eca0080bf5b5ab910d2351b1e9ee4efd5384af8
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 Bytes
Contents
require 'test_helper' class AttributeTest < ActiveSupport::TestCase test 'methods' do product = Product.new assert_equal '', product.size_list product.expects(:size_added).never product.expects(:size_removed).never product.sizes << '64GB' assert_equal '64GB', product.size_list assert_equal [], product.added_sizes_to_list assert_equal [], product.removed_sizes_from_list product.expects(:size_added).once.with('32GB') product.expects(:size_removed).once.with('64GB') product.size_list = '32GB' assert_equal '32GB', product.size_list assert_equal ['32GB'], product.added_sizes_to_list assert_equal ['64GB'], product.removed_sizes_from_list end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
listable_collections-4.0.0.1 | test/attribute_test.rb |
listable_collections-4.0.0.0 | test/attribute_test.rb |
listable_collections-0.1.0 | test/attribute_test.rb |