Sha256: 81b3cf1c0b43005f98db2ad8fca28a9c22f9dcaaed2cc4e5ac7042d51ab0016b

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'

describe "Project" do
  it "analyze" do
    projects = CodeStats.analyze sample_project_path
    report = CodeStats::Report.new(*projects).render
    report.should =~ /sample_project.+32/m
  end
  
  it "should also accept options (from error)" do
    projects = CodeStats.analyze sample_project_path
    report = CodeStats::Report.new(*(projects << {except: :JavaScript})).render
    report.should =~ /sample_project.+13/m
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
code_stats2-0.1.4 spec/code_stats_spec.rb
code_stats2-0.1.3 spec/code_stats_spec.rb
code_stats2-0.1.2 spec/code_stats_spec.rb
code_stats2-0.1.1 spec/code_stats_spec.rb
code-statistics-0.1.1 spec/code_stats_spec.rb
code-stats-0.1.1 spec/code_stats_spec.rb