Skip to content

Conversation

@BrianHawley
Copy link

Cucumber uses extend, not include.

Cucumber uses extend, not include.
@BrianHawley
Copy link
Author

This change doesn't recommend the use of cucumber for Warden testing; it just enables it.

@BrianHawley
Copy link
Author

Here's an example of this in patch form, suitable for putting in an initializer:

if Rails.env.test?
  Warden::Test::Helpers.module_exec do
    if methods(false).exclude?(:extended)
      def self.extended(base)
        included(base)
      end
    end
  end
end

I call included in the patch just in case the code of that method changes.

@BrianHawley
Copy link
Author

@jsmestad you merged the last few PRs. Could you take a look at this one?

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.

1 participant