Skip to content

Commit 5791ebc

Browse files
committed
Slight tweaks to RSpec configuration.
1 parent 2ccb437 commit 5791ebc

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.rspec

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
--color
2-
-r spec_helper
3-
-f documentation
2+
--require spec_helper

spec/spec_helper.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
require 'simplecov'
2-
SimpleCov.start 'rails'
1+
require "simplecov"
2+
SimpleCov.start "rails"
33

4-
ENV['RAILS_ENV'] ||= 'test'
4+
ENV["RAILS_ENV"] ||= "test"
55

6-
require File.expand_path('../dummy/config/environment', __FILE__)
6+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
77

8-
require 'rspec/rails'
9-
require 'shoulda-matchers'
10-
require 'ffaker'
8+
require "rspec/rails"
9+
require "shoulda-matchers"
10+
require "ffaker"
11+
12+
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each { |f| require f }
1113

1214
RSpec.configure do |config|
1315
config.infer_spec_type_from_file_location!
@@ -21,5 +23,3 @@
2123
mock.syntax = [:should, :expect]
2224
end
2325
end
24-
25-
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }

0 commit comments

Comments
 (0)