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
Paul DobbinSchmaltz committed Nov 26, 2023
1 parent 5cfea74 commit 2fb251f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 25 deletions.
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ GEM
irb (>= 1.5.0)
reline (>= 0.3.1)
docile (1.4.0)
gemwork (0.1.0)
gemwork (0.2.0)
minitest
minitest-reporters
much-stub
reek
rubocop
rubocop-minitest
rubocop-performance
rubocop-rake
simplecov
yard
io-console (0.6.0)
irb (1.9.1)
Expand Down Expand Up @@ -100,13 +104,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 2fb251f

Please sign in to comment.