Sha256: 47ddbf8f1fe30c98b51c641556801d3fe827a1b1145f0bfcb8f80dafe5f47404
Contents?: true
Size: 404 Bytes
Versions: 26
Compression:
Stored size: 404 Bytes
Contents
require 'spec_helper' describe AngularSprinkles::Counter do subject { described_class.new } it 'increments the counter for classes' do expect(subject.inc(Object)).to eq(1) expect(subject.inc(Object)).to eq(2) expect(subject.inc(Array)).to eq(1) expect(subject.inc(Array)).to eq(2) expect(subject.inc(Array)).to eq(3) expect(subject.inc(described_class)).to eq(1) end end
Version data entries
26 entries across 26 versions & 1 rubygems