Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive spec coverage #92

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ group :development, :test do
# gem 'rubocop'
gem 'rubocop'
gem 'rubocop-rspec'
gem 'vcr'
gem 'webmock'
end

gem 'clamav-client'
Expand Down
11 changes: 11 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ GEM
deep_merge (~> 1.2, >= 1.2.1)
ostruct
connection_pool (2.4.1)
crack (1.0.0)
bigdecimal
rexml
crass (1.0.6)
csv (3.3.0)
database_cleaner (2.1.0)
Expand Down Expand Up @@ -364,6 +367,7 @@ GEM
haml (5.2.2)
temple (>= 0.8.0)
tilt
hashdiff (1.1.0)
hashie (3.6.0)
hiredis (0.6.3)
htmlentities (4.3.4)
Expand Down Expand Up @@ -1017,6 +1021,7 @@ GEM
unicode-display_width (2.6.0)
unicode-types (1.10.0)
validatable (1.6.7)
vcr (6.1.0)
version_gem (1.1.4)
warden (1.2.9)
rack (>= 2.0.9)
Expand All @@ -1025,6 +1030,10 @@ GEM
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
webmock (3.23.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
websocket (1.2.11)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
Expand Down Expand Up @@ -1108,7 +1117,9 @@ DEPENDENCIES
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
vcr
web-console (>= 3.3.0)
webmock
willow_sword!

BUNDLED WITH
Expand Down
4 changes: 4 additions & 0 deletions spec/controllers/archive_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require 'rails_helper'

RSpec.describe ArchiveController do
end
4 changes: 4 additions & 0 deletions spec/models/archive_file_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require 'rails_helper'

RSpec.describe ArchiveFile, type: :model do
end
4 changes: 4 additions & 0 deletions spec/models/archive_file_worker_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require 'rails_helper'

RSpec.describe ArchiveFileWorker, type: :model do
end
6 changes: 6 additions & 0 deletions spec/presenters/hyrax/ds_file_set_presenter_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Hyrax::DsFileSetPresenter do
end
8 changes: 8 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
abort("The Rails environment is running in production mode!") if Rails.env.production?
require 'rspec/rails'
# Add additional requires below this line. Rails is not loaded until this point!
require 'webmock/rspec'
require 'vcr'

# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
Expand Down Expand Up @@ -79,3 +81,9 @@
end

end

VCR.configure do |config|
config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
config.hook_into :webmock
config.allow_http_connections_when_no_cassette = true
end