Sha256: 6bbc970c0784b1440421224125300babb8b8b2c1b293ce0123c265534af3bf9c

Contents?: true

Size: 494 Bytes

Versions: 17

Compression:

Stored size: 494 Bytes

Contents

require 'spec_helper'

describe AngularSprinkles::Directive::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

17 entries across 17 versions & 1 rubygems

Version Path
angular_sprinkles-0.2.14 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.13 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.12 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.11 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.10 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.9 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.8 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.7 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.6 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.5 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.4 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.3 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.2 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.1 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.2.0 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.1.1 spec/angular_sprinkles/directive/attributes_spec.rb
angular_sprinkles-0.1.0 spec/angular_sprinkles/directive/attributes_spec.rb