-
-<%= link_to 'Edit', edit_note_path(@note) %> |
-<%= link_to 'Back', notes_path %>
diff --git a/spec/dummy4/app/views/notes/show.json.jbuilder b/spec/dummy4/app/views/notes/show.json.jbuilder
deleted file mode 100644
index 85668e3d..00000000
--- a/spec/dummy4/app/views/notes/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @note, :id, :body, :created_at, :updated_at
diff --git a/spec/dummy4/bower.json b/spec/dummy4/bower.json
deleted file mode 100644
index 248ee3b3..00000000
--- a/spec/dummy4/bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "dummy4",
- "version": "1.2.6",
- "homepage": "https://github.com/assembler/attachinary",
- "authors": [
- "Amir Tocker "
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "tests"
- ],
- "dependencies": {
- "jquery": ">=1.6",
- "blueimp-file-upload": ">=7.2.1"
- }
-}
diff --git a/spec/dummy4/config.ru b/spec/dummy4/config.ru
deleted file mode 100644
index bd83b254..00000000
--- a/spec/dummy4/config.ru
+++ /dev/null
@@ -1,4 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require ::File.expand_path('../config/environment', __FILE__)
-run Rails.application
diff --git a/spec/dummy4/config/application.rb b/spec/dummy4/config/application.rb
deleted file mode 100644
index 4f24558d..00000000
--- a/spec/dummy4/config/application.rb
+++ /dev/null
@@ -1,51 +0,0 @@
-require File.expand_path('../boot', __FILE__)
-
-require 'rails/all'
-
-# Require the gems listed in Gemfile, including any gems
-# you've limited to :test, :development, or :production.
-Bundler.require(*Rails.groups, ATTACHINARY_ORM)
-begin
- require "#{ATTACHINARY_ORM}/railtie"
-rescue LoadError
-end
-
-require "attachinary"
-
-module Dummy4
- class Application < Rails::Application
- # Settings in config/environments/* take precedence over those specified here.
- # Application configuration should go into files in config/initializers
- # -- all .rb files in that directory are automatically loaded.
-
- # Custom directories with classes and modules you want to be autoloadable.
- # config.autoload_paths += %W(#{config.root}/extras)
- config.autoload_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers views).include?($1) }
- config.autoload_paths += [ "#{config.root}/app/#{ATTACHINARY_ORM}" ]
-
- # Only load the plugins named here, in the order given (default is alphabetical).
- # :all can be used as a placeholder for all plugins not explicitly named.
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
-
- # Activate observers that should always be running.
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
-
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
- # config.time_zone = 'Central Time (US & Canada)'
-
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
- # config.i18n.default_locale = :de
-
- # Do not swallow errors in after_commit/after_rollback callbacks.
- config.active_record.raise_in_transactional_callbacks = true
-
- config.assets.paths << Rails.root.join('vendor', 'assets', 'components')
- if ATTACHINARY_ORM == 'mongoid'
- config.generators do |g|
- g.orm :mongoid
- end
- end
- end
-end
diff --git a/spec/dummy4/config/boot.rb b/spec/dummy4/config/boot.rb
deleted file mode 100644
index f6162e6d..00000000
--- a/spec/dummy4/config/boot.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-unless defined?(ATTACHINARY_ORM)
- ATTACHINARY_ORM = (ENV["ATTACHINARY_ORM"] || :active_record).to_sym
-end
-
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-
-require 'bundler/setup' # Set up gems listed in the Gemfile.
diff --git a/spec/dummy4/config/database.yml b/spec/dummy4/config/database.yml
deleted file mode 100644
index 1c1a37ca..00000000
--- a/spec/dummy4/config/database.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-# SQLite version 3.x
-# gem install sqlite3
-#
-# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem 'sqlite3'
-#
-default: &default
- adapter: sqlite3
- pool: 5
- timeout: 5000
-
-development:
- <<: *default
- database: db/development.sqlite3
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- <<: *default
- database: db/test.sqlite3
-
-production:
- <<: *default
- database: db/production.sqlite3
diff --git a/spec/dummy4/config/environment.rb b/spec/dummy4/config/environment.rb
deleted file mode 100644
index ee8d90dc..00000000
--- a/spec/dummy4/config/environment.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# Load the Rails application.
-require File.expand_path('../application', __FILE__)
-
-# Initialize the Rails application.
-Rails.application.initialize!
diff --git a/spec/dummy4/config/environments/development.rb b/spec/dummy4/config/environments/development.rb
deleted file mode 100644
index b55e2144..00000000
--- a/spec/dummy4/config/environments/development.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # In the development environment your application's code is reloaded on
- # every request. This slows down response time but is perfect for development
- # since you don't have to restart the web server when you make code changes.
- config.cache_classes = false
-
- # Do not eager load code on boot.
- config.eager_load = false
-
- # Show full error reports and disable caching.
- config.consider_all_requests_local = true
- config.action_controller.perform_caching = false
-
- # Don't care if the mailer can't send.
- config.action_mailer.raise_delivery_errors = false
-
- # Print deprecation notices to the Rails logger.
- config.active_support.deprecation = :log
-
- # Raise an error on page load if there are pending migrations.
- config.active_record.migration_error = :page_load
-
- # Debug mode disables concatenation and preprocessing of assets.
- # This option may cause significant delays in view rendering with a large
- # number of complex assets.
- config.assets.debug = true
-
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
- # yet still be able to expire them through the digest params.
- config.assets.digest = true
-
- # Adds additional error checking when serving assets at runtime.
- # Checks for improperly declared sprockets dependencies.
- # Raises helpful error messages.
- config.assets.raise_runtime_errors = true
-
- # Raises error for missing translations
- # config.action_view.raise_on_missing_translations = true
-end
diff --git a/spec/dummy4/config/environments/production.rb b/spec/dummy4/config/environments/production.rb
deleted file mode 100644
index 5c1b32e4..00000000
--- a/spec/dummy4/config/environments/production.rb
+++ /dev/null
@@ -1,79 +0,0 @@
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # Code is not reloaded between requests.
- config.cache_classes = true
-
- # Eager load code on boot. This eager loads most of Rails and
- # your application in memory, allowing both threaded web servers
- # and those relying on copy on write to perform better.
- # Rake tasks automatically ignore this option for performance.
- config.eager_load = true
-
- # Full error reports are disabled and caching is turned on.
- config.consider_all_requests_local = false
- config.action_controller.perform_caching = true
-
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
- # Add `rack-cache` to your Gemfile before enabling this.
- # For large-scale production use, consider using a caching reverse proxy like
- # NGINX, varnish or squid.
- # config.action_dispatch.rack_cache = true
-
- # Disable serving static files from the `/public` folder by default since
- # Apache or NGINX already handles this.
- config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
-
- # Compress JavaScripts and CSS.
- config.assets.js_compressor = :uglifier
- # config.assets.css_compressor = :sass
-
- # Do not fallback to assets pipeline if a precompiled asset is missed.
- config.assets.compile = false
-
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
- # yet still be able to expire them through the digest params.
- config.assets.digest = true
-
- # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
-
- # Specifies the header that your server uses for sending files.
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
-
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- # config.force_ssl = true
-
- # Use the lowest log level to ensure availability of diagnostic information
- # when problems arise.
- config.log_level = :debug
-
- # Prepend all log lines with the following tags.
- # config.log_tags = [ :subdomain, :uuid ]
-
- # Use a different logger for distributed setups.
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
-
- # Use a different cache store in production.
- # config.cache_store = :mem_cache_store
-
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
- # config.action_controller.asset_host = 'http://assets.example.com'
-
- # Ignore bad email addresses and do not raise email delivery errors.
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
- # config.action_mailer.raise_delivery_errors = false
-
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
- # the I18n.default_locale when a translation cannot be found).
- config.i18n.fallbacks = true
-
- # Send deprecation notices to registered listeners.
- config.active_support.deprecation = :notify
-
- # Use default logging formatter so that PID and timestamp are not suppressed.
- config.log_formatter = ::Logger::Formatter.new
-
- # Do not dump schema after migrations.
- config.active_record.dump_schema_after_migration = false
-end
diff --git a/spec/dummy4/config/environments/test.rb b/spec/dummy4/config/environments/test.rb
deleted file mode 100644
index 1c19f08b..00000000
--- a/spec/dummy4/config/environments/test.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-Rails.application.configure do
- # Settings specified here will take precedence over those in config/application.rb.
-
- # The test environment is used exclusively to run your application's
- # test suite. You never need to work with it otherwise. Remember that
- # your test database is "scratch space" for the test suite and is wiped
- # and recreated between test runs. Don't rely on the data there!
- config.cache_classes = true
-
- # Do not eager load code on boot. This avoids loading your whole application
- # just for the purpose of running a single test. If you are using a tool that
- # preloads Rails for running tests, you may have to set it to true.
- config.eager_load = false
-
- # Configure static file server for tests with Cache-Control for performance.
- config.serve_static_files = true
- config.static_cache_control = 'public, max-age=3600'
-
- # Show full error reports and disable caching.
- config.consider_all_requests_local = true
- config.action_controller.perform_caching = false
-
- # Raise exceptions instead of rendering exception templates.
- config.action_dispatch.show_exceptions = false
-
- # Disable request forgery protection in test environment.
- config.action_controller.allow_forgery_protection = false
-
- # Tell Action Mailer not to deliver emails to the real world.
- # The :test delivery method accumulates sent emails in the
- # ActionMailer::Base.deliveries array.
- config.action_mailer.delivery_method = :test
-
- # Randomize the order test cases are executed.
- config.active_support.test_order = :random
-
- # Print deprecation notices to the stderr.
- config.active_support.deprecation = :stderr
-
- # Raises error for missing translations
- # config.action_view.raise_on_missing_translations = true
-end
diff --git a/spec/dummy4/config/initializers/assets.rb b/spec/dummy4/config/initializers/assets.rb
deleted file mode 100644
index 01ef3e66..00000000
--- a/spec/dummy4/config/initializers/assets.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Version of your assets, change this if you want to expire all your assets.
-Rails.application.config.assets.version = '1.0'
-
-# Add additional assets to the asset load path
-# Rails.application.config.assets.paths << Emoji.images_path
-
-# Precompile additional assets.
-# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
-# Rails.application.config.assets.precompile += %w( search.js )
diff --git a/spec/dummy4/config/initializers/attachinary.rb b/spec/dummy4/config/initializers/attachinary.rb
deleted file mode 100644
index 3cbe0cf0..00000000
--- a/spec/dummy4/config/initializers/attachinary.rb
+++ /dev/null
@@ -1 +0,0 @@
-require "attachinary/orm/#{ATTACHINARY_ORM}"
diff --git a/spec/dummy4/config/initializers/backtrace_silencers.rb b/spec/dummy4/config/initializers/backtrace_silencers.rb
deleted file mode 100644
index 59385cdf..00000000
--- a/spec/dummy4/config/initializers/backtrace_silencers.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
diff --git a/spec/dummy4/config/initializers/cookies_serializer.rb b/spec/dummy4/config/initializers/cookies_serializer.rb
deleted file mode 100644
index 7f70458d..00000000
--- a/spec/dummy4/config/initializers/cookies_serializer.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails.application.config.action_dispatch.cookies_serializer = :json
diff --git a/spec/dummy4/config/initializers/filter_parameter_logging.rb b/spec/dummy4/config/initializers/filter_parameter_logging.rb
deleted file mode 100644
index 4a994e1e..00000000
--- a/spec/dummy4/config/initializers/filter_parameter_logging.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Configure sensitive parameters which will be filtered from the log file.
-Rails.application.config.filter_parameters += [:password]
diff --git a/spec/dummy4/config/initializers/inflections.rb b/spec/dummy4/config/initializers/inflections.rb
deleted file mode 100644
index ac033bf9..00000000
--- a/spec/dummy4/config/initializers/inflections.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format. Inflections
-# are locale specific, and you may define rules for as many different
-# locales as you wish. All of these examples are active by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
-
-# These inflection rules are supported but not enabled by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.acronym 'RESTful'
-# end
diff --git a/spec/dummy4/config/initializers/mime_types.rb b/spec/dummy4/config/initializers/mime_types.rb
deleted file mode 100644
index dc189968..00000000
--- a/spec/dummy4/config/initializers/mime_types.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
diff --git a/spec/dummy4/config/initializers/session_store.rb b/spec/dummy4/config/initializers/session_store.rb
deleted file mode 100644
index 6822d5e1..00000000
--- a/spec/dummy4/config/initializers/session_store.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails.application.config.session_store :cookie_store, key: '_dummy4_session'
diff --git a/spec/dummy4/config/initializers/wrap_parameters.rb b/spec/dummy4/config/initializers/wrap_parameters.rb
deleted file mode 100644
index 33725e95..00000000
--- a/spec/dummy4/config/initializers/wrap_parameters.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# This file contains settings for ActionController::ParamsWrapper which
-# is enabled by default.
-
-# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
-ActiveSupport.on_load(:action_controller) do
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
-end
-
-# To enable root element in JSON for ActiveRecord objects.
-# ActiveSupport.on_load(:active_record) do
-# self.include_root_in_json = true
-# end
diff --git a/spec/dummy4/config/locales/en.yml b/spec/dummy4/config/locales/en.yml
deleted file mode 100644
index 06539571..00000000
--- a/spec/dummy4/config/locales/en.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-# Files in the config/locales directory are used for internationalization
-# and are automatically loaded by Rails. If you want to use locales other
-# than English, add the necessary files in this directory.
-#
-# To use the locales, use `I18n.t`:
-#
-# I18n.t 'hello'
-#
-# In views, this is aliased to just `t`:
-#
-# <%= t('hello') %>
-#
-# To use a different locale, set it with `I18n.locale`:
-#
-# I18n.locale = :es
-#
-# This would use the information in config/locales/es.yml.
-#
-# To learn more, please read the Rails Internationalization guide
-# available at http://guides.rubyonrails.org/i18n.html.
-
-en:
- hello: "Hello world"
diff --git a/spec/dummy4/config/mongoid.yml b/spec/dummy4/config/mongoid.yml
deleted file mode 100644
index 52c373b6..00000000
--- a/spec/dummy4/config/mongoid.yml
+++ /dev/null
@@ -1,135 +0,0 @@
-development:
- # Configure available database clients. (required)
- clients:
- # Defines the default client. (required)
- default:
- # Defines the name of the default database that Mongoid can connect to.
- # (required).
- database: dummy4_development
- # Provides the hosts the default client can connect to. Must be an array
- # of host:port pairs. (required)
- hosts:
- - localhost:27017
- options:
- # Change the default write concern. (default = { w: 1 })
- # write:
- # w: 1
-
- # Change the default read preference. Valid options for mode are: :secondary,
- # :secondary_preferred, :primary, :primary_preferred, :nearest
- # (default: primary)
- # read:
- # mode: :secondary_preferred
-
- # The name of the user for authentication.
- # user: 'user'
-
- # The password of the user for authentication.
- # password: 'password'
-
- # The user's database roles.
- # roles:
- # - 'dbOwner'
-
- # Change the default authentication mechanism. Valid options are: :scram,
- # :mongodb_cr, :mongodb_x509, and :plain. (default on 3.0 is :scram, default
- # on 2.4 and 2.6 is :plain)
- # auth_mech: :scram
-
- # The database or source to authenticate the user against. (default: admin)
- # auth_source: admin
-
- # Force a the driver cluster to behave in a certain manner instead of auto-
- # discovering. Can be one of: :direct, :replica_set, :sharded. Set to :direct
- # when connecting to hidden members of a replica set.
- # connect: :direct
-
- # Changes the default time in seconds the server monitors refresh their status
- # via ismaster commands. (default: 10)
- # heartbeat_frequency: 10
-
- # The time in seconds for selecting servers for a near read preference. (default: 5)
- # local_threshold: 5
-
- # The timeout in seconds for selecting a server for an operation. (default: 30)
- # server_selection_timeout: 30
-
- # The maximum number of connections in the connection pool. (default: 5)
- # max_pool_size: 5
-
- # The minimum number of connections in the connection pool. (default: 1)
- # min_pool_size: 1
-
- # The time to wait, in seconds, in the connection pool for a connection
- # to be checked in before timing out. (default: 5)
- # wait_queue_timeout: 5
-
- # The time to wait to establish a connection before timing out, in seconds.
- # (default: 5)
- # connect_timeout: 5
-
- # The timeout to wait to execute operations on a socket before raising an error.
- # (default: 5)
- # socket_timeout: 5
-
- # The name of the replica set to connect to. Servers provided as seeds that do
- # not belong to this replica set will be ignored.
- # replica_set: name
-
- # Whether to connect to the servers via ssl. (default: false)
- # ssl: true
-
- # The certificate file used to identify the connection against MongoDB.
- # ssl_cert: /path/to/my.cert
-
- # The private keyfile used to identify the connection against MongoDB.
- # Note that even if the key is stored in the same file as the certificate,
- # both need to be explicitly specified.
- # ssl_key: /path/to/my.key
-
- # A passphrase for the private key.
- # ssl_key_pass_phrase: password
-
- # Whether or not to do peer certification validation. (default: false)
- # ssl_verify: true
-
- # The file containing a set of concatenated certification authority certifications
- # used to validate certs passed from the other end of the connection.
- # ssl_ca_cert: /path/to/ca.cert
-
-
- # Configure Mongoid specific options. (optional)
- options:
- # Includes the root model name in json serialization. (default: false)
- # include_root_in_json: false
-
- # Include the _type field in serialization. (default: false)
- # include_type_for_serialization: false
-
- # Preload all models in development, needed when models use
- # inheritance. (default: false)
- # preload_models: false
-
- # Raise an error when performing a #find and the document is not found.
- # (default: true)
- # raise_not_found_error: true
-
- # Raise an error when defining a scope with the same name as an
- # existing method. (default: false)
- # scope_overwrite_exception: false
-
- # Use Active Support's time zone in conversions. (default: true)
- # use_activesupport_time_zone: true
-
- # Ensure all times are UTC in the app side. (default: false)
- # use_utc: false
-test:
- clients:
- default:
- database: dummy4_test
- hosts:
- - localhost:27017
- options:
-# read:
-# mode: primary
- max_pool_size: 1
diff --git a/spec/dummy4/config/routes.rb b/spec/dummy4/config/routes.rb
deleted file mode 100644
index a52ead51..00000000
--- a/spec/dummy4/config/routes.rb
+++ /dev/null
@@ -1,60 +0,0 @@
-Rails.application.routes.draw do
- mount Attachinary::Engine => "/attachinary"
- resources :notes
- root to: 'notes#index'
-
- # The priority is based upon order of creation: first created -> highest priority.
- # See how all your routes lay out with "rake routes".
-
- # You can have the root of your site routed with "root"
- # root 'welcome#index'
-
- # Example of regular route:
- # get 'products/:id' => 'catalog#view'
-
- # Example of named route that can be invoked with purchase_url(id: product.id)
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
-
- # Example resource route (maps HTTP verbs to controller actions automatically):
- # resources :products
-
- # Example resource route with options:
- # resources :products do
- # member do
- # get 'short'
- # post 'toggle'
- # end
- #
- # collection do
- # get 'sold'
- # end
- # end
-
- # Example resource route with sub-resources:
- # resources :products do
- # resources :comments, :sales
- # resource :seller
- # end
-
- # Example resource route with more complex sub-resources:
- # resources :products do
- # resources :comments
- # resources :sales do
- # get 'recent', on: :collection
- # end
- # end
-
- # Example resource route with concerns:
- # concern :toggleable do
- # post 'toggle'
- # end
- # resources :posts, concerns: :toggleable
- # resources :photos, concerns: :toggleable
-
- # Example resource route within a namespace:
- # namespace :admin do
- # # Directs /admin/products/* to Admin::ProductsController
- # # (app/controllers/admin/products_controller.rb)
- # resources :products
- # end
-end
diff --git a/spec/dummy4/config/secrets.yml b/spec/dummy4/config/secrets.yml
deleted file mode 100644
index 1a070b31..00000000
--- a/spec/dummy4/config/secrets.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Your secret key is used for verifying the integrity of signed cookies.
-# If you change this key, all old signed cookies will become invalid!
-
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-# You can use `rake secret` to generate a secure secret key.
-
-# Make sure the secrets in this file are kept private
-# if you're sharing your code publicly.
-
-development:
- secret_key_base: b9534cf1d6b32c759212373d798dde4714e4c97d262bace0935c14607666195cf1f0e5ae10307db809cbebec9cffd9ac15125d4cb265032c48cc9731385319a9
-
-test:
- secret_key_base: d0c21d62451e9aed42658bbaa07bbac349ea37eab8fc5903490fcdffc141d1dac7941827baefde403481920c6b4f01d040d67b30b7f208c501a80fa22fb459d5
-
-# Do not keep production secrets in the repository,
-# instead read values from the environment.
-production:
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
diff --git a/spec/dummy4/db/seeds.rb b/spec/dummy4/db/seeds.rb
deleted file mode 100644
index 4edb1e85..00000000
--- a/spec/dummy4/db/seeds.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
-#
-# Examples:
-#
-# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
-# Mayor.create(name: 'Emanuel', city: cities.first)
diff --git a/spec/dummy4/lib/assets/.keep b/spec/dummy4/lib/assets/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/lib/tasks/.keep b/spec/dummy4/lib/tasks/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/log/.keep b/spec/dummy4/log/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/public/404.html b/spec/dummy4/public/404.html
deleted file mode 100644
index b612547f..00000000
--- a/spec/dummy4/public/404.html
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- The page you were looking for doesn't exist (404)
-
-
-
-
-
-
-
-
-
The page you were looking for doesn't exist.
-
You may have mistyped the address or the page may have moved.
-
-
If you are the application owner check the logs for more information.
-
-
-
diff --git a/spec/dummy4/public/422.html b/spec/dummy4/public/422.html
deleted file mode 100644
index a21f82b3..00000000
--- a/spec/dummy4/public/422.html
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
- The change you wanted was rejected (422)
-
-
-
-
-
-
-
-
-
The change you wanted was rejected.
-
Maybe you tried to change something you didn't have access to.
-
-
If you are the application owner check the logs for more information.
If you are the application owner check the logs for more information.
-
-
-
diff --git a/spec/dummy4/public/favicon.ico b/spec/dummy4/public/favicon.ico
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/public/robots.txt b/spec/dummy4/public/robots.txt
deleted file mode 100644
index 3c9c7c01..00000000
--- a/spec/dummy4/public/robots.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
-#
-# To ban all spiders from the entire site uncomment the next two lines:
-# User-agent: *
-# Disallow: /
diff --git a/spec/dummy4/spec/rails_helper.rb b/spec/dummy4/spec/rails_helper.rb
deleted file mode 100644
index cfc75d18..00000000
--- a/spec/dummy4/spec/rails_helper.rb
+++ /dev/null
@@ -1,53 +0,0 @@
-# This file is copied to spec/ when you run 'rails generate rspec:install'
-ENV['RAILS_ENV'] ||= 'test'
-require File.expand_path('../../config/environment', __FILE__)
-# Prevent database truncation if the environment is production
-abort("The Rails environment is running in production mode!") if Rails.env.production?
-require 'spec_helper'
-require 'rspec/rails'
-# Add additional requires below this line. Rails is not loaded until this point!
-
-# Requires supporting ruby files with custom matchers and macros, etc, in
-# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
-# run as spec files by default. This means that files in spec/support that end
-# in _spec.rb will both be required and run as specs, causing the specs to be
-# run twice. It is recommended that you do not name files matching this glob to
-# end with _spec.rb. You can configure this pattern with the --pattern
-# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
-#
-# The following line is provided for convenience purposes. It has the downside
-# of increasing the boot-up time by auto-requiring all files in the support
-# directory. Alternatively, in the individual `*_spec.rb` files, manually
-# require only the support files necessary.
-#
-# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
-
-# Checks for pending migrations before tests are run.
-# If you are not using ActiveRecord, you can remove this line.
-ActiveRecord::Migration.maintain_test_schema!
-
-RSpec.configure do |config|
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
-
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
- # examples within a transaction, remove the following line or assign false
- # instead of true.
- config.use_transactional_fixtures = true
-
- # RSpec Rails can automatically mix in different behaviours to your tests
- # based on their file location, for example enabling you to call `get` and
- # `post` in specs under `spec/controllers`.
- #
- # You can disable this behaviour by removing the line below, and instead
- # explicitly tag your specs with their type, e.g.:
- #
- # RSpec.describe UsersController, :type => :controller do
- # # ...
- # end
- #
- # The different available types are documented in the features, such as in
- # https://relishapp.com/rspec/rspec-rails/docs
- config.infer_spec_type_from_file_location!
-end
-require '../spec_helper.rb'
\ No newline at end of file
diff --git a/spec/dummy4/spec/spec_helper.rb b/spec/dummy4/spec/spec_helper.rb
deleted file mode 100644
index 913e28a6..00000000
--- a/spec/dummy4/spec/spec_helper.rb
+++ /dev/null
@@ -1,92 +0,0 @@
-# This file was generated by the `rails generate rspec:install` command. Conventionally, all
-# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
-# The generated `.rspec` file contains `--require spec_helper` which will cause
-# this file to always be loaded, without a need to explicitly require it in any
-# files.
-#
-# Given that it is always loaded, you are encouraged to keep this file as
-# light-weight as possible. Requiring heavyweight dependencies from this file
-# will add to the boot time of your test suite on EVERY test run, even for an
-# individual file that may not need all of that loaded. Instead, consider making
-# a separate helper file that requires the additional dependencies and performs
-# the additional setup, and require it from the spec files that actually need
-# it.
-#
-# The `.rspec` file also contains a few flags that are not defaults but that
-# users commonly want.
-#
-# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
-RSpec.configure do |config|
- # rspec-expectations config goes here. You can use an alternate
- # assertion/expectation library such as wrong or the stdlib/minitest
- # assertions if you prefer.
- config.expect_with :rspec do |expectations|
- # This option will default to `true` in RSpec 4. It makes the `description`
- # and `failure_message` of custom matchers include text for helper methods
- # defined using `chain`, e.g.:
- # be_bigger_than(2).and_smaller_than(4).description
- # # => "be bigger than 2 and smaller than 4"
- # ...rather than:
- # # => "be bigger than 2"
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
- end
-
- # rspec-mocks config goes here. You can use an alternate test double
- # library (such as bogus or mocha) by changing the `mock_with` option here.
- config.mock_with :rspec do |mocks|
- # Prevents you from mocking or stubbing a method that does not exist on
- # a real object. This is generally recommended, and will default to
- # `true` in RSpec 4.
- mocks.verify_partial_doubles = true
- end
-
-# The settings below are suggested to provide a good initial experience
-# with RSpec, but feel free to customize to your heart's content.
-=begin
- # These two settings work together to allow you to limit a spec run
- # to individual examples or groups you care about by tagging them with
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
- # get run.
- config.filter_run :focus
- config.run_all_when_everything_filtered = true
-
- # Allows RSpec to persist some state between runs in order to support
- # the `--only-failures` and `--next-failure` CLI options. We recommend
- # you configure your source control system to ignore this file.
- config.example_status_persistence_file_path = "spec/examples.txt"
-
- # Limits the available syntax to the non-monkey patched syntax that is
- # recommended. For more details, see:
- # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
- # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
- # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
- config.disable_monkey_patching!
-
- # Many RSpec users commonly either run the entire suite or an individual
- # file, and it's useful to allow more verbose output when running an
- # individual spec file.
- if config.files_to_run.one?
- # Use the documentation formatter for detailed output,
- # unless a formatter has already been configured
- # (e.g. via a command-line flag).
- config.default_formatter = 'doc'
- end
-
- # Print the 10 slowest examples and example groups at the
- # end of the spec run, to help surface which specs are running
- # particularly slow.
- config.profile_examples = 10
-
- # Run specs in random order to surface order dependencies. If you find an
- # order dependency and want to debug it, you can fix the order by providing
- # the seed, which is printed after each run.
- # --seed 1234
- config.order = :random
-
- # Seed global randomization in this process using the `--seed` CLI option.
- # Setting this allows you to use `--seed` to deterministically reproduce
- # test failures related to randomization by passing the same `--seed` value
- # as the one that triggered the failure.
- Kernel.srand config.seed
-=end
-end
diff --git a/spec/dummy4/test/controllers/.keep b/spec/dummy4/test/controllers/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/test/controllers/notes_controller_test.rb b/spec/dummy4/test/controllers/notes_controller_test.rb
deleted file mode 100644
index 76db60fc..00000000
--- a/spec/dummy4/test/controllers/notes_controller_test.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-require 'test_helper'
-
-class NotesControllerTest < ActionController::TestCase
- setup do
- @note = notes(:one)
- end
-
- test "should get index" do
- get :index
- assert_response :success
- assert_not_nil assigns(:notes)
- end
-
- test "should get new" do
- get :new
- assert_response :success
- end
-
- test "should create note" do
- assert_difference('Note.count') do
- post :create, note: { body: @note.body }
- end
-
- assert_redirected_to note_path(assigns(:note))
- end
-
- test "should show note" do
- get :show, id: @note
- assert_response :success
- end
-
- test "should get edit" do
- get :edit, id: @note
- assert_response :success
- end
-
- test "should update note" do
- patch :update, id: @note, note: { body: @note.body }
- assert_redirected_to note_path(assigns(:note))
- end
-
- test "should destroy note" do
- assert_difference('Note.count', -1) do
- delete :destroy, id: @note
- end
-
- assert_redirected_to notes_path
- end
-end
diff --git a/spec/dummy4/test/fixtures/.keep b/spec/dummy4/test/fixtures/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/test/fixtures/notes.yml b/spec/dummy4/test/fixtures/notes.yml
deleted file mode 100644
index 5bbe4159..00000000
--- a/spec/dummy4/test/fixtures/notes.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
-
-one:
- body: MyString
-
-two:
- body: MyString
diff --git a/spec/dummy4/test/helpers/.keep b/spec/dummy4/test/helpers/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/test/integration/.keep b/spec/dummy4/test/integration/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/test/mailers/.keep b/spec/dummy4/test/mailers/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/test/models/.keep b/spec/dummy4/test/models/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/test/models/note_test.rb b/spec/dummy4/test/models/note_test.rb
deleted file mode 100644
index 7bbab537..00000000
--- a/spec/dummy4/test/models/note_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class NoteTest < ActiveSupport::TestCase
- # test "the truth" do
- # assert true
- # end
-end
diff --git a/spec/dummy4/test/test_helper.rb b/spec/dummy4/test/test_helper.rb
deleted file mode 100644
index 92e39b2d..00000000
--- a/spec/dummy4/test/test_helper.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-ENV['RAILS_ENV'] ||= 'test'
-require File.expand_path('../../config/environment', __FILE__)
-require 'rails/test_help'
-
-class ActiveSupport::TestCase
- # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
- fixtures :all
-
- # Add more helper methods to be used by all tests here...
-end
diff --git a/spec/dummy4/vendor/assets/javascripts/.keep b/spec/dummy4/vendor/assets/javascripts/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/dummy4/vendor/assets/stylesheets/.keep b/spec/dummy4/vendor/assets/stylesheets/.keep
deleted file mode 100644
index e69de29b..00000000
diff --git a/spec/factories.rb b/spec/factories.rb
index f827c670..6cade2e5 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -1,19 +1,17 @@
-FactoryGirl.define do
-
+FactoryBot.define do
factory :note do
sequence(:body) { |n| "Note ##{n}"}
after(:build) do |note|
- note.photo ||= FactoryGirl.build(:file)
+ note.photo ||= FactoryBot.build(:file)
end
end
factory :file, class: Attachinary::File do
sequence(:public_id) { |n| "id#{n}"}
sequence(:version) { |n| "#{n}"}
- width 800
- height 600
- format 'jpg'
- resource_type 'image'
+ width { 800 }
+ height { 600 }
+ format { 'jpg' }
+ resource_type { 'image' }
end
-
end
diff --git a/spec/features/notes_spec.rb b/spec/features/notes_spec.rb
index 3574832c..b158d1b4 100644
--- a/spec/features/notes_spec.rb
+++ b/spec/features/notes_spec.rb
@@ -1,7 +1,7 @@
-require 'rails_helper'
+require 'spec_helper'
-describe 'Notes' do
- Capybara.default_wait_time = 15
+describe 'Notes', type: :feature do
+ Capybara.default_max_wait_time = 15
describe 'Creating new note' do
@@ -21,7 +21,7 @@
it 'disables input when first photo is uploaded', :js => true do
within 'div.photo' do
attach_file "note[photo]", "#{SPEC_ROOT}/support/A.gif"
- page.should have_css 'input[disabled]'
+ expect(page).to have_css 'input[disabled]'
end
end
@@ -30,35 +30,34 @@
attach_file "note[images][]", "#{SPEC_ROOT}/support/A.gif"
value = find(:xpath, './/input[@name="note[images][]" and @type="hidden" and contains(@value, \'"A"\')]', :visible => false).value
images = ActiveSupport::JSON.decode( value)
- images.length.should be 1
- images.map{|i| i["original_filename"]}.should eq ["A"]
-
+ expect(images.length).to be 1
+ expect(images.map{|i| i["original_filename"]}).to eq ["A"]
attach_file "note[images][]", "#{SPEC_ROOT}/support/B.gif"
value = find(:xpath, './/input[@name="note[images][]" and @type="hidden" and contains(@value, \'"B"\')]', :visible => false).value
images = ActiveSupport::JSON.decode( value)
- images.length.should be 2
- images.map{|i| i["original_filename"]}.sort.should eq ["A", "B"]
+ expect(images.length).to be 2
+ expect(images.map{|i| i["original_filename"]}.sort).to eq ["A", "B"]
end
end
it 'preserves uploaded photo across postbacks', :js => true do
within 'div.photo' do
attach_file "note[photo]", "#{SPEC_ROOT}/support/A.gif"
- page.should have_css 'img'
+ expect(page).to have_css 'img'
end
- page.should have_button 'Create Note' # wait for it to appear
+ expect(page).to have_button 'Create Note' # wait for it to appear
click_button 'Create Note'
within 'div.photo' do
- page.should have_css 'img'
+ expect(page).to have_css 'img'
end
end
it 'validates presence of photo', :js => true do
click_button 'Create Note'
within 'div.photo' do
- page.should have_content "can't be blank"
+ expect(page).to have_content "can't be blank"
end
end
@@ -69,9 +68,9 @@
end
click_button 'Create Note'
- current_path.should == notes_path
- page.should have_content 'My Note'
- page.should have_css 'img'
+ expect(page).to have_current_path notes_path
+ expect(page).to have_content 'My Note'
+ expect(page).to have_css 'img'
end
end
diff --git a/spec/models/attachinary/file_spec.rb b/spec/models/attachinary/file_spec.rb
index 0c76c00c..f1f448f3 100644
--- a/spec/models/attachinary/file_spec.rb
+++ b/spec/models/attachinary/file_spec.rb
@@ -15,9 +15,9 @@
subject { build(:file, public_id: 'id', version: '1', format: 'jpg', resource_type: 'image') }
it 'allows you to pick format' do
- subject.path.should == 'v1/id.jpg'
- subject.path('png').should == 'v1/id.png'
- subject.path(false).should == 'v1/id'
+ expect(subject.path).to eq 'v1/id.jpg'
+ expect(subject.path('png')).to eq 'v1/id.png'
+ expect(subject.path(false)).to eq 'v1/id'
end
end
@@ -25,19 +25,19 @@
subject { build(:file, public_id: 'id.txt', version: '1', format: '', resource_type: 'raw') }
it 'ignores the format' do
- subject.path.should == 'v1/id.txt'
- subject.path('png').should == 'v1/id.txt'
- subject.path(false).should == 'v1/id.txt'
+ expect(subject.path).to eq 'v1/id.txt'
+ expect(subject.path('png')).to eq 'v1/id.txt'
+ expect(subject.path(false)).to eq 'v1/id.txt'
end
end
end
describe '#fullpath(options={})' do
it 'delegates to Cloudinary' do
- Cloudinary::Utils.stub(:cloudinary_url).with('v1/id1.png', {resource_type: "image"}).and_return('http_png')
+ allow(Cloudinary::Utils).to receive(:cloudinary_url).with('v1/id1.png', {resource_type: "image"}).and_return('http_png')
subject.public_id = 'id1'
subject.version = '1'
- subject.fullpath(format: 'png').should == 'http_png'
+ expect(subject.fullpath(format: 'png')).to eq 'http_png'
end
end
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index adf83350..0e85e3ad 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -13,27 +13,30 @@
let(:photo) { build(:file) }
describe "after_destroy" do
+ before(:each) do
+ allow(Cloudinary::Uploader).to receive(:remove_tag)
+ end
after(:each) do
Cloudinary.config.delete_field(:attachinary_keep_remote) if Cloudinary.config.respond_to?(:attachinary_keep_remote)
end
-
+
it "destroys attached files" do
note = create(:note, photo: photo)
- Cloudinary::Uploader.should_receive(:destroy).with(photo.public_id)
+ expect(Cloudinary::Uploader).to receive(:destroy).with(photo.public_id, resource_type: "image")
note.destroy
end
it "keeps attached files if Cloudinary.config.attachinary_keep_remote == true" do
Cloudinary.config.attachinary_keep_remote = true
note = create(:note, photo: photo)
- Cloudinary::Uploader.should_not_receive(:destroy).with(photo.public_id)
+ expect(Cloudinary::Uploader).to_not receive(:destroy).with(photo.public_id)
note.destroy
end
end
describe "after_create" do
it "removes attachinary_tmp tag from files" do
- Cloudinary::Uploader.should_receive(:remove_tag).with(Attachinary::TMPTAG, [photo.public_id])
+ expect(Cloudinary::Uploader).to receive(:remove_tag).with(Attachinary::TMPTAG, [photo.public_id], { resource_type: "image" })
create(:note, photo: photo)
end
end
@@ -44,36 +47,36 @@
it 'manages photo' do
photo1 = build(:file)
subject.photo = photo1
- subject.photo.should == photo1
+ expect(subject.photo).to eq photo1
photo2 = build(:file)
subject.photo = photo2
- subject.photo.should == photo2
+ expect(subject.photo).to eq photo2
subject.photo = nil
- subject.photo.should be_nil
+ expect(subject.photo).to be_nil
end
it 'accepts stringified JSON' do
file = build(:file)
subject.photo = file.to_json
- subject.photo.public_id.should == file.public_id
+ expect(subject.photo.public_id).to eq file.public_id
end
it 'handles invalid JSON from bad browsers (IE)' do
file = build(:file)
subject.photo = "[null]"
- subject.photo.should be_nil
+ expect(subject.photo).to be_nil
end
it 'accepts IO objects' do
image = StringIO.new("")
file = build(:file)
expected_id = file.public_id
- Cloudinary::Uploader.should_receive(:upload).with(image, resource_type: 'auto').and_return(file.attributes)
+ expect(Cloudinary::Uploader).to receive(:upload).with(image, { resource_type: 'auto' }).and_return(file.attributes)
subject.photo = image
- subject.photo.public_id.should == expected_id
+ expect(subject.photo.public_id).to eq expected_id
end
end
@@ -83,27 +86,27 @@
let(:json) { file.attributes.to_json }
before do
- Cloudinary::Uploader.should_receive(:upload).with(url, resource_type: 'auto').and_return(json)
+ expect(Cloudinary::Uploader).to receive(:upload).with(url, { resource_type: 'auto' }).and_return(json)
end
it 'uploads photo via url' do
subject.photo_url = url
- subject.photo.public_id.should == file.public_id
+ expect(subject.photo.public_id).to eq file.public_id
end
end
describe '#photo?' do
it 'checks whether photo is present' do
- subject.photo?.should be_truthy
+ expect(subject.photo?).to be_truthy
subject.photo = nil
- subject.photo?.should be_falsey
+ expect(subject.photo?).to be_falsey
end
end
describe '#photo_metadata' do
it 'returns association metadata' do
- subject.photo_metadata[:maximum].should == 1
- subject.photo_metadata[:single].should == true
+ expect(subject.photo_metadata[:maximum]).to eq 1
+ expect(subject.photo_metadata[:single]).to eq true
end
end
end
@@ -111,25 +114,25 @@
describe 'image attachments' do
describe '#images' do
it 'manages images' do
- subject.images?.should be_falsey
+ expect(subject.images?).to be_falsey
image1 = build(:file)
subject.images << image1
- subject.images.should == [image1]
+ expect(subject.images).to eq [image1]
image2 = build(:file)
subject.images << image2
- subject.images.should == [image1, image2]
+ expect(subject.images).to eq [image1, image2]
subject.images = nil
- subject.images.should be_blank
+ expect(subject.images).to be_blank
end
it 'accepts stringified JSON' do
file = build(:file)
subject.images = file.to_json
- subject.images.first.public_id.should == file.public_id
+ expect(subject.images.first.public_id).to eq file.public_id
end
it 'accepts IO objects' do
@@ -138,11 +141,11 @@
files_ids = files.map(&:public_id)
files.each.with_index do |file, index|
- Cloudinary::Uploader.should_receive(:upload).with(images[index], resource_type: 'auto').and_return(file.attributes)
+ expect(Cloudinary::Uploader).to receive(:upload).with(images[index], { resource_type: 'auto' }).and_return(file.attributes)
end
subject.images = images
- subject.images.map(&:public_id).should =~ files_ids
+ expect(subject.images.map(&:public_id)).to match_array files_ids
end
end
@@ -154,19 +157,19 @@
before do
files_ids
files.each.with_index do |file, index|
- Cloudinary::Uploader.should_receive(:upload).with(urls[index], resource_type: 'auto').and_return(file.attributes)
+ expect(Cloudinary::Uploader).to receive(:upload).with(urls[index], { resource_type: 'auto' }).and_return(file.attributes)
end
end
it 'upload photos via urls' do
subject.image_urls = urls
- subject.images.map(&:public_id).should =~ files_ids
+ expect(subject.images.map(&:public_id)).to match_array files_ids
end
end
describe '#images_metadata' do
it 'returns association metadata' do
- subject.images_metadata[:single].should == false
+ expect(subject.images_metadata[:single]).to be_falsy
end
end
end
diff --git a/spec/orm/active_record.rb b/spec/orm/active_record.rb
deleted file mode 100644
index 5e94eb86..00000000
--- a/spec/orm/active_record.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-ActiveRecord::Migration.verbose = false
-ActiveRecord::Base.logger = Logger.new(nil)
-
-ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate/")
diff --git a/spec/orm/mongoid.rb b/spec/orm/mongoid.rb
deleted file mode 100644
index ff4fdefb..00000000
--- a/spec/orm/mongoid.rb
+++ /dev/null
@@ -1 +0,0 @@
-Mongoid.logger = Logger.new(nil)
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index f559819e..6a574c1d 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,46 +1,54 @@
# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"
-ATTACHINARY_ORM ||= (ENV["ATTACHINARY_ORM"] || :active_record).to_sym
+require "dotenv"
+Dotenv.load(".env") if File.exist?(".env")
-# $:.unshift File.dirname(__FILE__)
-# require 'rspec/rails'
-# require "dummy/config/environment.rb"
-SPEC_ROOT = "#{::Rails.root}/.."
-require "#{SPEC_ROOT}/orm/#{ATTACHINARY_ORM}"
+require File.expand_path('../spec/dummy/config/environment.rb', __dir__)
+ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '../../../spec/dummy'
+require 'rspec/rails'
+
+SPEC_ROOT = File.dirname(__FILE__)
require 'valid_attribute'
require 'capybara/rspec'
+require 'capybara-screenshot/rspec'
-require 'factory_girl'
+require 'factory_bot'
require "#{SPEC_ROOT}/factories"
require 'database_cleaner'
-require "capybara/webkit"
-Capybara.javascript_driver = :webkit
-
-Capybara::Webkit.configure do |config|
- config.allow_url("api.cloudinary.com")
- config.allow_url("res.cloudinary.com")
+require "selenium-webdriver"
+
+Capybara.register_driver :chrome do |app|
+ options = ::Selenium::WebDriver::Options.chrome(
+ args: %w[
+ --headless=new
+ --no-sandbox
+ --window-size=1600,1600
+ ]
+ )
+ Capybara::Selenium::Driver.new(
+ app,
+ browser: :chrome,
+ options: options
+ )
end
+Capybara.javascript_driver = :chrome
-# ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../')
+Capybara.save_path = File.expand_path('../tmp/capybara', __dir__)
+Capybara::Screenshot.register_driver :chrome do |driver, path|
+ driver.browser.save_screenshot(path)
+end
-# Requires supporting ruby files with custom matchers and macros, etc,
-# in spec/support/ and its subdirectories.
-# Uncomment next line to load all support files, if you have more than one
-# Uncomment next line to load all support files, if you have more than one
-# Dir[File.join(ENGINE_RAILS_ROOT, "../../spec/support/**/*.rb")].each {|f| require f }
require "#{SPEC_ROOT}/support/request_helpers"
RSpec.configure do |config|
config.color = true
- config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run focus: true
config.run_all_when_everything_filtered = true
- config.use_transactional_fixtures = false
- config.include FactoryGirl::Syntax::Methods
+ config.include FactoryBot::Syntax::Methods
config.include RequestHelpers, type: :feature
config.before(:suite) do
diff --git a/vendor/cache/actioncable-7.2.2.1.gem b/vendor/cache/actioncable-7.2.2.1.gem
new file mode 100644
index 00000000..0abfb2cc
Binary files /dev/null and b/vendor/cache/actioncable-7.2.2.1.gem differ
diff --git a/vendor/cache/actionmailbox-7.2.2.1.gem b/vendor/cache/actionmailbox-7.2.2.1.gem
new file mode 100644
index 00000000..862e3d1f
Binary files /dev/null and b/vendor/cache/actionmailbox-7.2.2.1.gem differ
diff --git a/vendor/cache/actionmailer-7.2.2.1.gem b/vendor/cache/actionmailer-7.2.2.1.gem
new file mode 100644
index 00000000..b8a8c4c3
Binary files /dev/null and b/vendor/cache/actionmailer-7.2.2.1.gem differ
diff --git a/vendor/cache/actionpack-7.2.2.1.gem b/vendor/cache/actionpack-7.2.2.1.gem
new file mode 100644
index 00000000..ad1eb55f
Binary files /dev/null and b/vendor/cache/actionpack-7.2.2.1.gem differ
diff --git a/vendor/cache/actiontext-7.2.2.1.gem b/vendor/cache/actiontext-7.2.2.1.gem
new file mode 100644
index 00000000..b416d48b
Binary files /dev/null and b/vendor/cache/actiontext-7.2.2.1.gem differ
diff --git a/vendor/cache/actionview-7.2.2.1.gem b/vendor/cache/actionview-7.2.2.1.gem
new file mode 100644
index 00000000..52c9dd9d
Binary files /dev/null and b/vendor/cache/actionview-7.2.2.1.gem differ
diff --git a/vendor/cache/activejob-7.2.2.1.gem b/vendor/cache/activejob-7.2.2.1.gem
new file mode 100644
index 00000000..7d6b3935
Binary files /dev/null and b/vendor/cache/activejob-7.2.2.1.gem differ
diff --git a/vendor/cache/activemodel-7.2.2.1.gem b/vendor/cache/activemodel-7.2.2.1.gem
new file mode 100644
index 00000000..fbcc52ef
Binary files /dev/null and b/vendor/cache/activemodel-7.2.2.1.gem differ
diff --git a/vendor/cache/activerecord-7.2.2.1.gem b/vendor/cache/activerecord-7.2.2.1.gem
new file mode 100644
index 00000000..9a8ca653
Binary files /dev/null and b/vendor/cache/activerecord-7.2.2.1.gem differ
diff --git a/vendor/cache/activestorage-7.2.2.1.gem b/vendor/cache/activestorage-7.2.2.1.gem
new file mode 100644
index 00000000..2f8f62ea
Binary files /dev/null and b/vendor/cache/activestorage-7.2.2.1.gem differ
diff --git a/vendor/cache/activesupport-7.2.2.1.gem b/vendor/cache/activesupport-7.2.2.1.gem
new file mode 100644
index 00000000..e2ee3e8b
Binary files /dev/null and b/vendor/cache/activesupport-7.2.2.1.gem differ
diff --git a/vendor/cache/addressable-2.8.7.gem b/vendor/cache/addressable-2.8.7.gem
new file mode 100644
index 00000000..c4890680
Binary files /dev/null and b/vendor/cache/addressable-2.8.7.gem differ
diff --git a/vendor/cache/base64-0.2.0.gem b/vendor/cache/base64-0.2.0.gem
new file mode 100644
index 00000000..a45f09b7
Binary files /dev/null and b/vendor/cache/base64-0.2.0.gem differ
diff --git a/vendor/cache/benchmark-0.4.0.gem b/vendor/cache/benchmark-0.4.0.gem
new file mode 100644
index 00000000..1fc043ce
Binary files /dev/null and b/vendor/cache/benchmark-0.4.0.gem differ
diff --git a/vendor/cache/bigdecimal-3.1.9.gem b/vendor/cache/bigdecimal-3.1.9.gem
new file mode 100644
index 00000000..81739118
Binary files /dev/null and b/vendor/cache/bigdecimal-3.1.9.gem differ
diff --git a/vendor/cache/builder-3.3.0.gem b/vendor/cache/builder-3.3.0.gem
new file mode 100644
index 00000000..f0412140
Binary files /dev/null and b/vendor/cache/builder-3.3.0.gem differ
diff --git a/vendor/cache/capybara-3.40.0.gem b/vendor/cache/capybara-3.40.0.gem
new file mode 100644
index 00000000..554123c9
Binary files /dev/null and b/vendor/cache/capybara-3.40.0.gem differ
diff --git a/vendor/cache/capybara-screenshot-1.0.26.gem b/vendor/cache/capybara-screenshot-1.0.26.gem
new file mode 100644
index 00000000..9485a53c
Binary files /dev/null and b/vendor/cache/capybara-screenshot-1.0.26.gem differ
diff --git a/vendor/cache/cgi-0.4.2.gem b/vendor/cache/cgi-0.4.2.gem
new file mode 100644
index 00000000..a0868239
Binary files /dev/null and b/vendor/cache/cgi-0.4.2.gem differ
diff --git a/vendor/cache/childprocess-5.1.0.gem b/vendor/cache/childprocess-5.1.0.gem
new file mode 100644
index 00000000..f719b399
Binary files /dev/null and b/vendor/cache/childprocess-5.1.0.gem differ
diff --git a/vendor/cache/cloudinary-2.3.0.gem b/vendor/cache/cloudinary-2.3.0.gem
new file mode 100644
index 00000000..de970ebb
Binary files /dev/null and b/vendor/cache/cloudinary-2.3.0.gem differ
diff --git a/vendor/cache/coderay-1.1.3.gem b/vendor/cache/coderay-1.1.3.gem
new file mode 100644
index 00000000..3475820d
Binary files /dev/null and b/vendor/cache/coderay-1.1.3.gem differ
diff --git a/vendor/cache/coffee-rails-5.0.0.gem b/vendor/cache/coffee-rails-5.0.0.gem
new file mode 100644
index 00000000..0c09b14b
Binary files /dev/null and b/vendor/cache/coffee-rails-5.0.0.gem differ
diff --git a/vendor/cache/coffee-script-2.4.1.gem b/vendor/cache/coffee-script-2.4.1.gem
new file mode 100644
index 00000000..7e4066d1
Binary files /dev/null and b/vendor/cache/coffee-script-2.4.1.gem differ
diff --git a/vendor/cache/coffee-script-source-1.12.2.gem b/vendor/cache/coffee-script-source-1.12.2.gem
new file mode 100644
index 00000000..80fabc69
Binary files /dev/null and b/vendor/cache/coffee-script-source-1.12.2.gem differ
diff --git a/vendor/cache/concurrent-ruby-1.3.5.gem b/vendor/cache/concurrent-ruby-1.3.5.gem
new file mode 100644
index 00000000..1cd9f527
Binary files /dev/null and b/vendor/cache/concurrent-ruby-1.3.5.gem differ
diff --git a/vendor/cache/connection_pool-2.5.3.gem b/vendor/cache/connection_pool-2.5.3.gem
new file mode 100644
index 00000000..23c398fc
Binary files /dev/null and b/vendor/cache/connection_pool-2.5.3.gem differ
diff --git a/vendor/cache/crass-1.0.6.gem b/vendor/cache/crass-1.0.6.gem
new file mode 100644
index 00000000..7128f385
Binary files /dev/null and b/vendor/cache/crass-1.0.6.gem differ
diff --git a/vendor/cache/database_cleaner-2.1.0.gem b/vendor/cache/database_cleaner-2.1.0.gem
new file mode 100644
index 00000000..af561812
Binary files /dev/null and b/vendor/cache/database_cleaner-2.1.0.gem differ
diff --git a/vendor/cache/database_cleaner-active_record-2.2.1.gem b/vendor/cache/database_cleaner-active_record-2.2.1.gem
new file mode 100644
index 00000000..2b2365ac
Binary files /dev/null and b/vendor/cache/database_cleaner-active_record-2.2.1.gem differ
diff --git a/vendor/cache/database_cleaner-core-2.0.1.gem b/vendor/cache/database_cleaner-core-2.0.1.gem
new file mode 100644
index 00000000..d49376e0
Binary files /dev/null and b/vendor/cache/database_cleaner-core-2.0.1.gem differ
diff --git a/vendor/cache/date-3.4.1.gem b/vendor/cache/date-3.4.1.gem
new file mode 100644
index 00000000..fe7bd0ad
Binary files /dev/null and b/vendor/cache/date-3.4.1.gem differ
diff --git a/vendor/cache/diff-lcs-1.6.2.gem b/vendor/cache/diff-lcs-1.6.2.gem
new file mode 100644
index 00000000..21c4c77c
Binary files /dev/null and b/vendor/cache/diff-lcs-1.6.2.gem differ
diff --git a/vendor/cache/dotenv-3.1.2.gem b/vendor/cache/dotenv-3.1.2.gem
new file mode 100644
index 00000000..e8a9b14c
Binary files /dev/null and b/vendor/cache/dotenv-3.1.2.gem differ
diff --git a/vendor/cache/drb-2.2.3.gem b/vendor/cache/drb-2.2.3.gem
new file mode 100644
index 00000000..0c78b283
Binary files /dev/null and b/vendor/cache/drb-2.2.3.gem differ
diff --git a/vendor/cache/erb-4.0.4.gem b/vendor/cache/erb-4.0.4.gem
new file mode 100644
index 00000000..35a98dd3
Binary files /dev/null and b/vendor/cache/erb-4.0.4.gem differ
diff --git a/vendor/cache/erubi-1.13.1.gem b/vendor/cache/erubi-1.13.1.gem
new file mode 100644
index 00000000..2b1dd030
Binary files /dev/null and b/vendor/cache/erubi-1.13.1.gem differ
diff --git a/vendor/cache/execjs-2.10.0.gem b/vendor/cache/execjs-2.10.0.gem
new file mode 100644
index 00000000..bf694389
Binary files /dev/null and b/vendor/cache/execjs-2.10.0.gem differ
diff --git a/vendor/cache/factory_bot-6.5.1.gem b/vendor/cache/factory_bot-6.5.1.gem
new file mode 100644
index 00000000..b36fa496
Binary files /dev/null and b/vendor/cache/factory_bot-6.5.1.gem differ
diff --git a/vendor/cache/factory_bot_rails-6.4.4.gem b/vendor/cache/factory_bot_rails-6.4.4.gem
new file mode 100644
index 00000000..2ea5872d
Binary files /dev/null and b/vendor/cache/factory_bot_rails-6.4.4.gem differ
diff --git a/vendor/cache/faraday-2.13.1.gem b/vendor/cache/faraday-2.13.1.gem
new file mode 100644
index 00000000..7ebeaa65
Binary files /dev/null and b/vendor/cache/faraday-2.13.1.gem differ
diff --git a/vendor/cache/faraday-follow_redirects-0.3.0.gem b/vendor/cache/faraday-follow_redirects-0.3.0.gem
new file mode 100644
index 00000000..edb1d77d
Binary files /dev/null and b/vendor/cache/faraday-follow_redirects-0.3.0.gem differ
diff --git a/vendor/cache/faraday-multipart-1.1.0.gem b/vendor/cache/faraday-multipart-1.1.0.gem
new file mode 100644
index 00000000..17541a9a
Binary files /dev/null and b/vendor/cache/faraday-multipart-1.1.0.gem differ
diff --git a/vendor/cache/faraday-net_http-3.4.0.gem b/vendor/cache/faraday-net_http-3.4.0.gem
new file mode 100644
index 00000000..92c5c344
Binary files /dev/null and b/vendor/cache/faraday-net_http-3.4.0.gem differ
diff --git a/vendor/cache/ffi-1.17.2-aarch64-linux-gnu.gem b/vendor/cache/ffi-1.17.2-aarch64-linux-gnu.gem
new file mode 100644
index 00000000..8e391bce
Binary files /dev/null and b/vendor/cache/ffi-1.17.2-aarch64-linux-gnu.gem differ
diff --git a/vendor/cache/ffi-1.17.2-aarch64-linux-musl.gem b/vendor/cache/ffi-1.17.2-aarch64-linux-musl.gem
new file mode 100644
index 00000000..4c50b9e3
Binary files /dev/null and b/vendor/cache/ffi-1.17.2-aarch64-linux-musl.gem differ
diff --git a/vendor/cache/ffi-1.17.2-arm-linux-gnu.gem b/vendor/cache/ffi-1.17.2-arm-linux-gnu.gem
new file mode 100644
index 00000000..da8638f8
Binary files /dev/null and b/vendor/cache/ffi-1.17.2-arm-linux-gnu.gem differ
diff --git a/vendor/cache/ffi-1.17.2-arm-linux-musl.gem b/vendor/cache/ffi-1.17.2-arm-linux-musl.gem
new file mode 100644
index 00000000..acd0442b
Binary files /dev/null and b/vendor/cache/ffi-1.17.2-arm-linux-musl.gem differ
diff --git a/vendor/cache/ffi-1.17.2-arm64-darwin.gem b/vendor/cache/ffi-1.17.2-arm64-darwin.gem
new file mode 100644
index 00000000..2219753b
Binary files /dev/null and b/vendor/cache/ffi-1.17.2-arm64-darwin.gem differ
diff --git a/vendor/cache/ffi-1.17.2-x86_64-darwin.gem b/vendor/cache/ffi-1.17.2-x86_64-darwin.gem
new file mode 100644
index 00000000..8f3b09a1
Binary files /dev/null and b/vendor/cache/ffi-1.17.2-x86_64-darwin.gem differ
diff --git a/vendor/cache/ffi-1.17.2-x86_64-linux-gnu.gem b/vendor/cache/ffi-1.17.2-x86_64-linux-gnu.gem
new file mode 100644
index 00000000..3704931f
Binary files /dev/null and b/vendor/cache/ffi-1.17.2-x86_64-linux-gnu.gem differ
diff --git a/vendor/cache/ffi-1.17.2-x86_64-linux-musl.gem b/vendor/cache/ffi-1.17.2-x86_64-linux-musl.gem
new file mode 100644
index 00000000..e447ebb1
Binary files /dev/null and b/vendor/cache/ffi-1.17.2-x86_64-linux-musl.gem differ
diff --git a/vendor/cache/formatador-1.1.0.gem b/vendor/cache/formatador-1.1.0.gem
new file mode 100644
index 00000000..528f324d
Binary files /dev/null and b/vendor/cache/formatador-1.1.0.gem differ
diff --git a/vendor/cache/globalid-1.2.1.gem b/vendor/cache/globalid-1.2.1.gem
new file mode 100644
index 00000000..daee5380
Binary files /dev/null and b/vendor/cache/globalid-1.2.1.gem differ
diff --git a/vendor/cache/guard-2.19.1.gem b/vendor/cache/guard-2.19.1.gem
new file mode 100644
index 00000000..8d28fa9f
Binary files /dev/null and b/vendor/cache/guard-2.19.1.gem differ
diff --git a/vendor/cache/guard-compat-1.2.1.gem b/vendor/cache/guard-compat-1.2.1.gem
new file mode 100644
index 00000000..34d5c7d2
Binary files /dev/null and b/vendor/cache/guard-compat-1.2.1.gem differ
diff --git a/vendor/cache/guard-rspec-4.7.3.gem b/vendor/cache/guard-rspec-4.7.3.gem
new file mode 100644
index 00000000..4ffbe3e4
Binary files /dev/null and b/vendor/cache/guard-rspec-4.7.3.gem differ
diff --git a/vendor/cache/i18n-1.14.7.gem b/vendor/cache/i18n-1.14.7.gem
new file mode 100644
index 00000000..9307337f
Binary files /dev/null and b/vendor/cache/i18n-1.14.7.gem differ
diff --git a/vendor/cache/io-console-0.8.0.gem b/vendor/cache/io-console-0.8.0.gem
new file mode 100644
index 00000000..7a39c003
Binary files /dev/null and b/vendor/cache/io-console-0.8.0.gem differ
diff --git a/vendor/cache/irb-1.15.2.gem b/vendor/cache/irb-1.15.2.gem
new file mode 100644
index 00000000..1d053448
Binary files /dev/null and b/vendor/cache/irb-1.15.2.gem differ
diff --git a/vendor/cache/jquery-rails-4.6.0.gem b/vendor/cache/jquery-rails-4.6.0.gem
new file mode 100644
index 00000000..75bef6ac
Binary files /dev/null and b/vendor/cache/jquery-rails-4.6.0.gem differ
diff --git a/vendor/cache/json-2.12.0.gem b/vendor/cache/json-2.12.0.gem
new file mode 100644
index 00000000..87b848bd
Binary files /dev/null and b/vendor/cache/json-2.12.0.gem differ
diff --git a/vendor/cache/launchy-3.1.1.gem b/vendor/cache/launchy-3.1.1.gem
new file mode 100644
index 00000000..8af053b6
Binary files /dev/null and b/vendor/cache/launchy-3.1.1.gem differ
diff --git a/vendor/cache/libv8-node-23.6.1.0-aarch64-linux.gem b/vendor/cache/libv8-node-23.6.1.0-aarch64-linux.gem
new file mode 100644
index 00000000..f1a51a80
Binary files /dev/null and b/vendor/cache/libv8-node-23.6.1.0-aarch64-linux.gem differ
diff --git a/vendor/cache/libv8-node-23.6.1.0-arm64-darwin.gem b/vendor/cache/libv8-node-23.6.1.0-arm64-darwin.gem
new file mode 100644
index 00000000..d140220d
Binary files /dev/null and b/vendor/cache/libv8-node-23.6.1.0-arm64-darwin.gem differ
diff --git a/vendor/cache/libv8-node-23.6.1.0-x86_64-darwin.gem b/vendor/cache/libv8-node-23.6.1.0-x86_64-darwin.gem
new file mode 100644
index 00000000..92397467
Binary files /dev/null and b/vendor/cache/libv8-node-23.6.1.0-x86_64-darwin.gem differ
diff --git a/vendor/cache/libv8-node-23.6.1.0-x86_64-linux-musl.gem b/vendor/cache/libv8-node-23.6.1.0-x86_64-linux-musl.gem
new file mode 100644
index 00000000..9554cd62
Binary files /dev/null and b/vendor/cache/libv8-node-23.6.1.0-x86_64-linux-musl.gem differ
diff --git a/vendor/cache/libv8-node-23.6.1.0-x86_64-linux.gem b/vendor/cache/libv8-node-23.6.1.0-x86_64-linux.gem
new file mode 100644
index 00000000..b0e0cb01
Binary files /dev/null and b/vendor/cache/libv8-node-23.6.1.0-x86_64-linux.gem differ
diff --git a/vendor/cache/libv8-node-23.6.1.0.gem b/vendor/cache/libv8-node-23.6.1.0.gem
new file mode 100644
index 00000000..15a4fa22
Binary files /dev/null and b/vendor/cache/libv8-node-23.6.1.0.gem differ
diff --git a/vendor/cache/listen-3.0.8.gem b/vendor/cache/listen-3.0.8.gem
new file mode 100644
index 00000000..34fb00ad
Binary files /dev/null and b/vendor/cache/listen-3.0.8.gem differ
diff --git a/vendor/cache/logger-1.7.0.gem b/vendor/cache/logger-1.7.0.gem
new file mode 100644
index 00000000..061f1ccc
Binary files /dev/null and b/vendor/cache/logger-1.7.0.gem differ
diff --git a/vendor/cache/loofah-2.24.1.gem b/vendor/cache/loofah-2.24.1.gem
new file mode 100644
index 00000000..a86dc7ac
Binary files /dev/null and b/vendor/cache/loofah-2.24.1.gem differ
diff --git a/vendor/cache/lumberjack-1.2.10.gem b/vendor/cache/lumberjack-1.2.10.gem
new file mode 100644
index 00000000..f2af1719
Binary files /dev/null and b/vendor/cache/lumberjack-1.2.10.gem differ
diff --git a/vendor/cache/mail-2.8.1.gem b/vendor/cache/mail-2.8.1.gem
new file mode 100644
index 00000000..2c69b3e6
Binary files /dev/null and b/vendor/cache/mail-2.8.1.gem differ
diff --git a/vendor/cache/marcel-1.0.4.gem b/vendor/cache/marcel-1.0.4.gem
new file mode 100644
index 00000000..2d0ab222
Binary files /dev/null and b/vendor/cache/marcel-1.0.4.gem differ
diff --git a/vendor/cache/matrix-0.4.2.gem b/vendor/cache/matrix-0.4.2.gem
new file mode 100644
index 00000000..11cb5723
Binary files /dev/null and b/vendor/cache/matrix-0.4.2.gem differ
diff --git a/vendor/cache/method_source-1.1.0.gem b/vendor/cache/method_source-1.1.0.gem
new file mode 100644
index 00000000..61e02101
Binary files /dev/null and b/vendor/cache/method_source-1.1.0.gem differ
diff --git a/vendor/cache/mime-types-3.7.0.gem b/vendor/cache/mime-types-3.7.0.gem
new file mode 100644
index 00000000..4430455e
Binary files /dev/null and b/vendor/cache/mime-types-3.7.0.gem differ
diff --git a/vendor/cache/mime-types-data-3.2025.0520.gem b/vendor/cache/mime-types-data-3.2025.0520.gem
new file mode 100644
index 00000000..b6a636f1
Binary files /dev/null and b/vendor/cache/mime-types-data-3.2025.0520.gem differ
diff --git a/vendor/cache/mini_mime-1.1.5.gem b/vendor/cache/mini_mime-1.1.5.gem
new file mode 100644
index 00000000..b16e88f5
Binary files /dev/null and b/vendor/cache/mini_mime-1.1.5.gem differ
diff --git a/vendor/cache/mini_racer-0.18.1.gem b/vendor/cache/mini_racer-0.18.1.gem
new file mode 100644
index 00000000..34edcbd2
Binary files /dev/null and b/vendor/cache/mini_racer-0.18.1.gem differ
diff --git a/vendor/cache/minitest-5.25.5.gem b/vendor/cache/minitest-5.25.5.gem
new file mode 100644
index 00000000..2ffec491
Binary files /dev/null and b/vendor/cache/minitest-5.25.5.gem differ
diff --git a/vendor/cache/multipart-post-2.4.1.gem b/vendor/cache/multipart-post-2.4.1.gem
new file mode 100644
index 00000000..15bb46fe
Binary files /dev/null and b/vendor/cache/multipart-post-2.4.1.gem differ
diff --git a/vendor/cache/nenv-0.3.0.gem b/vendor/cache/nenv-0.3.0.gem
new file mode 100644
index 00000000..4e7e0503
Binary files /dev/null and b/vendor/cache/nenv-0.3.0.gem differ
diff --git a/vendor/cache/net-http-0.6.0.gem b/vendor/cache/net-http-0.6.0.gem
new file mode 100644
index 00000000..a9b42ae9
Binary files /dev/null and b/vendor/cache/net-http-0.6.0.gem differ
diff --git a/vendor/cache/net-imap-0.5.8.gem b/vendor/cache/net-imap-0.5.8.gem
new file mode 100644
index 00000000..7f1b7283
Binary files /dev/null and b/vendor/cache/net-imap-0.5.8.gem differ
diff --git a/vendor/cache/net-pop-0.1.2.gem b/vendor/cache/net-pop-0.1.2.gem
new file mode 100644
index 00000000..98bcdb7e
Binary files /dev/null and b/vendor/cache/net-pop-0.1.2.gem differ
diff --git a/vendor/cache/net-protocol-0.2.2.gem b/vendor/cache/net-protocol-0.2.2.gem
new file mode 100644
index 00000000..65780584
Binary files /dev/null and b/vendor/cache/net-protocol-0.2.2.gem differ
diff --git a/vendor/cache/net-smtp-0.5.1.gem b/vendor/cache/net-smtp-0.5.1.gem
new file mode 100644
index 00000000..db90e64d
Binary files /dev/null and b/vendor/cache/net-smtp-0.5.1.gem differ
diff --git a/vendor/cache/nio4r-2.7.4.gem b/vendor/cache/nio4r-2.7.4.gem
new file mode 100644
index 00000000..22b7976a
Binary files /dev/null and b/vendor/cache/nio4r-2.7.4.gem differ
diff --git a/vendor/cache/nokogiri-1.18.8-aarch64-linux-gnu.gem b/vendor/cache/nokogiri-1.18.8-aarch64-linux-gnu.gem
new file mode 100644
index 00000000..1498e583
Binary files /dev/null and b/vendor/cache/nokogiri-1.18.8-aarch64-linux-gnu.gem differ
diff --git a/vendor/cache/nokogiri-1.18.8-aarch64-linux-musl.gem b/vendor/cache/nokogiri-1.18.8-aarch64-linux-musl.gem
new file mode 100644
index 00000000..675c1ddc
Binary files /dev/null and b/vendor/cache/nokogiri-1.18.8-aarch64-linux-musl.gem differ
diff --git a/vendor/cache/nokogiri-1.18.8-arm-linux-gnu.gem b/vendor/cache/nokogiri-1.18.8-arm-linux-gnu.gem
new file mode 100644
index 00000000..13ebb954
Binary files /dev/null and b/vendor/cache/nokogiri-1.18.8-arm-linux-gnu.gem differ
diff --git a/vendor/cache/nokogiri-1.18.8-arm-linux-musl.gem b/vendor/cache/nokogiri-1.18.8-arm-linux-musl.gem
new file mode 100644
index 00000000..7a4b7356
Binary files /dev/null and b/vendor/cache/nokogiri-1.18.8-arm-linux-musl.gem differ
diff --git a/vendor/cache/nokogiri-1.18.8-arm64-darwin.gem b/vendor/cache/nokogiri-1.18.8-arm64-darwin.gem
new file mode 100644
index 00000000..85f6f455
Binary files /dev/null and b/vendor/cache/nokogiri-1.18.8-arm64-darwin.gem differ
diff --git a/vendor/cache/nokogiri-1.18.8-x86_64-darwin.gem b/vendor/cache/nokogiri-1.18.8-x86_64-darwin.gem
new file mode 100644
index 00000000..0dd9f0eb
Binary files /dev/null and b/vendor/cache/nokogiri-1.18.8-x86_64-darwin.gem differ
diff --git a/vendor/cache/nokogiri-1.18.8-x86_64-linux-gnu.gem b/vendor/cache/nokogiri-1.18.8-x86_64-linux-gnu.gem
new file mode 100644
index 00000000..73db7f3c
Binary files /dev/null and b/vendor/cache/nokogiri-1.18.8-x86_64-linux-gnu.gem differ
diff --git a/vendor/cache/nokogiri-1.18.8-x86_64-linux-musl.gem b/vendor/cache/nokogiri-1.18.8-x86_64-linux-musl.gem
new file mode 100644
index 00000000..86fbd523
Binary files /dev/null and b/vendor/cache/nokogiri-1.18.8-x86_64-linux-musl.gem differ
diff --git a/vendor/cache/notiffany-0.1.3.gem b/vendor/cache/notiffany-0.1.3.gem
new file mode 100644
index 00000000..78724a64
Binary files /dev/null and b/vendor/cache/notiffany-0.1.3.gem differ
diff --git a/vendor/cache/ostruct-0.6.1.gem b/vendor/cache/ostruct-0.6.1.gem
new file mode 100644
index 00000000..95788af2
Binary files /dev/null and b/vendor/cache/ostruct-0.6.1.gem differ
diff --git a/vendor/cache/pp-0.6.2.gem b/vendor/cache/pp-0.6.2.gem
new file mode 100644
index 00000000..25704968
Binary files /dev/null and b/vendor/cache/pp-0.6.2.gem differ
diff --git a/vendor/cache/prettyprint-0.2.0.gem b/vendor/cache/prettyprint-0.2.0.gem
new file mode 100644
index 00000000..0944aaba
Binary files /dev/null and b/vendor/cache/prettyprint-0.2.0.gem differ
diff --git a/vendor/cache/pry-0.15.2.gem b/vendor/cache/pry-0.15.2.gem
new file mode 100644
index 00000000..24d92d97
Binary files /dev/null and b/vendor/cache/pry-0.15.2.gem differ
diff --git a/vendor/cache/psych-5.2.6.gem b/vendor/cache/psych-5.2.6.gem
new file mode 100644
index 00000000..becbf807
Binary files /dev/null and b/vendor/cache/psych-5.2.6.gem differ
diff --git a/vendor/cache/public_suffix-6.0.2.gem b/vendor/cache/public_suffix-6.0.2.gem
new file mode 100644
index 00000000..0baf25c6
Binary files /dev/null and b/vendor/cache/public_suffix-6.0.2.gem differ
diff --git a/vendor/cache/puma-6.4.2.gem b/vendor/cache/puma-6.4.2.gem
new file mode 100644
index 00000000..3e6c5b60
Binary files /dev/null and b/vendor/cache/puma-6.4.2.gem differ
diff --git a/vendor/cache/racc-1.8.1.gem b/vendor/cache/racc-1.8.1.gem
new file mode 100644
index 00000000..ad9e6bbd
Binary files /dev/null and b/vendor/cache/racc-1.8.1.gem differ
diff --git a/vendor/cache/rack-3.1.15.gem b/vendor/cache/rack-3.1.15.gem
new file mode 100644
index 00000000..e8e7c793
Binary files /dev/null and b/vendor/cache/rack-3.1.15.gem differ
diff --git a/vendor/cache/rack-session-2.1.1.gem b/vendor/cache/rack-session-2.1.1.gem
new file mode 100644
index 00000000..f0372322
Binary files /dev/null and b/vendor/cache/rack-session-2.1.1.gem differ
diff --git a/vendor/cache/rack-test-2.2.0.gem b/vendor/cache/rack-test-2.2.0.gem
new file mode 100644
index 00000000..b0b9c9d8
Binary files /dev/null and b/vendor/cache/rack-test-2.2.0.gem differ
diff --git a/vendor/cache/rackup-2.2.1.gem b/vendor/cache/rackup-2.2.1.gem
new file mode 100644
index 00000000..286eb159
Binary files /dev/null and b/vendor/cache/rackup-2.2.1.gem differ
diff --git a/vendor/cache/rails-7.2.2.1.gem b/vendor/cache/rails-7.2.2.1.gem
new file mode 100644
index 00000000..7779ccae
Binary files /dev/null and b/vendor/cache/rails-7.2.2.1.gem differ
diff --git a/vendor/cache/rails-dom-testing-2.3.0.gem b/vendor/cache/rails-dom-testing-2.3.0.gem
new file mode 100644
index 00000000..b5f4b25a
Binary files /dev/null and b/vendor/cache/rails-dom-testing-2.3.0.gem differ
diff --git a/vendor/cache/rails-html-sanitizer-1.6.2.gem b/vendor/cache/rails-html-sanitizer-1.6.2.gem
new file mode 100644
index 00000000..4e9da15e
Binary files /dev/null and b/vendor/cache/rails-html-sanitizer-1.6.2.gem differ
diff --git a/vendor/cache/railties-7.2.2.1.gem b/vendor/cache/railties-7.2.2.1.gem
new file mode 100644
index 00000000..28a5ceb7
Binary files /dev/null and b/vendor/cache/railties-7.2.2.1.gem differ
diff --git a/vendor/cache/rake-13.2.1.gem b/vendor/cache/rake-13.2.1.gem
new file mode 100644
index 00000000..40a47b3f
Binary files /dev/null and b/vendor/cache/rake-13.2.1.gem differ
diff --git a/vendor/cache/rb-fsevent-0.9.8.gem b/vendor/cache/rb-fsevent-0.9.8.gem
new file mode 100644
index 00000000..c48bd886
Binary files /dev/null and b/vendor/cache/rb-fsevent-0.9.8.gem differ
diff --git a/vendor/cache/rb-inotify-0.11.1.gem b/vendor/cache/rb-inotify-0.11.1.gem
new file mode 100644
index 00000000..e52c22c1
Binary files /dev/null and b/vendor/cache/rb-inotify-0.11.1.gem differ
diff --git a/vendor/cache/rdoc-6.14.0.gem b/vendor/cache/rdoc-6.14.0.gem
new file mode 100644
index 00000000..2dde547a
Binary files /dev/null and b/vendor/cache/rdoc-6.14.0.gem differ
diff --git a/vendor/cache/regexp_parser-2.10.0.gem b/vendor/cache/regexp_parser-2.10.0.gem
new file mode 100644
index 00000000..63358cc5
Binary files /dev/null and b/vendor/cache/regexp_parser-2.10.0.gem differ
diff --git a/vendor/cache/reline-0.6.1.gem b/vendor/cache/reline-0.6.1.gem
new file mode 100644
index 00000000..98ae6be5
Binary files /dev/null and b/vendor/cache/reline-0.6.1.gem differ
diff --git a/vendor/cache/rexml-3.4.1.gem b/vendor/cache/rexml-3.4.1.gem
new file mode 100644
index 00000000..b0c5c846
Binary files /dev/null and b/vendor/cache/rexml-3.4.1.gem differ
diff --git a/vendor/cache/rspec-3.13.0.gem b/vendor/cache/rspec-3.13.0.gem
new file mode 100644
index 00000000..f05ea781
Binary files /dev/null and b/vendor/cache/rspec-3.13.0.gem differ
diff --git a/vendor/cache/rspec-core-3.13.3.gem b/vendor/cache/rspec-core-3.13.3.gem
new file mode 100644
index 00000000..31b6154d
Binary files /dev/null and b/vendor/cache/rspec-core-3.13.3.gem differ
diff --git a/vendor/cache/rspec-expectations-3.13.4.gem b/vendor/cache/rspec-expectations-3.13.4.gem
new file mode 100644
index 00000000..458eff59
Binary files /dev/null and b/vendor/cache/rspec-expectations-3.13.4.gem differ
diff --git a/vendor/cache/rspec-mocks-3.13.4.gem b/vendor/cache/rspec-mocks-3.13.4.gem
new file mode 100644
index 00000000..79cf3a1d
Binary files /dev/null and b/vendor/cache/rspec-mocks-3.13.4.gem differ
diff --git a/vendor/cache/rspec-rails-8.0.0.gem b/vendor/cache/rspec-rails-8.0.0.gem
new file mode 100644
index 00000000..07a0987a
Binary files /dev/null and b/vendor/cache/rspec-rails-8.0.0.gem differ
diff --git a/vendor/cache/rspec-support-3.13.3.gem b/vendor/cache/rspec-support-3.13.3.gem
new file mode 100644
index 00000000..667653f7
Binary files /dev/null and b/vendor/cache/rspec-support-3.13.3.gem differ
diff --git a/vendor/cache/rspec_junit_formatter-0.6.0.gem b/vendor/cache/rspec_junit_formatter-0.6.0.gem
new file mode 100644
index 00000000..e128b1ca
Binary files /dev/null and b/vendor/cache/rspec_junit_formatter-0.6.0.gem differ
diff --git a/vendor/cache/rubyzip-2.4.1.gem b/vendor/cache/rubyzip-2.4.1.gem
new file mode 100644
index 00000000..fa3906ea
Binary files /dev/null and b/vendor/cache/rubyzip-2.4.1.gem differ
diff --git a/vendor/cache/securerandom-0.4.1.gem b/vendor/cache/securerandom-0.4.1.gem
new file mode 100644
index 00000000..05072cab
Binary files /dev/null and b/vendor/cache/securerandom-0.4.1.gem differ
diff --git a/vendor/cache/selenium-webdriver-4.32.0.gem b/vendor/cache/selenium-webdriver-4.32.0.gem
new file mode 100644
index 00000000..21014460
Binary files /dev/null and b/vendor/cache/selenium-webdriver-4.32.0.gem differ
diff --git a/vendor/cache/shellany-0.0.1.gem b/vendor/cache/shellany-0.0.1.gem
new file mode 100644
index 00000000..105b6402
Binary files /dev/null and b/vendor/cache/shellany-0.0.1.gem differ
diff --git a/vendor/cache/simple_form-5.3.1.gem b/vendor/cache/simple_form-5.3.1.gem
new file mode 100644
index 00000000..16ddb222
Binary files /dev/null and b/vendor/cache/simple_form-5.3.1.gem differ
diff --git a/vendor/cache/sprockets-4.2.1.gem b/vendor/cache/sprockets-4.2.1.gem
new file mode 100644
index 00000000..d57f8229
Binary files /dev/null and b/vendor/cache/sprockets-4.2.1.gem differ
diff --git a/vendor/cache/sprockets-rails-3.5.2.gem b/vendor/cache/sprockets-rails-3.5.2.gem
new file mode 100644
index 00000000..38464b4b
Binary files /dev/null and b/vendor/cache/sprockets-rails-3.5.2.gem differ
diff --git a/vendor/cache/sqlite3-2.6.0-aarch64-linux-gnu.gem b/vendor/cache/sqlite3-2.6.0-aarch64-linux-gnu.gem
new file mode 100644
index 00000000..0434f476
Binary files /dev/null and b/vendor/cache/sqlite3-2.6.0-aarch64-linux-gnu.gem differ
diff --git a/vendor/cache/sqlite3-2.6.0-aarch64-linux-musl.gem b/vendor/cache/sqlite3-2.6.0-aarch64-linux-musl.gem
new file mode 100644
index 00000000..9ed2732d
Binary files /dev/null and b/vendor/cache/sqlite3-2.6.0-aarch64-linux-musl.gem differ
diff --git a/vendor/cache/sqlite3-2.6.0-arm-linux-gnu.gem b/vendor/cache/sqlite3-2.6.0-arm-linux-gnu.gem
new file mode 100644
index 00000000..e713c75a
Binary files /dev/null and b/vendor/cache/sqlite3-2.6.0-arm-linux-gnu.gem differ
diff --git a/vendor/cache/sqlite3-2.6.0-arm-linux-musl.gem b/vendor/cache/sqlite3-2.6.0-arm-linux-musl.gem
new file mode 100644
index 00000000..b53d34c7
Binary files /dev/null and b/vendor/cache/sqlite3-2.6.0-arm-linux-musl.gem differ
diff --git a/vendor/cache/sqlite3-2.6.0-arm64-darwin.gem b/vendor/cache/sqlite3-2.6.0-arm64-darwin.gem
new file mode 100644
index 00000000..75e4b886
Binary files /dev/null and b/vendor/cache/sqlite3-2.6.0-arm64-darwin.gem differ
diff --git a/vendor/cache/sqlite3-2.6.0-x86_64-darwin.gem b/vendor/cache/sqlite3-2.6.0-x86_64-darwin.gem
new file mode 100644
index 00000000..85e9e57c
Binary files /dev/null and b/vendor/cache/sqlite3-2.6.0-x86_64-darwin.gem differ
diff --git a/vendor/cache/sqlite3-2.6.0-x86_64-linux-gnu.gem b/vendor/cache/sqlite3-2.6.0-x86_64-linux-gnu.gem
new file mode 100644
index 00000000..0a1983d2
Binary files /dev/null and b/vendor/cache/sqlite3-2.6.0-x86_64-linux-gnu.gem differ
diff --git a/vendor/cache/sqlite3-2.6.0-x86_64-linux-musl.gem b/vendor/cache/sqlite3-2.6.0-x86_64-linux-musl.gem
new file mode 100644
index 00000000..cdc0caa7
Binary files /dev/null and b/vendor/cache/sqlite3-2.6.0-x86_64-linux-musl.gem differ
diff --git a/vendor/cache/stringio-3.1.7.gem b/vendor/cache/stringio-3.1.7.gem
new file mode 100644
index 00000000..bca0b39f
Binary files /dev/null and b/vendor/cache/stringio-3.1.7.gem differ
diff --git a/vendor/cache/thor-1.3.2.gem b/vendor/cache/thor-1.3.2.gem
new file mode 100644
index 00000000..aa6cf803
Binary files /dev/null and b/vendor/cache/thor-1.3.2.gem differ
diff --git a/vendor/cache/timeout-0.4.3.gem b/vendor/cache/timeout-0.4.3.gem
new file mode 100644
index 00000000..8aecf8c6
Binary files /dev/null and b/vendor/cache/timeout-0.4.3.gem differ
diff --git a/vendor/cache/tzinfo-2.0.6.gem b/vendor/cache/tzinfo-2.0.6.gem
new file mode 100644
index 00000000..2c16da8a
Binary files /dev/null and b/vendor/cache/tzinfo-2.0.6.gem differ
diff --git a/vendor/cache/uri-1.0.3.gem b/vendor/cache/uri-1.0.3.gem
new file mode 100644
index 00000000..afd77ba9
Binary files /dev/null and b/vendor/cache/uri-1.0.3.gem differ
diff --git a/vendor/cache/useragent-0.16.11.gem b/vendor/cache/useragent-0.16.11.gem
new file mode 100644
index 00000000..75ba7558
Binary files /dev/null and b/vendor/cache/useragent-0.16.11.gem differ
diff --git a/vendor/cache/valid_attribute-2.0.0.gem b/vendor/cache/valid_attribute-2.0.0.gem
new file mode 100644
index 00000000..66781d79
Binary files /dev/null and b/vendor/cache/valid_attribute-2.0.0.gem differ
diff --git a/vendor/cache/websocket-1.2.11.gem b/vendor/cache/websocket-1.2.11.gem
new file mode 100644
index 00000000..3fd73b34
Binary files /dev/null and b/vendor/cache/websocket-1.2.11.gem differ
diff --git a/vendor/cache/websocket-driver-0.7.7.gem b/vendor/cache/websocket-driver-0.7.7.gem
new file mode 100644
index 00000000..94be347e
Binary files /dev/null and b/vendor/cache/websocket-driver-0.7.7.gem differ
diff --git a/vendor/cache/websocket-extensions-0.1.5.gem b/vendor/cache/websocket-extensions-0.1.5.gem
new file mode 100644
index 00000000..69822441
Binary files /dev/null and b/vendor/cache/websocket-extensions-0.1.5.gem differ
diff --git a/vendor/cache/xpath-3.2.0.gem b/vendor/cache/xpath-3.2.0.gem
new file mode 100644
index 00000000..734ed7d5
Binary files /dev/null and b/vendor/cache/xpath-3.2.0.gem differ
diff --git a/vendor/cache/zeitwerk-2.6.18.gem b/vendor/cache/zeitwerk-2.6.18.gem
new file mode 100644
index 00000000..ad5ff96f
Binary files /dev/null and b/vendor/cache/zeitwerk-2.6.18.gem differ