From 9fabfe415a161f9f971781e5128cddfe842c8d16 Mon Sep 17 00:00:00 2001 From: Chris <76159444+hunchr@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:43:55 +0100 Subject: [PATCH] Move specs --- .gitignore | 4 ++++ bin/check | 1 - spec/dummy/.gitignore | 6 ------ spec/dummy/.ruby-version | 1 - spec/dummy/Gemfile | 5 ----- spec/dummy/config/credentials.yml.enc | 1 - spec/{dummy/spec/hotsheet => lib}/configuration_spec.rb | 0 spec/{dummy/spec/hotsheet_spec.rb => lib/version_spec.rb} | 4 +++- spec/{dummy/spec => }/spec_helper.rb | 2 +- spec/{dummy/spec => }/system/pages_controller_spec.rb | 0 10 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 spec/dummy/.gitignore delete mode 100644 spec/dummy/.ruby-version delete mode 100644 spec/dummy/Gemfile delete mode 100644 spec/dummy/config/credentials.yml.enc rename spec/{dummy/spec/hotsheet => lib}/configuration_spec.rb (100%) rename spec/{dummy/spec/hotsheet_spec.rb => lib/version_spec.rb} (65%) rename spec/{dummy/spec => }/spec_helper.rb (96%) rename spec/{dummy/spec => }/system/pages_controller_spec.rb (100%) diff --git a/.gitignore b/.gitignore index 72abcd7..470369f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ /gemfiles +/spec/dummy/log +/spec/dummy/storage +/spec/dummy/tmp /Gemfile.lock +/spec/dummy/Gemfile.lock diff --git a/bin/check b/bin/check index 4dc482e..ac77cc5 100755 --- a/bin/check +++ b/bin/check @@ -1,5 +1,4 @@ #!/usr/bin/env sh set -eu -cd spec/dummy bundle exec rspec --fail-fast=3 -f documentation diff --git a/spec/dummy/.gitignore b/spec/dummy/.gitignore deleted file mode 100644 index 9de3c5a..0000000 --- a/spec/dummy/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -/log -/storage -/tmp - -/Gemfile.lock -/config/master.key diff --git a/spec/dummy/.ruby-version b/spec/dummy/.ruby-version deleted file mode 100644 index f13c6f4..0000000 --- a/spec/dummy/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -ruby-3.3.5 diff --git a/spec/dummy/Gemfile b/spec/dummy/Gemfile deleted file mode 100644 index ff2c86b..0000000 --- a/spec/dummy/Gemfile +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true - -source "https://rubygems.org" - -gem "hotsheet", path: "../.." diff --git a/spec/dummy/config/credentials.yml.enc b/spec/dummy/config/credentials.yml.enc deleted file mode 100644 index 63db618..0000000 --- a/spec/dummy/config/credentials.yml.enc +++ /dev/null @@ -1 +0,0 @@ -+wVYTD9Mnl6Rf1JAYIyIPjhvtYDkCqJgxS3m4qoYM5OBIyYARdbgMLNr5p9dQGJlBCqMxQG+3gXIzRI7qRW7kI5jtMTf8Ja0R+8S0ipWAQYvAhuTsq8xJ76zHdIfQof/KGGv4UTicznWaTgcQpJXZ9yJXWvwIJytxQnvdRqOe3pQOCIpJoZVUK2DCyiN1tr+LjTpf3g7/WZk7SRvaZGBJJTgsqm6ADlRIJySCWTQ5K4gVBPho5eb/ZE6t7MmNSYFMfR6ShsLY2ZzgNErlVsQU7wppjkZ9jlVYHOEx6quRAF0Kto8H+tFpW+2QPpxP2qsNr1JqJCQrCs7sum43f96SMZQOlpWsEsuau4Uxd7X6MdJ56hDekHyh0pPIyWE4uTYAwlr1xgq0PTeTvrr2HSIXccNlH96--bIGNUFj/mpHdLvJ2--jXkPjXlqKXctom02A9nzJw== \ No newline at end of file diff --git a/spec/dummy/spec/hotsheet/configuration_spec.rb b/spec/lib/configuration_spec.rb similarity index 100% rename from spec/dummy/spec/hotsheet/configuration_spec.rb rename to spec/lib/configuration_spec.rb diff --git a/spec/dummy/spec/hotsheet_spec.rb b/spec/lib/version_spec.rb similarity index 65% rename from spec/dummy/spec/hotsheet_spec.rb rename to spec/lib/version_spec.rb index aae6b4e..e9efc3b 100644 --- a/spec/dummy/spec/hotsheet_spec.rb +++ b/spec/lib/version_spec.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true -RSpec.describe "Hotsheet" do +require "spec_helper" + +RSpec.describe "Hotsheet::VERSION" do it "has a version number" do expect(Hotsheet::VERSION).not_to be_nil end diff --git a/spec/dummy/spec/spec_helper.rb b/spec/spec_helper.rb similarity index 96% rename from spec/dummy/spec/spec_helper.rb rename to spec/spec_helper.rb index bf67895..ed492d2 100644 --- a/spec/dummy/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,7 +2,7 @@ ENV["RAILS_ENV"] = "test" -require_relative "../config/environment" +require_relative "dummy/config/environment" require "database_cleaner-active_record" require "rspec/rails" require "selenium-webdriver" diff --git a/spec/dummy/spec/system/pages_controller_spec.rb b/spec/system/pages_controller_spec.rb similarity index 100% rename from spec/dummy/spec/system/pages_controller_spec.rb rename to spec/system/pages_controller_spec.rb