-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set a default root_directory so source code highlighting works out of… #171
Conversation
I'm happy to merge this when the Rubocop offence is fixed. |
1eec183
to
b54b3ad
Compare
thx for pinging ... did not watch CI :D |
Thanks. Although Circle is stuck, I can see some failing tests :( |
b54b3ad
to
0b43f2c
Compare
all good! |
@@ -167,11 +167,11 @@ | |||
filter_chain = notifier.instance_variable_get(:@filter_chain) | |||
filters = filter_chain.instance_variable_get(:@filters) | |||
|
|||
expect(filters.size).to eq(2) | |||
expect(filters.size).to eq(3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk why this happened ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be that a filter is added when root_directory exists
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's expected
airbrake-ruby/lib/airbrake-ruby/filter_chain.rb
Lines 56 to 57 in 43f780b
root_directory = config.root_directory | |
add_filter(root_directory_filter(root_directory)) if root_directory |
… the box
fixes #167