Sha256: 8c15da83463ffbbee4425a2b8f2f7dc49fe4ead3b50843a6afc6f11516180c40

Contents?: true

Size: 633 Bytes

Versions: 163

Compression:

Stored size: 633 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 Picky::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

163 entries across 163 versions & 1 rubygems

Version Path
picky-4.22.0 spec/lib/statistics_spec.rb
picky-4.21.2 spec/lib/statistics_spec.rb
picky-4.21.1 spec/lib/statistics_spec.rb
picky-4.21.0 spec/lib/statistics_spec.rb
picky-4.20.2 spec/lib/statistics_spec.rb
picky-4.20.1 spec/lib/statistics_spec.rb
picky-4.20.0 spec/lib/statistics_spec.rb
picky-4.19.7 spec/lib/statistics_spec.rb
picky-4.19.6 spec/lib/statistics_spec.rb
picky-4.19.5 spec/lib/statistics_spec.rb
picky-4.19.4 spec/lib/statistics_spec.rb
picky-4.19.3 spec/lib/statistics_spec.rb
picky-4.19.2 spec/lib/statistics_spec.rb
picky-4.19.1 spec/lib/statistics_spec.rb
picky-4.19.0 spec/lib/statistics_spec.rb
picky-4.18.0 spec/lib/statistics_spec.rb
picky-4.17.1 spec/lib/statistics_spec.rb
picky-4.17.0 spec/lib/statistics_spec.rb
picky-4.16.0 spec/lib/statistics_spec.rb
picky-4.15.1 spec/lib/statistics_spec.rb