spec/cli/i18n_spec.rb in yard-0.9.5 vs spec/cli/i18n_spec.rb in yard-0.9.6

- old
+ new

@@ -1,8 +1,8 @@ -require File.dirname(__FILE__) + '/../spec_helper' +# frozen_string_literal: true -describe YARD::CLI::I18n do +RSpec.describe YARD::CLI::I18n do before do @i18n = YARD::CLI::I18n.new @i18n.use_document_file = false @i18n.use_yardopts_file = false output_path = File.expand_path(@i18n.options.serializer.basepath) @@ -46,10 +46,10 @@ expect(@i18n.use_yardopts_file).to be true @i18n.parse_arguments('--no-yardopts', arg) expect(@i18n.use_yardopts_file).to be true end - should_accept('--yardopts with filename') do |arg| + should_accept('--yardopts with filename') do |_arg| @i18n = YARD::CLI::I18n.new expect(File).to receive(:read_binary).with('.yardopts_i18n').and_return('') @i18n.use_document_file = false @i18n.parse_arguments('--yardopts', '.yardopts_i18n') expect(@i18n.use_yardopts_file).to be true