Sha256: 84ab6b3b420d94aaab46f86c4cfbe9d1bb19efec82cf1e4c4b2c72d41d549d9f

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe AngularSprinkles::Element::Attributes do
  let(:something) { double(attributes: {}) }
  let(:name) { something }
  let(:input) { something }
  let(:options) { something }
  let(:content) { 'content' }
  let(:tag) { :div }

  subject do
    described_class.new([name, input, options], content: content, tag: tag)
  end

  it 'returns the list of arguments required for the content_tag' do
    expect(subject.to_content_tag).to eq([tag, content, {}])
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
angular_sprinkles-0.3.3 spec/angular_sprinkles/element/attributes_spec.rb
angular_sprinkles-0.3.2 spec/angular_sprinkles/element/attributes_spec.rb
angular_sprinkles-0.3.1 spec/angular_sprinkles/element/attributes_spec.rb
angular_sprinkles-0.3.0 spec/angular_sprinkles/element/attributes_spec.rb