Sha256: 95990543a1426c6b97f14ecc6daba8da156f002c4f25c604c3f8eae169ee6789

Contents?: true

Size: 670 Bytes

Versions: 9

Compression:

Stored size: 670 Bytes

Contents

require 'spec_helper'

RSpec.describe SmashingDocs::Conf do
  let!(:config) {
    SmashingDocs.config do |c|
      c.template_file = "gem_spec/fake_template.md.erb"
      c.output_file   = "api_docs.md"
      c.auto_push     = false
      c.run_all       = true
    end
  }
  it "sets the output file" do
    expect(SmashingDocs::Conf.output_file).to eq("api_docs.md")
  end

  it "sets the template file" do
    expect(SmashingDocs::Conf.template_file).to eq("gem_spec/fake_template.md.erb")
  end

  it "sets run_all" do
    expect(SmashingDocs::Conf.run_all).to eq(true)
  end

  it "sets the auto_push boolean" do
    expect(!SmashingDocs::Conf.auto_push)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
smashing_docs-1.3.6 gem_rspec/conf_spec.rb
smashing_docs-1.3.5 gem_rspec/conf_spec.rb
smashing_docs-1.3.4 gem_rspec/conf_spec.rb
smashing_docs-1.3.3 gem_rspec/conf_spec.rb
smashing_docs-1.3.2 gem_rspec/conf_spec.rb
smashing_docs-1.3.1 gem_rspec/conf_spec.rb
smashing_docs-1.2.1 gem_rspec/conf_spec.rb
smashing_docs-1.2.0 gem_rspec/conf_spec.rb
smashing_docs-1.1.0 gem_rspec/conf_spec.rb