Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
Showing with 41 additions and 119 deletions.
  1. +2 −19 Gemfile
  2. +34 −40 Gemfile.lock
  3. +1 −32 Guardfile
  4. +1 −3 Rakefile
  5. +0 −1 test/foo_test.rb
  6. +3 −24 test/test_helper.rb
View
21 Gemfile
@@ -1,21 +1,4 @@
source :rubygems
-group :test do
- gem 'minitest' # use the gem for a few extra features compared to stdlib
- gem 'turn' # prettier minitest output
- gem 'guard' # watch file changes
- gem 'guard-spork' # communicate to a long-running process when files change
- gem 'guard-bundler' # re-do 'bundle install' when the Gemfile changes
- gem 'guard-minitest', # run testdrb on file changes
- github: 'rking/guard-minitest' # https://github.com/guard/guard-minitest/pull/50
- gem 'spork-minitest', # long-running test server, so each run is quicker
- github: 'rking/spork-minitest' # https://github.com/semaperepelitsa/spork-minitest/pull/10
- gem 'rb-inotify', require: false # No harm when installed on OS X
- gem 'rb-fsevent', require: false # No harm when installed on Linux!
+group :development do
+ gem 'working'
end
-
-group :test do
- gem 'pry-de' # pull in all of pry-full, plus a few handy commands.
- gem 'rake'
-end
-
-# vim:ft=ruby
View
74 Gemfile.lock
@@ -1,35 +1,23 @@
-GIT
- remote: git://github.com/rking/guard-minitest.git
- revision: 06e7c27602b92c51d9fd85b11ed7e6e7f17e3015
- specs:
- guard-minitest (1.0.0.beta1)
- guard (~> 1.1)
-
-GIT
- remote: git://github.com/rking/spork-minitest.git
- revision: 65402fc132367c91248e7be7b0cf1cfc8c5767c0
- specs:
- spork-minitest (1.0.0.beta1)
- spork
-
GEM
remote: http://rubygems.org/
specs:
ansi (1.4.3)
awesome_print (1.1.0)
+ beg (0.0.3)
+ guard
binding_of_caller (0.6.8)
- bond (0.4.2)
+ bond (0.4.3)
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
coderay (1.0.8)
columnize (0.3.6)
- debugger (1.1.4)
+ debugger (1.2.3)
columnize (>= 0.3.1)
debugger-linecache (~> 1.1.1)
- debugger-ruby_core_source (~> 1.1.3)
+ debugger-ruby_core_source (~> 1.1.5)
debugger-linecache (1.1.2)
debugger-ruby_core_source (>= 1.1.1)
- debugger-ruby_core_source (1.1.5)
+ debugger-ruby_core_source (1.1.6)
diff-lcs (1.1.3)
diffy (2.1.0)
eventmachine (1.0.0)
@@ -38,8 +26,8 @@ GEM
diff-lcs (~> 1.1)
mime-types (~> 1.15)
posix-spawn (~> 0.3.6)
- guard (1.5.4)
- listen (>= 0.4.2)
+ guard (1.6.1)
+ listen (>= 0.6.0)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
thor (>= 0.14.6)
@@ -50,17 +38,23 @@ GEM
childprocess (>= 0.2.3)
guard (>= 1.1)
spork (>= 0.8.4)
+ guard-sporkminitest (0.0.1)
+ guard
+ guard-spork
+ rb-fsevent
+ rb-inotify
+ spork-minitest
highline (1.6.15)
interception (0.3)
- jist (1.2.0)
+ jist (1.3.0)
json
json (1.7.5)
listen (0.6.0)
lumberjack (1.0.2)
method_source (0.8.1)
mime-types (1.19)
- minitest (4.3.2)
- nokogiri (1.5.5)
+ minitest (4.3.3)
+ nokogiri (1.5.6)
posix-spawn (0.3.6)
pry (0.9.10)
coderay (~> 1.0.5)
@@ -71,15 +65,15 @@ GEM
pry-de (0.1.0)
guard
pry-full
- pry-debugger (0.2.0)
- debugger (~> 1.1.3)
- pry (~> 0.9.9)
+ pry-debugger (0.2.1)
+ debugger (~> 1.2.0)
+ pry (~> 0.9.10)
pry-developer_tools (0.1.1)
pry (>= 0.9.8.pre, < 0.11)
pry-doc (0.4.4)
pry (>= 0.9.9.6)
yard (~> 0.8.1)
- pry-docmore (0.0.2)
+ pry-docmore (0.0.3)
pry
pry-doc
pry-editline (1.1.1)
@@ -118,7 +112,7 @@ GEM
eventmachine
highline
pry (~> 0.9)
- pry-rescue (0.13)
+ pry-rescue (0.14)
interception (>= 0.3)
pry
pry-stack_explorer (0.4.7)
@@ -127,29 +121,29 @@ GEM
pry (>= 0.9.8)
pry-theme (0.1.3)
json
- rake (10.0.2)
+ rake (10.0.3)
rb-fsevent (0.9.2)
rb-inotify (0.8.8)
ffi (>= 0.5.0)
slop (3.3.3)
spork (0.9.2)
+ spork-minitest (0.0.3)
+ spork
thor (0.16.0)
turn (0.9.6)
ansi
+ working (0.0.4)
+ beg
+ guard-bundler
+ guard-sporkminitest
+ minitest
+ pry-de
+ rake
+ turn
yard (0.8.3)
PLATFORMS
ruby
DEPENDENCIES
- guard
- guard-bundler
- guard-minitest!
- guard-spork
- minitest
- pry-de
- rake
- rb-fsevent
- rb-inotify
- spork-minitest!
- turn
+ working
View
33 Guardfile
@@ -1,32 +1 @@
-# More info at https://github.com/guard/guard#readme
-
-# Rerun bundler, if needed
-guard 'bundler' do watch /^(Gemfile|.*\.gemspec)$/ end
-
-# These reboot spork completely
-guard 'spork',
- minitest: true,
- test_unit: false,
-
- # Four lines of Rails stuff:
- minitest_unit_env: { 'RAILS_ENV' => 'test' } do
- watch %r{config/(?:application|environment(?:s/test)?).rb}
- watch %r{^config/initializers/.+\.rb$}
- watch /Gemfile(?:\.lock)?/
-
- watch 'test/test_helper.rb' do :minitest end
-end
-
-guard 'minitest', drb: true do
- # Minitest::Unit style test files
- watch %r|^test/.*_test\.rb|
- watch %r|^lib/(.*)\.rb| do |m| "test/#{m[1]}_test.rb" end
- watch %r|^test/test_helper\.rb| do 'test' end
-
- # Rails app/ dir mapping directly parallel to test/* dirs.
- # (Assumes all test/* dir names are the same as the dirs in app/*
- # Will need adjustment if you use app/controllers ⇒ test/functional, etc.)
- #watch %r|^app/(.*)\.rb| do |m| "test/#{m[1]}_test.rb" end
-end
-
-# vim:ft=ruby
+require 'working/guard'
View
4 Rakefile
@@ -1,3 +1 @@
-task :default do
- sh 'testrb test'
-end
+require 'working/rake_tasks'
View
1 test/foo_test.rb
@@ -1,5 +1,4 @@
require './test/test_helper'
-require 'foo'
class TestFoo < MiniTest::Unit::TestCase
def test_foo_one
assert_equal 'Oh, Hai!', Foo.new.hi
View
27 test/test_helper.rb
@@ -1,26 +1,5 @@
-require 'bundler'
-Bundler.require :development, :test
-require 'minitest/autorun'
-require 'pry-rescue/minitest' if ENV['test_rescue']
-$:.unshift './lib'
-
-Turn.config do |c|
- # c.format options include:
- # :outline - turn's original case/test outline mode [default]
- # :progress - indicates progress with progress bar
- # :dotted - test/unit's traditional dot-progress mode
- # :pretty - new pretty reporter
- # :marshal - dump output as YAML (normal run mode only)
- # :cue - interactive testing
- c.format = :pretty
- # turn on invoke/execute tracing, enable full backtrace
- # c.trace = true
-end
-
-puts "[test_helper.rb toplevel running]"
-Spork.prefork do
- puts "[Spork.prefork running]"
-end
+require 'working/test_helper'
+# Spork.prefork doesn't like when this line is missing.
Spork.each_run do
- puts "[Spork.each_run running]"
+ require 'foo'
end

No commit comments for this range

Something went wrong with that request. Please try again.