Permalink
Browse files

Avoid including Combinatorics Mixins into the global namespace.

  • Loading branch information...
1 parent 987398a commit 0f37d658e75ecec9bc88ae580a48d5d9a4032f6c @postmodern committed Mar 7, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/derange/cardinality_spec.rb
@@ -1,9 +1,11 @@
require 'spec_helper'
require 'combinatorics/derange/cardinality'
-include Combinatorics, Combinatorics::Derange
-
describe Derange do
+ subject do
+ Object.new.extend(Combinatorics::Derange)
+ end
+
it 'should alias cardinality to subfactorial' do
should respond_to(:cardinality)
end

0 comments on commit 0f37d65

Please sign in to comment.