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