Parent

Included Modules

Class Index [+]

Quicksearch

Merb::Test::ExampleGroup

Public Class Methods

describe(*args, &example_group_block) click to toggle source

This is a copy of the method in rspec, so we can have describe “…”, :when => “logged in”, and the like

    # File lib/merb-core/test/test_ext/rspec.rb, line 54
54:         def describe(*args, &example_group_block)
55:           ret = super
56:           
57:           params = args.last.is_a?(Hash) ? args.last : {}
58:           if example_group_block
59:             params[:when] = params[:when] || params[:given]
60:             [params[:when]].flatten.compact.each do |w|
61:               ret.module_eval %{it_should_behave_like "#{w}"}
62:             end
63:           end
64:         end
given(*args, &example_group_block) click to toggle source
    # File lib/merb-core/test/test_ext/rspec.rb, line 67
67:         def given(*args, &example_group_block)
68:           args << {} unless Hash === args.last
69:           params = args.last
70:           
71:           params[:shared] = true
72:           
73:           describe(*args, &example_group_block)
74:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.