File tree Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change
1
+ SimpleCov . start
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ source "https://rubygems.org"
2
2
3
3
# Specify your gem's dependencies in arms.gemspec
4
4
gemspec
5
+ gem 'byebug'
Original file line number Diff line number Diff line change @@ -30,4 +30,6 @@ Gem::Specification.new do |spec|
30
30
spec . add_development_dependency "bundler" , "~> 2.0"
31
31
spec . add_development_dependency "rake" , "~> 10.0"
32
32
spec . add_development_dependency "minitest" , "~> 5.0"
33
+ spec . add_development_dependency "minitest-reporters"
34
+ spec . add_development_dependency "simplecov"
33
35
end
Original file line number Diff line number Diff line change 1
- $LOAD_PATH. unshift File . expand_path ( "../../lib" , __FILE__ )
2
- require "arms"
1
+ proc { |p | $:. unshift ( p ) unless $:. any? { |lp | File . expand_path ( lp ) == p } } . call ( File . expand_path ( '../lib' , File . dirname ( __FILE__ ) ) )
3
2
4
- require "minitest/autorun"
3
+ require 'simplecov'
4
+ require 'byebug'
5
+
6
+ # NO EXPECTATIONS
7
+ ENV [ "MT_NO_EXPECTATIONS" ] = ''
8
+
9
+ require 'minitest/autorun'
10
+ require 'minitest/reporters'
11
+ Minitest ::Reporters . use! Minitest ::Reporters ::SpecReporter . new
12
+
13
+ class ARMSSpec < Minitest ::Spec
14
+ end
15
+
16
+ # register this to be the base class for specs instead of Minitest::Spec
17
+ Minitest ::Spec . register_spec_type ( // , ARMSSpec )
18
+
19
+ require 'arms'
You can’t perform that action at this time.
0 commit comments