Skip to content

Commit

Permalink
Utilize new Gemwork dependencies + test support
Browse files Browse the repository at this point in the history
This simplifies definition and update of gem dependencies and
utilization of test/test_helper.rb support/requires.
  • Loading branch information
pdobb committed Nov 26, 2023
1 parent 5cfea74 commit dc8abc3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 40 deletions.
20 changes: 0 additions & 20 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ GEM
remote: https://rubygems.org/
specs:
amazing_print (1.5.0)
ansi (1.5.0)
ast (2.4.2)
builder (3.2.4)
coderay (1.1.3)
debug (1.8.0)
irb (>= 1.5.0)
reline (>= 0.3.1)
docile (1.4.0)
gemwork (0.1.0)
reek
rubocop
Expand All @@ -30,13 +27,6 @@ GEM
kwalify (0.7.2)
language_server-protocol (3.17.0.3)
method_source (1.0.0)
minitest (5.20.0)
minitest-reporters (1.6.1)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
much-stub (0.1.10)
parallel (1.23.0)
parser (3.2.2.4)
ast (~> 2.4.1)
Expand Down Expand Up @@ -80,12 +70,6 @@ GEM
rubocop-rake (0.6.0)
rubocop (~> 1.0)
ruby-progressbar (1.13.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
stringio (3.0.9)
timecop (0.9.8)
unicode-display_width (2.5.0)
Expand All @@ -100,13 +84,9 @@ DEPENDENCIES
amazing_print
debug
gemwork
minitest
minitest-reporters
much-stub
pry
rake
say!
simplecov
timecop

BUNDLED WITH
Expand Down
4 changes: 1 addition & 3 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

# Recompile and install Gemwork locally.
if [ -n "$REBUILD_GEMWORK" ]; then
( cd ~/dev/gemwork && rake install:local )
( cd ~/dev/gemwork && bin/setup && rake install:local )
fi

set -euo pipefail
IFS=$'\n\t'
set -vx

bundle install

# Do any other automated setup that you need to do here
4 changes: 0 additions & 4 deletions say.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "amazing_print"
spec.add_development_dependency "debug"
spec.add_development_dependency "gemwork"
spec.add_development_dependency "minitest"
spec.add_development_dependency "minitest-reporters"
spec.add_development_dependency "much-stub"
spec.add_development_dependency "pry"
spec.add_development_dependency "rake"
spec.add_development_dependency "simplecov"
spec.add_development_dependency "timecop"
end
17 changes: 4 additions & 13 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
# frozen_string_literal: true

require "support/simplecov"
require "gemwork/test/support/simplecov"

$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "say"

require "minitest/autorun"
require "support/reporters"

require "much-stub"
require "gemwork/test/support/reporters"
require "gemwork/test/support/much_stub"
require "gemwork/test/support/spec_dsl"

require "timecop"

class Minitest::Spec
after do
MuchStub.unstub!
end
end

def context(...)
describe(...)
end

0 comments on commit dc8abc3

Please sign in to comment.