spec/gnawrnip/photographer_spec.rb in gnawrnip-0.2.5 vs spec/gnawrnip/photographer_spec.rb in gnawrnip-0.3.0

- old
+ new

@@ -1,15 +1,13 @@ require 'spec_helper' require 'gnawrnip/photographer' module Gnawrnip describe Photographer do - let(:photographer) do - Photographer.new - end + let(:photographer) { described_class.new } before do - Screenshot.stub(:take).and_return('foo') + allow(Screenshot).to receive(:take).and_return('foo') photographer.reset! photographer.take_shot photographer.take_shot end