Sha256: e8712a55302b0cd7dbc4f09e370183353e32804a84f60cb16a88df76f655a721

Contents?: true

Size: 442 Bytes

Versions: 4

Compression:

Stored size: 442 Bytes

Contents

require 'spec_helper'
require 'gnawrnip/animation'

module Gnawrnip
  describe Animation do
    before do
      Animation.reset!
      Animation.add_frame
      Animation.add_frame
    end

    describe '.add_frame' do
      subject { Animation.frames }
      it { should have(2).elements }
    end

    describe '.reset!' do
      before { Animation.reset! }
      subject { Animation.frames }
      it { should be_empty }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gnawrnip-0.1.2 spec/gnawrnip/animation_spec.rb
gnawrnip-0.1.1 spec/gnawrnip/animation_spec.rb
gnawrnip-0.1.0 spec/gnawrnip/animation_spec.rb
gnawrnip-0.0.4 spec/gnawrnip/animation_spec.rb