Skip to content

Check for RSpec::Core before loading RSpec helpers#398

Merged
batter merged 1 commit intopaper-trail-gem:masterfrom
robotfelix:fix-rspec-mocks-issue
Jul 18, 2014
Merged

Check for RSpec::Core before loading RSpec helpers#398
batter merged 1 commit intopaper-trail-gem:masterfrom
robotfelix:fix-rspec-mocks-issue

Conversation

@robotfelix
Copy link
Copy Markdown
Contributor

paper_trail currently breaks during initialisation whenever rspec-mocks is used with another test framework (eg: Minitest).

This is a minor tweak so that paper_trail checks that the RSpec::Core module is defined before trying to load the RSpec test helpers (RSpec::Core will be defined if either the rspec gem or it's dependency rspec-core is loaded).

@batter batter merged commit 28da9da into paper-trail-gem:master Jul 18, 2014
batter added a commit that referenced this pull request Jul 18, 2014
@batter
Copy link
Copy Markdown
Collaborator

batter commented Jul 18, 2014

Cheers!

@robotfelix
Copy link
Copy Markdown
Contributor Author

No problem - great work Ben! :)

@robotfelix robotfelix deleted the fix-rspec-mocks-issue branch August 28, 2014 08:44
batter added a commit that referenced this pull request Aug 29, 2014
@batter batter added this to the 3.0.5 milestone Sep 2, 2014
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