lib/fix/it.rb in r_spec-0.1.0 vs lib/fix/it.rb in r_spec-0.1.1
- old
+ new
@@ -1,9 +1,10 @@
-require_relative File.join '..', 'r_spec', 'it'
-
# Namespace for the Fix framework.
module Fix
# Override Fix's It class.
class It
- include ::RSpec::It
+ # @return [Class] The class of the described object.
+ def described_class
+ subject.is_a?(::Class) ? subject : subject.class
+ end
end
end