Sha256: 81dd6752d4671500b5f81ddf48bf656f467fa9687715d873a1d4741278c348ef
Contents?: true
Size: 837 Bytes
Versions: 5
Compression:
Stored size: 837 Bytes
Contents
require 'test_helper' describe SimpleFormAttachments do describe '.dom_class' do it do dom_class = SimpleFormAttachments.dom_class dom_class.must_equal 'simple_form_attachments' end it do dom_class = SimpleFormAttachments.dom_class(:a) dom_class.must_equal 'simple_form_attachments__a' end it do dom_class = SimpleFormAttachments.dom_class(:a, :b, :c) dom_class.must_equal 'simple_form_attachments__a__b__c' end it do dom_class = SimpleFormAttachments.dom_class([:a, :b]) dom_class.must_equal ['simple_form_attachments__a', 'simple_form_attachments__a__b'] end it do dom_class = SimpleFormAttachments.dom_class(:a, [:b, :c]) dom_class.must_equal ['simple_form_attachments__a__b', 'simple_form_attachments__a__b__c'] end end end
Version data entries
5 entries across 5 versions & 1 rubygems