| Module | Spec::Example::ExampleGroupMethods |
| In: |
lib/spec/example/example_group_methods.rb
|
| location | [R] | |
| matcher_class | [RW] |
Makes the describe/it syntax available from a class. For example:
class StackSpec < Spec::ExampleGroup
describe Stack, "with no elements"
before
@stack = Stack.new
end
it "should raise on pop" do
lambda{ @stack.pop }.should raise_error
end
end
Use this to pull in examples from shared example groups.