Sha256: f4d397d3905035e55dab2a6ef43d9c6b4802169e6bad581203584dd32903fb55

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

require 'spec_helper'

describe CSstats do
  describe '.new' do
    it 'is a CSstats::Handler' do
      expect(CSstats.new(path: csstats_file)).to be_a CSstats::Handler
    end

    it 'is a CSstats::FileNotFound if file path empty' do
      expect { CSstats.new }.to raise_error(CSstats::FileNotExist)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
csstats-1.1.0 spec/csstats_spec.rb
csstats-1.0.7 spec/csstats_spec.rb
csstats-1.0.6 spec/csstats_spec.rb