Sha256: e666b5d1d78145c09edaf420d17422cdc7dc56da1795e86bad31a4877ac1ffd8

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

require 'spec_helper'
require 'gnawrnip/photographer'

module Gnawrnip
  describe Photographer do
    let(:photographer) do
      Photographer.new
    end

    before do
      Screenshot.stub(:take).and_return('foo')
      photographer.reset!
      photographer.take_shot
      photographer.take_shot
    end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gnawrnip-0.2.3 spec/gnawrnip/photographer_spec.rb