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

Version Path
angular_sprinkles-0.3.3 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.3.2 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.3.1 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.3.0 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.14 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.13 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.12 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.11 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.10 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.9 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.8 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.7 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.6 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.5 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.4 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.3 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.2 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.1 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.2.0 spec/angular_sprinkles/counter_spec.rb
angular_sprinkles-0.1.1 spec/angular_sprinkles/counter_spec.rb