Sha256: 6253aab9d5347a0ed94dc5119a76dbcc4fd518a4fd4d241896947df4c9705e86

Contents?: true

Size: 751 Bytes

Versions: 2

Compression:

Stored size: 751 Bytes

Contents

require "spec_helper"

include Rapidoc

describe Rapidoc do

  before :all do
    create_structure
    load_config
  end

  after :all do
    remove_doc
  end

  context "when create estructure" do
    it "should create config files" do
      File.exists?( config_dir( "rapidoc.yml" ) ).should == true
    end

    it "should create target dir" do
      File.directory?( target_dir ).should == true
    end

    it "should create example dir" do
      File.directory?( examples_dir ).should == true
    end
  end

  context "when executing genarate_doc function" do
    before do
      generate_doc
    end

    it "should create new index.html file" do
      File.exists?( ::Rails.root.to_s + "/rapidoc/index.html" ).should == true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rapidoc-0.0.5 spec/lib/rapidoc_spec.rb
rapidoc-0.0.4 spec/lib/rapidoc_spec.rb