Sha256: a6038f739bd637a2c85f4acd290f7408a0a74a026b38c960142b7fa520b57d1c

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

require 'spec_helper'

describe Bashcov::Runner do
  before do
    @runner ||= Bashcov::Runner.new test_suite
  end

  describe "#find_bash_files" do
    it "returns the list of .sh files in the root directory" do
      files = @runner.find_bash_files
      files.class.should == Hash
      files.values.each do |lines|
        lines.each { |line| line.should == Bashcov::Line::UNCOVERED }
      end
    end
  end

  describe "#result" do
    it "returns a valid hash" do
      @runner.run
      result = @runner.result

      result.class.should == Hash
      result.size.should == 8 # FIXME
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bashcov-0.0.1 spec/bashcov/runner_spec.rb