Sha256: 77598f4b0f7530951339f93a9b24db3db335bef86c47ee6fcf23fda073eb8199

Contents?: true

Size: 626 Bytes

Versions: 21

Compression:

Stored size: 626 Bytes

Contents

# encoding: utf-8
#
require 'spec_helper'

# We need to load the Statistics file explicitly as the Statistics
# are not loaded with the Loader (not needed in the server, only for script runs).
#
require File.expand_path '../../../lib/picky/statistics', __FILE__

describe Statistics do
  
  let(:stats) { described_class.new }
  
  describe 'lines_of_code' do
    it 'is correct' do
      stats.lines_of_code(<<-TEXT
# not a line of code
class LineOfCode
  # also not a line of code
  def bla
    # not one either
    this is one # this is still one
  end
end
# In total, we have 5 LOC.
TEXT
).should == 5
    end
  end
  
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
picky-2.7.0 spec/lib/statistics_spec.rb
picky-2.6.0 spec/lib/statistics_spec.rb
picky-2.5.2 spec/lib/statistics_spec.rb
picky-2.5.1 spec/lib/statistics_spec.rb
picky-2.5.0 spec/lib/statistics_spec.rb
picky-2.4.3 spec/lib/statistics_spec.rb
picky-2.4.2 spec/lib/statistics_spec.rb
picky-2.4.1 spec/lib/statistics_spec.rb
picky-2.4.0 spec/lib/statistics_spec.rb
picky-2.3.0 spec/lib/statistics_spec.rb
picky-2.2.1 spec/lib/statistics_spec.rb
picky-2.2.0 spec/lib/statistics_spec.rb
picky-2.1.2 spec/lib/statistics_spec.rb
picky-2.1.1 spec/lib/statistics_spec.rb
picky-2.1.0 spec/lib/statistics_spec.rb
picky-2.0.0 spec/lib/statistics_spec.rb
picky-2.0.0.pre3 spec/lib/statistics_spec.rb
picky-2.0.0.pre2 spec/lib/statistics_spec.rb
picky-2.0.0.pre1 spec/lib/statistics_spec.rb
picky-1.5.4 spec/lib/statistics_spec.rb