From 49af46c6867ac11628f624d2376df95600d1bd15 Mon Sep 17 00:00:00 2001 From: Stormwind Date: Mon, 8 May 2023 12:49:31 +0200 Subject: Update dependencies Updated the dependencies to current versions of the gems this framework relies on. Also got the tests back running, as the synthax of RSpec slightly changed the past years. --- Gemfile | 1 + Gemfile.lock | 38 +++++++++++++++++++++----------- spec/spec_helper.rb | 1 + spec/unit/zero/controller/render_spec.rb | 2 +- 4 files changed, 28 insertions(+), 14 deletions(-) diff --git a/Gemfile b/Gemfile index 7e3e3bd..3f1aa92 100644 --- a/Gemfile +++ b/Gemfile @@ -6,4 +6,5 @@ group :test do gem 'thor' gem 'rack' gem 'rspec' + gem 'rspec-its' end diff --git a/Gemfile.lock b/Gemfile.lock index 7f402b2..20c34e0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,24 +7,36 @@ PATH GEM remote: https://rubygems.org/ specs: - diff-lcs (1.2.5) - rack (1.5.2) - rspec (2.14.1) - rspec-core (~> 2.14.0) - rspec-expectations (~> 2.14.0) - rspec-mocks (~> 2.14.0) - rspec-core (2.14.8) - rspec-expectations (2.14.5) - diff-lcs (>= 1.1.3, < 2.0) - rspec-mocks (2.14.6) - thor (0.18.1) - tilt (2.0.0) + diff-lcs (1.5.0) + rack (3.0.4.1) + rspec (3.12.0) + rspec-core (~> 3.12.0) + rspec-expectations (~> 3.12.0) + rspec-mocks (~> 3.12.0) + rspec-core (3.12.1) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-its (1.3.0) + rspec-core (>= 3.0.0) + rspec-expectations (>= 3.0.0) + rspec-mocks (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-support (3.12.0) + thor (1.2.1) + tilt (2.0.11) PLATFORMS - ruby + x86_64-linux DEPENDENCIES rack rspec + rspec-its thor zero! + +BUNDLED WITH + 2.4.1 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 733a9a9..2db4ebb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,5 @@ require 'bundler/setup' +require 'rspec/its' if ENV['SIMPLECOV'] require 'simplecov' diff --git a/spec/unit/zero/controller/render_spec.rb b/spec/unit/zero/controller/render_spec.rb index 0228524..e9fde82 100644 --- a/spec/unit/zero/controller/render_spec.rb +++ b/spec/unit/zero/controller/render_spec.rb @@ -5,7 +5,7 @@ describe Zero::Controller, '#render' do subject { object.new(env) } let(:env) { EnvGenerator.get('/foo') } - let(:renderer) { mock } + let(:renderer) { Object.new } let(:template) { '/foo' } before :each do -- cgit v1.2.3-70-g09d2