method
its
RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Example::Subject::ExampleGroupMethods
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
its(attribute, &block)
public
Hide source
# File lib/spec/example/subject.rb, line 23 def its(attribute, &block) describe(attribute) do example do self.class.class_eval do define_method(:subject) do super().send(attribute) end end instance_eval(&block) end end end


