Sha256: f5adf487955f54731104b9ace05e95ace73a4f6c011c2725194de62ac6fa377c

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

describe WrapIt::HTMLData do
  it_behaves_like 'Base module'

  describe '#set_html_data' do
    it 'sets data' do
      wrapper.set_html_data(:one, 'test')
      expect(wrapper.options[:data]).to eq(one: 'test')
    end
  end

  describe '#remove_html_data' do
    it 'removes data' do
      wrapper.set_html_data(:one, 'test')
      wrapper.remove_html_data(:one)
      expect(wrapper.options[:data]).to be_empty
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wrap_it-0.2.0 spec/lib/html_data_spec.rb
wrap_it-0.1.5 spec/lib/html_data_spec.rb
wrap_it-0.1.4 spec/lib/html_data_spec.rb