Download spec/security/runtime_security_spec.rb from denise-oneill-inbox-ru/Rails-8-API-Image-Processing: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/spec/security/runtime_security_spec.rb
- Command line
-
hf download hf://spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/spec/security/runtime_security_spec.rb
-
curl -L -o runtime_security_spec.rb https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/spec/security/runtime_security_spec.rb
585 Bytes
| # frozen_string_literal: true | |
| require "rails_helper" | |
| require "pagy" | |
| require "resolv" | |
| RSpec.describe "runtime security baseline" do | |
| it "runs the supported Ruby release" do | |
| expect(RUBY_VERSION).to eq("3.4.10") | |
| end | |
| it "loads a Pagy release at or above the patched floor" do | |
| version = Gem.loaded_specs.fetch("pagy").version | |
| expect(version).to be >= Gem::Version.new("43.5.6") | |
| end | |
| it "loads a resolv release at or above the patched floor" do | |
| version = Gem.loaded_specs.fetch("resolv").version | |
| expect(version).to be >= Gem::Version.new("0.7.2") | |
| end | |
| end | |