Sha256: f1774823b0b97bb19a069c03a9c922782601cfefac8ee9918885e8513b8ccb95

Contents?: true

Size: 319 Bytes

Versions: 7

Compression:

Stored size: 319 Bytes

Contents

require 'spec_helper'

describe AngularSprinkles::KeyGenerator do
  let(:counter) { double(inc: inc) }
  let(:inc) { 1 }
  let(:object) { double }

  subject { described_class.new(counter: counter) }

  it 'returns a suitable variable name' do
    expect(subject.call(object)).to eq("#{object.class}_#{inc}")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
angular_sprinkles-0.2.4 spec/angular_sprinkles/key_generator_spec.rb
angular_sprinkles-0.2.3 spec/angular_sprinkles/key_generator_spec.rb
angular_sprinkles-0.2.2 spec/angular_sprinkles/key_generator_spec.rb
angular_sprinkles-0.2.1 spec/angular_sprinkles/key_generator_spec.rb
angular_sprinkles-0.2.0 spec/angular_sprinkles/key_generator_spec.rb
angular_sprinkles-0.1.1 spec/angular_sprinkles/key_generator_spec.rb
angular_sprinkles-0.1.0 spec/angular_sprinkles/key_generator_spec.rb