Sha256: e78a99b7dae01d4e99777709f27a4dd1d70dfb68ac0978245d4492bc4b56e640

Contents?: true

Size: 492 Bytes

Versions: 5

Compression:

Stored size: 492 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

module Cucover
  describe Controller do
    describe "#should_execute?" do
      before(:each) do
        @store = mock(Store)
        @example_id = 'foo.feature:123'
      end
      it "when no previous recording exists, it should always return true" do
        @store.should_receive(:latest_recording).with(@example_id).and_return(nil)
        Controller.new(@example_id, @store).should_execute?.should be_true
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mattwynne-cucover-0.1.0 spec/cucover/controller_spec.rb
mattwynne-cucover-0.1.1 spec/cucover/controller_spec.rb
cucover-0.1.4 spec/cucover/controller_spec.rb
cucover-0.1.3 spec/cucover/controller_spec.rb
cucover-0.1.2 spec/cucover/controller_spec.rb