diff --git a/spec/minitest/rack_test_spec.rb b/spec/minitest/rack_test_spec.rb deleted file mode 100644 index 20c8d424..00000000 --- a/spec/minitest/rack_test_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' -require 'fileutils' -require 'yaml' - -RSpec.describe 'rack-test minitest' do - include SpecHelper - - describe 'yaml output' do - let(:openapi_path) do - File.expand_path('spec/roda/doc/openapi.yaml', repo_root) - end - - it 'generates the same spec/roda/doc/openapi.yaml' do - org_yaml = YAML.safe_load(File.read(openapi_path)) - minitest 'spec/integration_tests/roda_test.rb', openapi: true - new_yaml = YAML.safe_load(File.read(openapi_path)) - expect(new_yaml).to eq org_yaml - end - end - - describe 'json output' do - let(:openapi_path) do - File.expand_path('spec/roda/doc/openapi.json', repo_root) - end - - it 'generates the same spec/roda/doc/openapi.json' do - org_yaml = YAML.safe_load(File.read(openapi_path)) - minitest 'spec/integration_tests/roda_test.rb', openapi: true, output: :json - new_yaml = YAML.safe_load(File.read(openapi_path)) - expect(new_yaml).to eq org_yaml - end - end - - describe 'with disabled OpenAPI generation' do - it 'can run tests' do - minitest 'spec/integration_tests/roda_test.rb' - end - end -end diff --git a/spec/minitest/rails_spec.rb b/spec/minitest/rails_spec.rb deleted file mode 100644 index d67a3cab..00000000 --- a/spec/minitest/rails_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' -require 'yaml' -require 'json' -require 'pry' - -RSpec.describe 'rails integration minitest' do - include SpecHelper - - describe 'yaml output' do - let(:openapi_path) do - File.expand_path('spec/rails/doc/openapi.yaml', repo_root) - end - - it 'generates the same spec/rails/doc/openapi.yaml' do - org_yaml = YAML.safe_load(File.read(openapi_path)) - minitest 'spec/integration_tests/rails_test.rb', openapi: true, output: :yaml - new_yaml = YAML.safe_load(File.read(openapi_path)) - expect(new_yaml).to eq org_yaml - end - end - - describe 'json' do - let(:openapi_path) do - File.expand_path('spec/rails/doc/openapi.json', repo_root) - end - - it 'generates the same spec/rails/doc/openapi.json' do - org_yaml = JSON.parse(File.read(openapi_path)) - minitest 'spec/integration_tests/rails_test.rb', openapi: true, output: :json - new_yaml = JSON.parse(File.read(openapi_path)) - expect(new_yaml).to eq org_yaml - end - end - - describe 'with disabled OpenAPI generation' do - it 'can run tests' do - minitest 'spec/integration_tests/rails_test.rb' - end - end -end