Skip to content

Commit a32943c

Browse files
tmecklemTimothy Mecklem
authored and
Timothy Mecklem
committed
replacing test::unit
1 parent 9147b19 commit a32943c

File tree

11 files changed

+42
-28
lines changed

11 files changed

+42
-28
lines changed

.rspec

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--color

spec/spec_helper.rb

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This file is copied to spec/ when you run 'rails generate rspec:install'
2+
ENV["RAILS_ENV"] ||= 'test'
3+
require File.expand_path("../../config/environment", __FILE__)
4+
require 'rspec/rails'
5+
6+
# Requires supporting ruby files with custom matchers and macros, etc, in
7+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
8+
# run as spec files by default. This means that files in spec/support that end
9+
# in _spec.rb will both be required and run as specs, causing the specs to be
10+
# run twice. It is recommended that you do not name files matching this glob to
11+
# end with _spec.rb. You can configure this pattern with with the --pattern
12+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
13+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
14+
15+
# Checks for pending migrations before tests are run.
16+
# If you are not using ActiveRecord, you can remove this line.
17+
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
18+
19+
RSpec.configure do |config|
20+
# ## Mock Framework
21+
#
22+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
23+
#
24+
# config.mock_with :mocha
25+
# config.mock_with :flexmock
26+
# config.mock_with :rr
27+
28+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
29+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
30+
31+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
32+
# examples within a transaction, remove the following line or assign false
33+
# instead of true.
34+
config.use_transactional_fixtures = true
35+
36+
# Run specs in random order to surface order dependencies. If you find an
37+
# order dependency and want to debug it, you can fix the order by providing
38+
# the seed, which is printed after each run.
39+
# --seed 1234
40+
config.order = "random"
41+
end

test/controllers/.keep

Whitespace-only changes.

test/controllers/apps_controller_test.rb

-9
This file was deleted.

test/fixtures/.keep

Whitespace-only changes.

test/helpers/.keep

Whitespace-only changes.

test/helpers/apps_helper_test.rb

-4
This file was deleted.

test/integration/.keep

Whitespace-only changes.

test/mailers/.keep

Whitespace-only changes.

test/models/.keep

Whitespace-only changes.

test/test_helper.rb

-15
This file was deleted.

0 commit comments

Comments
 (0)