Skip to content

Commit

Permalink
Merge pull request #66 from fastruby/fixes/simplecov-configuration
Browse files Browse the repository at this point in the history
SimpleCov must be loaded as the very first thing
  • Loading branch information
mateusdeap authored Aug 18, 2022
2 parents a4a0139 + 246e22f commit 8bc643c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# main [(unreleased)](https://github.com/fastruby/next_rails/compare/v1.2.0...main)

- [BUGFIX: SimpleCov was not reporting accurately due to a bug in the spec helper code](https://github.com/fastruby/next_rails/pull/66)

- [FEATURE: Better documentation for contributing and releasing versions of this gem](https://github.com/fastruby/next_rails/pull/53)

# v1.2.0 / 2022-08-12 [(commits)](https://github.com/fastruby/next_rails/compare/v1.1.0...v1.2.0)

- [FEATURE: Support Ruby versions as old as Ruby 2.0](https://github.com/fastruby/next_rails/pull/54)
Expand Down
11 changes: 6 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
require "bundler/setup"
require "next_rails"

require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true)

if ENV['COVERAGE'] == 'true'
require 'simplecov'
Expand All @@ -23,6 +18,12 @@
end
end

require "bundler/setup"
require "next_rails"

require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true)

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"
Expand Down

0 comments on commit 8bc643c

Please sign in to comment.