Sha256: 3154c0ee6cadc3128cb2ee36fd5f96afb8460606df54a8ec0344f7166a3117c8

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

require 'spec_helper'

describe Cohesion do
  before(:each) do
    @cohesion = Cohesion::Check.new
  end

  it "should be a Check class" do
    @cohesion.should be_an_instance_of Cohesion::Check
  end
  it "should run a check"

  context "site" do
    it "should crawl the site"
    it "should return error pages"
    it "should exclude urls given as external"
    it "should default to accept one level of external"
    it "should not allow one level external for excluded urls"
    it "should detect 400 level errors"
    it "should detect 500 level errors"
    it "should write valid json file"
    it "should not write to file if not requested"
    it "should start the web stats when requested"
    it "should return data when --help requested"
    it "should return help when invalid params are passed"
    it "should return help when no params are passed"
    it "should print out success links with tick"
    it "should print out failed links with cross"
    it "should print out report at end of crawl"
    it "should default to full cache"
  end

  context "rails" do
  end

  context "rake" do
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cohesion-1.0.3 spec/lib/cohesion_spec.rb
cohesion-1.0.2 spec/lib/cohesion_spec.rb
cohesion-1.0.1 spec/lib/cohesion_spec.rb
cohesion-1.0.0 spec/lib/cohesion_spec.rb
cohesion-0.0.7 spec/lib/cohesion_spec.rb