Sha256: b49fd9e50f4ff558e2fcb2cfe9b81dc6ef6bf8fa6d427c6446f50e35bb24b1b6

Contents?: true

Size: 566 Bytes

Versions: 2

Compression:

Stored size: 566 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.length }
      it { should eq 2 }
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gnawrnip-0.2.5 spec/gnawrnip/photographer_spec.rb
gnawrnip-0.2.4 spec/gnawrnip/photographer_spec.rb