diff --git a/.github/workflows/rubocop-challenger.yml b/.github/workflows/rubocop-challenger.yml index ae575852..b8997764 100644 --- a/.github/workflows/rubocop-challenger.yml +++ b/.github/workflows/rubocop-challenger.yml @@ -9,7 +9,7 @@ jobs: name: Create Pull Request runs-on: ubuntu-latest env: - BUNDLE_GEMFILE: gemfiles/Gemfile.rails50 + RUBY_VERSION: 3.2.3 steps: - uses: actions/checkout@v2 - name: Set up Ruby 3.2 diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 93a0c200..2a9caeba 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -5,6 +5,8 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest + env: + RUBY_VERSION: 3.2.3 steps: - uses: actions/checkout@v3 diff --git a/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb b/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb index 09175fbd..db7479df 100644 --- a/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb +++ b/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb @@ -118,7 +118,7 @@ { required: false, default_value: nil } end - it 'will not warn' do + it 'does not warn' do expect { subject }.not_to output( /is optional but default value is not specified/ ).to_stderr @@ -130,7 +130,7 @@ { required: false, default_value: 123 } end - it 'will not warn' do + it 'does not warn' do expect { subject }.not_to output( /is optional but default value is not specified/ ).to_stderr diff --git a/spec/lib/swagger/swagger_dsl_spec.rb b/spec/lib/swagger/swagger_dsl_spec.rb index da5b6c19..563c1b63 100644 --- a/spec/lib/swagger/swagger_dsl_spec.rb +++ b/spec/lib/swagger/swagger_dsl_spec.rb @@ -283,7 +283,7 @@ def have_field?(field, expected_name, breadcrumb) expect(schema).to have_field(:pet_id, 'number', {:description => 'id of pet'}) expect(schema).to have_field(:pet_name, 'string', {:description => 'Name of pet', :required => false}) expect(schema).to have_field(:animal_type, 'string', {:description => 'Type of pet', :enum => %w[dog cat iguana kangaroo]}) - expect(schema).not_to have_field(:partial_match_allowed, 'boolean', {:required => false}) + expect(schema).not_to have_field(:partial_match_allowed, 'boolean', {:required => false}) # rubocop:disable Capybara/NegationMatcher end it "creates a swagger definition with all input parameters" do