Binding.pry is ignored by rspec

I expect a pry session to be opened in my console during rspec execution. Am I doing something wrong? Or expect abnormal behavior?

Gemfile:

 group :development, :test do gem 'rspec' gem 'rspec-rails' ... gem 'pry-rails' ... end 

Gemfile.lock:

 ... pry (0.10.0) ... rspec-rails (3.0.1) 

Specification:

 require 'rails_helper' RSpec.describe Account, type: :model, do let!(:acct) { FactoryGirl.create(:account) } describe '#hash' do it 'should ...' do acct.property = 5 binding.pry expect(acct).to_not be_nil end end end 

Prefixes:

 % rspec ... Failed examples: ... Randomized with seed 59654 
+6
source share

Source: https://habr.com/ru/post/971065/


All Articles