Skip to content

Stub any_instance of Interceptor#8

Merged
prathamesh-sonpatki merged 1 commit intobigbinary:masterfrom
billhorsman:master
Jan 23, 2015
Merged

Stub any_instance of Interceptor#8
prathamesh-sonpatki merged 1 commit intobigbinary:masterfrom
billhorsman:master

Conversation

@billhorsman
Copy link
Copy Markdown
Contributor

Add default stub to set env to ‘test’ so that you only have to override
that if you want it to be something different.

This fixes a failure in the tests I was experiencing because
test_subject_prefix_in_production couldn’t stub env until the
interceptor was instantiated, but the initializer tests for production?
in the sanitize_forward_emails_to method called in the initializer.

Add default stub to set env to ‘test’ so that you only have to override
that if you want it to be something different.

This fixes a failure in the tests I was experiencing because
test_subject_prefix_in_production couldn’t stub env until the
interceptor was instantiated, but the initializer tests for production?
in the sanitize_forward_emails_to method called in the initializer.
@prathamesh-sonpatki
Copy link
Copy Markdown
Contributor

Looks good. Thanks.

prathamesh-sonpatki added a commit that referenced this pull request Jan 23, 2015
Stub any_instance of Interceptor
@prathamesh-sonpatki prathamesh-sonpatki merged commit e045ee0 into bigbinary:master Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants