Sha256: e0d2baeb25f1ab928e62696c732c46587b26d7c496fcea47a44973dde64ae646

Contents?: true

Size: 619 Bytes

Versions: 5

Compression:

Stored size: 619 Bytes

Contents

require 'spec_helper'

describe AngularSprinkles::Context do
  let(:key_generator) { Object.new }
  let(:constructor) { Object.new }
  let(:constructor_collection) { Object.new }
  let(:view_context) { Object.new }

  subject do
    described_class.new({
      key_generator: key_generator,
      constructor_collection: constructor_collection,
      constructor: constructor
    })
  end

  it 'initializes a context wrapper' do
    expect(subject.key_generator).to be(key_generator)
    expect(subject.constructor).to be(constructor)
    expect(subject.constructor_collection).to be(constructor_collection)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
angular_sprinkles-0.0.9 spec/angular_sprinkles/context_spec.rb
angular_sprinkles-0.0.8 spec/angular_sprinkles/context_spec.rb
angular_sprinkles-0.0.7 spec/angular_sprinkles/context_spec.rb
angular_sprinkles-0.0.6 spec/angular_sprinkles/context_spec.rb
angular_sprinkles-0.0.5 spec/angular_sprinkles/context_spec.rb