gitshowcase/gitshowcase

View on GitHub
spec/helpers/url_helper_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Block has too many lines. [70/25]
Open

RSpec.describe UrlHelper, type: :helper do
  describe '.is_url' do
    it 'is true for http' do
      expect(UrlHelper.is_url('http://www.url.com')).to be(true)
    end
Severity: Minor
Found in spec/helpers/url_helper_spec.rb by rubocop

This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

Line is too long. [81/80]
Open

      expect(UrlHelper.extract('example.com/test', 'example.com')).to eq('/test')
Severity: Minor
Found in spec/helpers/url_helper_spec.rb by rubocop

Line is too long. [107/80]
Open

        expect(UrlHelper.website_url('example.com', 'example.com/after')).to eq('http://example.com/after')
Severity: Minor
Found in spec/helpers/url_helper_spec.rb by rubocop

Line is too long. [86/80]
Open

        expect(UrlHelper.url('not-a-url.com', 'https')).to eq('https://not-a-url.com')
Severity: Minor
Found in spec/helpers/url_helper_spec.rb by rubocop

There are no issues that match your filters.

Category
Status