Module | Spec::Example::ExampleMethods |
In: |
lib/spec/example/example_methods.rb
|
Concats the class description with the example description.
describe Account do it "should start with a balance of 0" do ... full_description => "Account should start with a balance of 0"
When should is called with no explicit receiver, the call is delegated to the subject of the example group. This could be either an explicit subject generated by calling the block passed to +ExampleGroupMethods#subject+, or, if the group is describing a class, an implicitly generated instance of that class.
Just like should, should_not delegates to the subject (implicit or explicit) of the example group.