Sha256: bca4d15b0153fc4c2fe13a39c7b08aad40b83c6eb288cdbe6ae2441774a10bae

Contents?: true

Size: 490 Bytes

Versions: 33

Compression:

Stored size: 490 Bytes

Contents

require "pact_broker/client/cli/broker"

RSpec.describe "the README" do
  NOT_DOCUMENTED = ["version"]
  COMMANDS = PactBroker::Client::CLI::Broker
              .commands
              .values
              .collect(&:usage).collect { | usage | usage.split(" ").first } - NOT_DOCUMENTED
  README = File.read("README.md")

  COMMANDS.each do | command |
    it "includes the documentation for #{command}" do
      expect(README.include?("\n#### " + command)).to be_truthy
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
pact_broker-client-1.75.3 spec/readme_spec.rb
pact_broker-client-1.75.1 spec/readme_spec.rb
pact_broker-client-1.75.0 spec/readme_spec.rb
pact_broker-client-1.74.0 spec/readme_spec.rb
pact_broker-client-1.73.0 spec/readme_spec.rb
pact_broker-client-1.72.0 spec/readme_spec.rb
pact_broker-client-1.71.0 spec/readme_spec.rb
pact_broker-client-1.70.0 spec/readme_spec.rb
pact_broker-client-1.69.0 spec/readme_spec.rb
pact_broker-client-1.68.0 spec/readme_spec.rb
pact_broker-client-1.67.0 spec/readme_spec.rb
pact_broker-client-1.66.1 spec/readme_spec.rb
pact_broker-client-1.66.0 spec/readme_spec.rb
pact_broker-client-1.65.0 spec/readme_spec.rb
pact_broker-client-1.64.0 spec/readme_spec.rb
pact_broker-client-1.63.0 spec/readme_spec.rb
pact_broker-client-1.62.1 spec/readme_spec.rb
pact_broker-client-1.62.0 spec/readme_spec.rb
pact_broker-client-1.61.1 spec/readme_spec.rb
pact_broker-client-1.61.0 spec/readme_spec.rb