RSpec doesn't give me any backtrace

Hey,

I trying to get a backtrace with rspec but I can’t get it working for
some reason.

This is the test file:
require ‘spec_helper’

describe ActivityReport do
it “should create a new instance given valid attributes” do
activity = Factory(:activity_report)
end
end

This is the command I run:
rspec --backtrace spec/models/activity_report_spec.rb

And this is what I get:
No examples matched {:focus=>true}. Running all.

ActivityReport
should create a new instance given valid attributes (FAILED - 1)

Failures:

  1. ActivityReport should create a new instance given valid attributes
    Failure/Error: Unable to find matching line from backtrace
    SystemStackError:
    stack level too deep

/Users/pbartels/.rvm/gems/[email protected]/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:206

Finished in 40.76 seconds
1 example, 1 failure

Failed examples:

rspec ./spec/models/activity_report_spec.rb:16 # ActivityReport should
create a new instance given valid attributes

My .rspec:
–format nested
–color
–drb
–backtrace

And my RSpec part in spec_helper.rb:
RSpec.configure do |config|
config.mock_with :rspec

config.use_transactional_fixtures = true

config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run :focus => true
config.run_all_when_everything_filtered = true

config.backtrace_clean_patterns = [
//lib\d*/ruby//,
/bin//,
#/gems/,
/spec/spec_helper.rb/,
/lib/rspec/(core|expectations|matchers|mocks)/
]
end

I tried it with and without “backtrace_clean_patterns”.

Anyone knows what’s wrong here?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs