Skip to content

Commit

Permalink
Protect from accidents
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepiske committed Dec 6, 2024
1 parent dd27096 commit ffa27dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/iron_trail/testing/rspec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# frozen_string_literal: true

if ENV['RAILS_ENV'] == 'production'
raise 'This file should not be required in production. ' \
'Change the RAILS_ENV env var temporarily to override this.'
end

require 'iron_trail'

module IronTrail
Expand Down
1 change: 0 additions & 1 deletion spec/testing_itself.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
person.update!(first_name: 'Jane')
end


describe 'IronTrail::Testing#with_iron_trail' do
context 'when IronTrail is disabled but we enable it for a while' do
it 'tracks only while enabled' do
Expand Down

0 comments on commit ffa27dd

Please sign in to comment.