Sha256: 860c6a6948a35ff0874ed6580138a8f97ff363b6aa6f4ca1736c712017e5b614

Contents?: true

Size: 778 Bytes

Versions: 21

Compression:

Stored size: 778 Bytes

Contents

require_relative '../spec_helper'

RSpec.describe Reek::DocumentationLink do
  describe '.build' do
    it 'returns the correct link for a smell type' do
      expect(described_class.build('FeatureEnvy')).
        to eq "https://github.com/troessner/reek/blob/v#{Reek::Version::STRING}/docs/Feature-Envy.md"
    end

    it 'returns the correct link for general documentation' do
      expect(described_class.build('Rake Task')).
        to eq "https://github.com/troessner/reek/blob/v#{Reek::Version::STRING}/docs/Rake-Task.md"
    end

    it 'returns the correct link for subjects with abbreviations' do
      expect(described_class.build('YAML Report')).
        to eq "https://github.com/troessner/reek/blob/v#{Reek::Version::STRING}/docs/YAML-Report.md"
    end
  end
end

Version data entries

21 entries across 19 versions & 2 rubygems

Version Path
reek-6.0.3 spec/reek/documentation_link_spec.rb
reek-6.0.2 spec/reek/documentation_link_spec.rb
reek-6.0.1 spec/reek/documentation_link_spec.rb
reek-6.0.0 spec/reek/documentation_link_spec.rb
reek-5.6.0 spec/reek/documentation_link_spec.rb
reek-5.5.0 spec/reek/documentation_link_spec.rb
reek-5.4.1 spec/reek/documentation_link_spec.rb
reek-5.4.0 spec/reek/documentation_link_spec.rb
reek-5.3.2 spec/reek/documentation_link_spec.rb
reek-5.3.1 spec/reek/documentation_link_spec.rb
reek-5.3.0 spec/reek/documentation_link_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/documentation_link_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/documentation_link_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/documentation_link_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/documentation_link_spec.rb
reek-5.2.0 spec/reek/documentation_link_spec.rb
reek-5.1.0 spec/reek/documentation_link_spec.rb
reek-5.0.2 spec/reek/documentation_link_spec.rb
reek-5.0.1 spec/reek/documentation_link_spec.rb
reek-5.0.0 spec/reek/documentation_link_spec.rb