From cdc0cf65dc603869c6ac8a690ce10e98979f2ba0 Mon Sep 17 00:00:00 2001 From: buty4649 Date: Fri, 26 May 2023 16:05:43 +0900 Subject: [PATCH] type: :aruba is no longer necessary --- .rubocop.yml | 3 +++ spec/error_message_spec.rb | 2 +- spec/filter/json_spec.rb | 2 +- spec/filter/text_spec.rb | 2 +- spec/filter/yaml_spec.rb | 2 +- spec/help_spec.rb | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index c7349fc..e62aa6e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -49,3 +49,6 @@ RSpec/ContextWording: - with - within - for + +RSpec/DescribeClass: + Enabled: false diff --git a/spec/error_message_spec.rb b/spec/error_message_spec.rb index 4a05d43..2be4dcc 100644 --- a/spec/error_message_spec.rb +++ b/spec/error_message_spec.rb @@ -1,4 +1,4 @@ -describe 'Show error message', type: :aruba do +describe 'Show error message' do context 'when invalid option' do before { run_rf('--invalid-option') } diff --git a/spec/filter/json_spec.rb b/spec/filter/json_spec.rb index f6db44e..6d325d5 100644 --- a/spec/filter/json_spec.rb +++ b/spec/filter/json_spec.rb @@ -1,4 +1,4 @@ -describe 'JSON filter', type: :aruba do +describe 'JSON filter' do context 'when -t option' do describe 'Output string' do let(:input) { load_fixture('json/string.json') } diff --git a/spec/filter/text_spec.rb b/spec/filter/text_spec.rb index 1766067..c4f1fb7 100644 --- a/spec/filter/text_spec.rb +++ b/spec/filter/text_spec.rb @@ -1,4 +1,4 @@ -describe 'Text filter', type: :aruba do +describe 'Text filter' do let(:input) do <<~INPUT 1 foo diff --git a/spec/filter/yaml_spec.rb b/spec/filter/yaml_spec.rb index 467da45..a9ae491 100644 --- a/spec/filter/yaml_spec.rb +++ b/spec/filter/yaml_spec.rb @@ -1,4 +1,4 @@ -describe 'YAML filter', type: :aruba do +describe 'YAML filter' do context 'when use -t option' do describe 'Output string' do let(:input) { load_fixture('yaml/string.yml') } diff --git a/spec/help_spec.rb b/spec/help_spec.rb index b476ec2..af8fe21 100644 --- a/spec/help_spec.rb +++ b/spec/help_spec.rb @@ -1,4 +1,4 @@ -describe 'Show help text', type: :aruba do +describe 'Show help text' do let(:help_text) do <<~TEXT Usage: rf [options] 'command' file ...