yast/yast-alternatives

View on GitHub

Showing 3 of 7 total issues

File spec_helper.rb has 277 lines of code (exceeds 250 allowed). Consider refactoring.
Open

SRC_PATH = File.expand_path("../../src", __FILE__)
DATA_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "data")
ENV["Y2DIR"] = SRC_PATH

require "yast"
Severity: Minor
Found in test/spec_helper.rb - About 2 hrs to fix

    Method alternative_with_slaves_stub has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def alternative_with_slaves_stub
      allow(Cheetah).to receive(:run).with(
        "update-alternatives", "--query", "editor", stdout: :capture
      ).and_return(
        "Name: editor\n" \
    Severity: Minor
    Found in test/spec_helper.rb - About 1 hr to fix

      Method some_alternatives_some_without_choices_stub has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      def some_alternatives_some_without_choices_stub
        allow(Cheetah).to receive(:run).with(
          "update-alternatives", "--get-selections", stdout: :capture
        ).and_return(
          "rake                           auto     /usr/bin/rake.ruby.ruby2.1\n" \
      Severity: Minor
      Found in test/spec_helper.rb - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language