Showing 3 of 7 total issues
File spec_helper.rb
has 277 lines of code (exceeds 250 allowed). Consider refactoring. Open
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"
Method alternative_with_slaves_stub
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def alternative_with_slaves_stub
allow(Cheetah).to receive(:run).with(
"update-alternatives", "--query", "editor", stdout: :capture
).and_return(
"Name: editor\n" \
Method some_alternatives_some_without_choices_stub
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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" \