Sha256: 18c102f945f42c81e18871c5b723f1120f455cc758ca86a11ec2381331fca42c

Contents?: true

Size: 590 Bytes

Versions: 5

Compression:

Stored size: 590 Bytes

Contents

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

class Cucover::Recording
  describe CoveredFile do
    describe "with a marked info" do
      before(:each) do
        @recording = mock('Recording')
        @covered_file = CoveredFile.new("foo.rb", [true, true, false], @recording)        
      end
      
      it "should set the covered_lines correctly from the marked info" do
        [1,2].each do |line_number|
          @covered_file.covers_line?(line_number).should be_true
        end
        
        @covered_file.covers_line?(3).should be_false
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

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