From 379d4f8aa2a7f03c854308124894b0a791124c47 Mon Sep 17 00:00:00 2001 From: "Andrew W. Lee" Date: Sat, 1 Feb 2020 00:42:19 -0800 Subject: [PATCH] Delete integration test fixtures (#746) The integration tests were removed since they were outdated and not working. These are dead files so let's remove them. #725 #744 --- spec/fixtures/20120816164927_create_tasks.rb | 9 -- spec/fixtures/database.yml | 16 ---- spec/fixtures/rails32_boot.rb | 6 -- spec/fixtures/rails32_unified_initializer.rb | 8 -- spec/fixtures/rails_328_gemfile | 24 ----- spec/fixtures/rails_328_gemfile.lock | 95 -------------------- spec/fixtures/rails_32_development.rb | 9 -- spec/fixtures/rails_32_environment.rb | 5 -- spec/fixtures/rails_32_rails | 6 -- spec/fixtures/rails_32_rakefile | 7 -- spec/fixtures/rails_32_schema.rb | 20 ----- spec/fixtures/rails_32_test.rb | 10 --- spec/fixtures/rails_32_test_helper.rb | 6 -- spec/fixtures/rails_32old_application.rb | 15 ---- spec/fixtures/rvmrc.sh | 44 --------- 15 files changed, 280 deletions(-) delete mode 100644 spec/fixtures/20120816164927_create_tasks.rb delete mode 100644 spec/fixtures/database.yml delete mode 100644 spec/fixtures/rails32_boot.rb delete mode 100644 spec/fixtures/rails32_unified_initializer.rb delete mode 100644 spec/fixtures/rails_328_gemfile delete mode 100644 spec/fixtures/rails_328_gemfile.lock delete mode 100644 spec/fixtures/rails_32_development.rb delete mode 100644 spec/fixtures/rails_32_environment.rb delete mode 100755 spec/fixtures/rails_32_rails delete mode 100644 spec/fixtures/rails_32_rakefile delete mode 100644 spec/fixtures/rails_32_schema.rb delete mode 100644 spec/fixtures/rails_32_test.rb delete mode 100644 spec/fixtures/rails_32_test_helper.rb delete mode 100644 spec/fixtures/rails_32old_application.rb delete mode 100644 spec/fixtures/rvmrc.sh diff --git a/spec/fixtures/20120816164927_create_tasks.rb b/spec/fixtures/20120816164927_create_tasks.rb deleted file mode 100644 index 89d1bb8fb..000000000 --- a/spec/fixtures/20120816164927_create_tasks.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateTasks < ActiveRecord::Migration - def change - create_table :tasks do |t| - t.string :content - - t.timestamps - end - end -end diff --git a/spec/fixtures/database.yml b/spec/fixtures/database.yml deleted file mode 100644 index fefeb4956..000000000 --- a/spec/fixtures/database.yml +++ /dev/null @@ -1,16 +0,0 @@ -# SQLite version 3.x -# gem install sqlite3 -# -# Ensure the SQLite 3 gem is defined in your Gemfile -# gem 'sqlite3' -development: - adapter: sqlite3 - database: db/development.sqlite3 - pool: 1 - timeout: 5000 - -test: - adapter: sqlite3 - database: db/test.sqlite3 - pool: 1 - timeout: 5000 diff --git a/spec/fixtures/rails32_boot.rb b/spec/fixtures/rails32_boot.rb deleted file mode 100644 index 4489e5868..000000000 --- a/spec/fixtures/rails32_boot.rb +++ /dev/null @@ -1,6 +0,0 @@ -require 'rubygems' - -# Set up gems listed in the Gemfile. -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) diff --git a/spec/fixtures/rails32_unified_initializer.rb b/spec/fixtures/rails32_unified_initializer.rb deleted file mode 100644 index 3bd8ba4e8..000000000 --- a/spec/fixtures/rails32_unified_initializer.rb +++ /dev/null @@ -1,8 +0,0 @@ -# secret_token.rb -TestApp::Application.config.secret_token = '4768b21141022d583b141fde0db7e0b31759321b7fce459963914fdd82db248ea0318d9568030dcde70d404d4e86003ce5f51a7a83c8130842e5a97062b68c3c' - -# session_store.rb -TestApp::Application.config.session_store :cookie_store, key: '_session' - -# wrap_parameters.rb -ActiveSupport.on_load(:active_record) { self.include_root_in_json = false } diff --git a/spec/fixtures/rails_328_gemfile b/spec/fixtures/rails_328_gemfile deleted file mode 100644 index 29009ccbd..000000000 --- a/spec/fixtures/rails_328_gemfile +++ /dev/null @@ -1,24 +0,0 @@ -# This file is a hybrid file meant for live debugging without going through an -# actual RSpec run, and for being used in an RSpec run. To change it, change -# template.Gemfile and run 'rake templates:rebuild' which will do so for all -# templates in all build scenarios. -# -# ALSO, be sure NOT to commit any changes that happen in app/* or config/* -# when debugging this way as that will defeat the point of the automated tests! -# -# In fact, before running RSpec again after manual testing, you should run -# 'rake integration:clober' to reset modified files to their pristine state, -# and remove cruft that may interfere with the build. -source 'https://rubygems.org' - -gem 'rails', '3.2.8' - -gem 'sqlite3' - -group :development do - if(ENV['AUTOMATED_TEST'] && ENV['AUTOMATED_TEST'] != '') - gem 'annotate', :path => ENV['AUTOMATED_TEST'] - else - gem 'annotate', :path => '../../..' - end -end diff --git a/spec/fixtures/rails_328_gemfile.lock b/spec/fixtures/rails_328_gemfile.lock deleted file mode 100644 index 5a64c02bc..000000000 --- a/spec/fixtures/rails_328_gemfile.lock +++ /dev/null @@ -1,95 +0,0 @@ -PATH - remote: ../../.. - specs: - annotate (2.5.0) - activerecord - rake - -GEM - remote: https://rubygems.org/ - specs: - actionmailer (3.2.8) - actionpack (= 3.2.8) - mail (~> 2.4.4) - actionpack (3.2.8) - activemodel (= 3.2.8) - activesupport (= 3.2.8) - builder (~> 3.0.0) - erubis (~> 2.7.0) - journey (~> 1.0.4) - rack (~> 1.4.0) - rack-cache (~> 1.2) - rack-test (~> 0.6.1) - sprockets (~> 2.1.3) - activemodel (3.2.8) - activesupport (= 3.2.8) - builder (~> 3.0.0) - activerecord (3.2.8) - activemodel (= 3.2.8) - activesupport (= 3.2.8) - arel (~> 3.0.2) - tzinfo (~> 0.3.29) - activeresource (3.2.8) - activemodel (= 3.2.8) - activesupport (= 3.2.8) - activesupport (3.2.8) - i18n (~> 0.6) - multi_json (~> 1.0) - arel (3.0.2) - builder (3.0.0) - erubis (2.7.0) - hike (1.2.1) - i18n (0.6.0) - journey (1.0.4) - json (1.7.4) - mail (2.4.4) - i18n (>= 0.4.0) - mime-types (~> 1.16) - treetop (~> 1.4.8) - mime-types (1.19) - multi_json (1.3.6) - polyglot (0.3.3) - rack (1.4.1) - rack-cache (1.2) - rack (>= 0.4) - rack-ssl (1.3.2) - rack - rack-test (0.6.1) - rack (>= 1.0) - rails (3.2.8) - actionmailer (= 3.2.8) - actionpack (= 3.2.8) - activerecord (= 3.2.8) - activeresource (= 3.2.8) - activesupport (= 3.2.8) - bundler (~> 1.0) - railties (= 3.2.8) - railties (3.2.8) - actionpack (= 3.2.8) - activesupport (= 3.2.8) - rack-ssl (~> 1.3.2) - rake (>= 0.8.7) - rdoc (~> 3.4) - thor (>= 0.14.6, < 2.0) - rake (0.9.2.2) - rdoc (3.12) - json (~> 1.4) - sprockets (2.1.3) - hike (~> 1.2) - rack (~> 1.0) - tilt (~> 1.1, != 1.3.0) - sqlite3 (1.3.6) - thor (0.16.0) - tilt (1.3.3) - treetop (1.4.10) - polyglot - polyglot (>= 0.3.1) - tzinfo (0.3.33) - -PLATFORMS - ruby - -DEPENDENCIES - annotate! - rails (= 3.2.8) - sqlite3 diff --git a/spec/fixtures/rails_32_development.rb b/spec/fixtures/rails_32_development.rb deleted file mode 100644 index f98bf7eeb..000000000 --- a/spec/fixtures/rails_32_development.rb +++ /dev/null @@ -1,9 +0,0 @@ -TestApp::Application.configure do - config.action_dispatch.best_standards_support = :builtin - config.active_record.auto_explain_threshold_in_seconds = 0.5 - config.active_record.mass_assignment_sanitizer = :strict - config.active_support.deprecation = :log - config.cache_classes = false - config.consider_all_requests_local = true - config.whiny_nils = true -end diff --git a/spec/fixtures/rails_32_environment.rb b/spec/fixtures/rails_32_environment.rb deleted file mode 100644 index f4cc1e44a..000000000 --- a/spec/fixtures/rails_32_environment.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Load the rails application -require File.expand_path('../application', __FILE__) - -# Initialize the rails application -TestApp::Application.initialize! diff --git a/spec/fixtures/rails_32_rails b/spec/fixtures/rails_32_rails deleted file mode 100755 index f8da2cffd..000000000 --- a/spec/fixtures/rails_32_rails +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env ruby -# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. - -APP_PATH = File.expand_path('../../config/application', __FILE__) -require File.expand_path('../../config/boot', __FILE__) -require 'rails/commands' diff --git a/spec/fixtures/rails_32_rakefile b/spec/fixtures/rails_32_rakefile deleted file mode 100644 index 9946cea61..000000000 --- a/spec/fixtures/rails_32_rakefile +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env rake -# Add your own tasks in files placed in lib/tasks ending in .rake, -# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. - -require File.expand_path('../config/application', __FILE__) - -TestApp::Application.load_tasks diff --git a/spec/fixtures/rails_32_schema.rb b/spec/fixtures/rails_32_schema.rb deleted file mode 100644 index 26ccdc90e..000000000 --- a/spec/fixtures/rails_32_schema.rb +++ /dev/null @@ -1,20 +0,0 @@ -# encoding: UTF-8 -# This file is auto-generated from the current state of the database. Instead -# of editing this file, please use the migrations feature of Active Record to -# incrementally modify your database, and then regenerate this schema definition. -# -# Note that this schema.rb definition is the authoritative source for your -# database schema. If you need to create the application database on another -# system, you should be using db:schema:load, not running all the migrations -# from scratch. The latter is a flawed and unsustainable approach (the more migrations -# you'll amass, the slower it'll run and the greater likelihood for issues). -# -# It's strongly recommended to check this file into your version control system. - -ActiveRecord::Schema.define(:version => 20120816164927) do - create_table "tasks", :force => true do |t| - t.string "content" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end -end diff --git a/spec/fixtures/rails_32_test.rb b/spec/fixtures/rails_32_test.rb deleted file mode 100644 index 9a7b5d702..000000000 --- a/spec/fixtures/rails_32_test.rb +++ /dev/null @@ -1,10 +0,0 @@ -TestApp::Application.configure do - config.action_dispatch.show_exceptions = false - config.active_record.mass_assignment_sanitizer = :strict - config.active_support.deprecation = :stderr - config.cache_classes = true - config.consider_all_requests_local = true - config.serve_static_assets = true - config.static_cache_control = "public, max-age=3600" - config.whiny_nils = true -end diff --git a/spec/fixtures/rails_32_test_helper.rb b/spec/fixtures/rails_32_test_helper.rb deleted file mode 100644 index 6c01e890e..000000000 --- a/spec/fixtures/rails_32_test_helper.rb +++ /dev/null @@ -1,6 +0,0 @@ -ENV["RAILS_ENV"] = "test" -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase -end diff --git a/spec/fixtures/rails_32old_application.rb b/spec/fixtures/rails_32old_application.rb deleted file mode 100644 index ca15b4366..000000000 --- a/spec/fixtures/rails_32old_application.rb +++ /dev/null @@ -1,15 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require "active_record/railtie" -require "rails/test_unit/railtie" - -if defined?(Bundler) - # If you precompile assets before deploying to production, use this line - Bundler.require(*Rails.groups(:assets => %w(development test))) -end - -module TestApp - class Application < Rails::Application - config.assets.enabled = false - end -end diff --git a/spec/fixtures/rvmrc.sh b/spec/fixtures/rvmrc.sh deleted file mode 100644 index 47d18e639..000000000 --- a/spec/fixtures/rvmrc.sh +++ /dev/null @@ -1,44 +0,0 @@ -# This file is a hybrid file meant for live debugging without going through an -# actual RSpec run, and for being used in an RSpec run. To change it, change -# template..rvmrc and run 'rake templates:rebuild' which will do so for all -# templates in all build scenarios. -# -# ALSO, be sure NOT to commit any changes that happen in app/* or config/* -# when debugging this way as that will defeat the point of the automated tests! -# -# In fact, before running RSpec again after manual testing, you should run -# 'rake integration:clober' to reset modified files to their pristine state, -# and remove cruft that may interfere with the build. -if [ "$(type rvm | head -1)" != "rvm is a function" ]; then - # First, make sure we're not in 'sh' mode (I.E. strict-superset-of-Bourne - # mode), as RVM doesn't like this... - shopt -u -o posix - # Now, load RVM... - source $HOME/.rvm/scripts/rvm -fi - -# Now, switch to our preferred Ruby and gemset... -GEMSET=annotate_test_$(basename $(pwd) | perl -pse 's/\.//g') -rvm use --create ${rvm_ruby_string}@${GEMSET} - -# Early-out when we just want to wipe the gemsets clean... -if [ "$SKIP_BUNDLER" != "1" ]; then - # ... and make sure everything's up-to-date, that it'll use the right Gemfile, - # etc. - if [ $(which bundle) == "" ]; then - gem install bundler - fi - export BUNDLE_GEMFILE=./Gemfile - # The apparently superfluous --gemfile param is to work around some stupidness - # in Bundler. Specifically it gets very confused about BUNDLE_GEMFILE not - # pointing at an absolute path. - # - # The special-case handling of bin being empty is to support debug workflows - # where the gemset will in fact already be set up, but the binstubs get nuked. - mkdir -p bin - if [ $(($(ls bin | wc -l) + 0)) -eq 0 ]; then - bundle install --binstubs=bin --gemfile ./Gemfile - else - bundle check || bundle install --binstubs=bin --gemfile ./Gemfile - fi -fi