Skip to content

Remove rspec test focus, and ensure all tests run - #13820

Merged
jmartin-tech merged 1 commit into
rapid7:masterfrom
adfoster-r7:remove-focused-test-and-ensure-all-tests-run
Jul 7, 2020
Merged

Remove rspec test focus, and ensure all tests run#13820
jmartin-tech merged 1 commit into
rapid7:masterfrom
adfoster-r7:remove-focused-test-and-ensure-all-tests-run

Conversation

@adfoster-r7

@adfoster-r7 adfoster-r7 commented Jul 7, 2020

Copy link
Copy Markdown
Contributor

Only one test is currently being run within the test suite due to an unintentional commit of focus: true on the rspec test suite.

There will be a separate pull request created to ensure that this mistake can't happen in the future

Adding the fail safe to this pull request

@adfoster-r7 adfoster-r7 added the bug label Jul 7, 2020
@jmartin-tech jmartin-tech self-assigned this Jul 7, 2020
@adfoster-r7
adfoster-r7 force-pushed the remove-focused-test-and-ensure-all-tests-run branch from 418d9f1 to 6b93972 Compare July 7, 2020 16:10
@adfoster-r7
adfoster-r7 force-pushed the remove-focused-test-and-ensure-all-tests-run branch from 6b93972 to 2509bbf Compare July 7, 2020 16:29
Comment thread spec/support/shared/examples/msf/db_manager/migration.rb
Comment thread spec/support/shared/examples/msf/db_manager/migration.rb
@jmartin-tech
jmartin-tech merged commit 44d0ff0 into rapid7:master Jul 7, 2020

# if the module eval error includes the module_path then the module_path was passed along correctly
expect(subject).to receive(:elog).with(/#{Regexp.escape(module_path)}/)
expect(subject).to receive(:elog).with(/#{Regexp.escape(module_path)}/, error: an_instance_of(NoMethodError))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error is from the malformed module content intentionally having a mistake:

        # purposeful typo to check that module path is used in backtrace
        inclde Exploit::Remote::Tcp

Which results in a NoMethodError being raised

@adfoster-r7 adfoster-r7 added the rn-no-release-notes no release notes label Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants