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