Sha256: 49a5650fa73bacba5107ab817066cd6509a2077b5f0eef25d1bb72e7735de450

Contents?: true

Size: 282 Bytes

Versions: 20

Compression:

Stored size: 282 Bytes

Contents

require 'spec_helper'

describe AngularSprinkles::Directive::Input do
  let(:args) { { key: 'value' } }

  subject { described_class.new(args) }

  it 'turns the args hash into a jsonified data hash' do
    expect(subject.attributes).to eq({ data: { key: "\"value\"" } })
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
angular_sprinkles-0.2.12 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.11 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.10 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.9 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.8 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.7 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.6 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.5 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.4 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.3 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.2 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.1 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.2.0 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.1.1 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.1.0 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.0.9 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.0.8 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.0.7 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.0.6 spec/angular_sprinkles/directive/input_spec.rb
angular_sprinkles-0.0.5 spec/angular_sprinkles/directive/input_spec.rb