Skip to content

Commit

Permalink
Fix RSpec/FilePath violations
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosCodes committed Feb 17, 2023
1 parent 3a020d8 commit f1bbb77
Show file tree
Hide file tree
Showing 31 changed files with 228 additions and 274 deletions.
4 changes: 0 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,3 @@ Style/Documentation:
- spec/support/custom_bool_validator.rb
- spec/lib/validators/array_validator_spec.rb
- spec/dummy/**/*.rb

RSpec/FilePath:
Exclude:
- 'spec/lib/param_description/deprecation_spec.rb'
494 changes: 226 additions & 268 deletions .rubocop_todo.yml

Large diffs are not rendered by default.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'fileutils'
require "json-schema"

describe Apipie::ApipiesController do
describe Apipie::ApipiesController, type: :controller do

describe "GET index" do

Expand Down Expand Up @@ -159,7 +159,7 @@
describe "GET index as swagger" do

let(:swagger_schema) do
File.read(File.join(File.dirname(__FILE__),"../lib/swagger/openapi_2_0_schema.json"))
File.read("#{Rails.root.parent}/lib/swagger/openapi_2_0_schema.json")
end

it "outputs swagger when format is json and type is swagger" do
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f1bbb77

Please sign in to comment.