Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update test infrastructure:

* replace rspec with minitest-spec
* remove spork
* add simplecov
  • Loading branch information...
commit 6a599ae9d9ca1696c383bd0357999b1641b0eed0 1 parent d7cde23
Phil Cohen authored
36 Gemfile.lock
@@ -46,17 +46,13 @@ GEM
46 46 xpath (~> 0.1.4)
47 47 childprocess (0.3.3)
48 48 ffi (~> 1.0.6)
49   - diff-lcs (1.1.3)
50 49 erubis (2.7.0)
51 50 ffi (1.0.11)
52 51 guard (1.2.3)
53 52 listen (>= 0.4.2)
54 53 thor (>= 0.14.6)
55   - guard-rspec (1.2.0)
56   - guard (>= 1.1)
57   - guard-spork (1.1.0)
58   - guard (>= 1.1)
59   - spork (>= 0.8.4)
  54 + guard-minitest (0.5.0)
  55 + guard (>= 0.4)
60 56 hike (1.2.1)
61 57 i18n (0.6.0)
62 58 journey (1.0.4)
@@ -75,6 +71,10 @@ GEM
75 71 mime-types (~> 1.16)
76 72 treetop (~> 1.4.8)
77 73 mime-types (1.19)
  74 + minitest (3.2.0)
  75 + minitest-spec-rails (3.0.5)
  76 + minitest
  77 + rails (~> 3.0)
78 78 multi_json (1.3.6)
79 79 nokogiri (1.5.5)
80 80 polyglot (0.3.3)
@@ -108,26 +108,16 @@ GEM
108 108 ffi (>= 0.5.0)
109 109 rdoc (3.12)
110 110 json (~> 1.4)
111   - rspec (2.11.0)
112   - rspec-core (~> 2.11.0)
113   - rspec-expectations (~> 2.11.0)
114   - rspec-mocks (~> 2.11.0)
115   - rspec-core (2.11.0)
116   - rspec-expectations (2.11.1)
117   - diff-lcs (~> 1.1.3)
118   - rspec-mocks (2.11.1)
119   - rspec-rails (2.11.0)
120   - actionpack (>= 3.0)
121   - activesupport (>= 3.0)
122   - railties (>= 3.0)
123   - rspec (~> 2.11.0)
124 111 rubyzip (0.9.9)
125 112 selenium-webdriver (2.24.0)
126 113 childprocess (>= 0.2.5)
127 114 libwebsocket (~> 0.1.3)
128 115 multi_json (~> 1.0)
129 116 rubyzip
130   - spork (0.9.2)
  117 + simplecov (0.6.4)
  118 + multi_json (~> 1.0)
  119 + simplecov-html (~> 0.5.3)
  120 + simplecov-html (0.5.3)
131 121 sprockets (2.1.3)
132 122 hike (~> 1.2)
133 123 rack (~> 1.0)
@@ -148,8 +138,8 @@ PLATFORMS
148 138 DEPENDENCIES
149 139 capybara
150 140 dead_letter_office!
151   - guard-rspec
152   - guard-spork
  141 + guard-minitest
153 142 jquery-rails
154   - rspec-rails
  143 + minitest-spec-rails
  144 + simplecov
155 145 sqlite3
14 Guardfile
... ... @@ -1,16 +1,4 @@
1   -guard "spork", cucumber_env: { "RAILS_ENV" => "test" }, rspec_env: { "RAILS_ENV" => "test" } do
2   - watch("config/application.rb")
3   - watch("config/environment.rb")
4   - watch("config/environments/test.rb")
5   - watch(%r{^config/initializers/.+\.rb$})
6   - watch("Gemfile")
7   - watch("Gemfile.lock")
8   - watch("spec/spec_helper.rb") { :rspec }
9   - watch("test/test_helper.rb") { :test_unit }
10   - watch(%r{features/support/}) { :cucumber }
11   -end
12   -
13   -guard "rspec", cli: "--color --drb", version: 2 do
  1 +guard "minitest" do
14 2 watch(%r{^spec/.+_spec\.rb$})
15 3 watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
16 4 watch("spec/spec_helper.rb") { "spec" }
8 dead_letter_office.gemspec
@@ -13,13 +13,13 @@ Gem::Specification.new do |s|
13 13 s.summary = "This project implements a Dead letter office for your Rails 3 application."
14 14 s.description = "Undeliverable emails (deliveries which raise exceptions) will be logged to the database and can be viewed via a mountable web interface."
15 15
16   - s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
  16 + s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"]
17 17
18 18 s.add_dependency "rails", "~> 3.2.6"
19 19
20 20 s.add_development_dependency "capybara"
21   - s.add_development_dependency "guard-rspec"
22   - s.add_development_dependency "guard-spork"
23   - s.add_development_dependency "rspec-rails"
  21 + s.add_development_dependency "guard-minitest"
  22 + s.add_development_dependency "minitest-spec-rails"
24 23 s.add_development_dependency "sqlite3"
  24 + s.add_development_dependency "simplecov"
25 25 end
34 spec/spec_helper.rb
... ... @@ -1,27 +1,11 @@
1   -require "spork"
  1 +require "simplecov"
  2 +SimpleCov.add_filter "spec"
  3 +SimpleCov.command_name "MiniTest"
  4 +SimpleCov.start "rails"
2 5
3   -Spork.prefork do
4   - # Loading more in this block will cause your tests to run faster. However,
5   - # if you change any configuration or code from libraries loaded here, you'll
6   - # need to restart spork for it take effect.
  6 +ENV["RAILS_ENV"] ||= "test"
  7 +require File.expand_path("../dummy/config/environment", __FILE__)
  8 +require "minitest/autorun"
  9 +require "minitest/pride"
7 10
8   - ENV["RAILS_ENV"] ||= "test"
9   - require File.expand_path("../dummy/config/environment", __FILE__)
10   - require "rspec/rails"
11   - require "rspec/autorun"
12   -
13   - Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
14   -
15   - RSpec.configure do |config|
16   - config.fixture_path = "#{::Rails.root}/spec/fixtures"
17   - config.use_transactional_fixtures = true
18   - config.infer_base_class_for_anonymous_controllers = false
19   - config.order = "random"
20   - end
21   -
22   -end
23   -
24   -Spork.each_run do
25   - # This code will be run each time you run your specs.
26   -
27   -end
  11 +Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

0 comments on commit 6a599ae

Please sign in to comment.
Something went wrong with that request. Please try again.