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