GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of wycats/merb-core
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/dsiem/merb-core.git
commit  e23637a5717e1d1d0c2eef7cdc8425af92ea8c81
tree    f64d09129349423609b5932695d907eafa376d12
parent  6793ef9897e5ee6c11f0d29b743dbc9989fa722c
merb-core / lib / merb-core / test / example_groups / helper_example_group.rb
100644 34 lines (33 sloc) 0.927 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Based on Spec::Rails::Example::HelperExampleGroup from RSpec
 
module Merb::Test::Rspec::Example
  # Helper Specs live in spec/helpers/.
  #
  # Helper Specs use Merb::Test::Rspec::Example::HelperExampleGroup, which
  # allows you to include your Helper directly in the context and write specs
  # directly against its methods.
  #
  # To automatically include a helper module into your spec, you pass the helper
  # name to #describe:
  #
  # describe Merb::ThingHelper do
  # ...
  #
  # ==== Example
  #
  # module Merb
  # module DeepThought
  # def ultimate_answer
  # 42
  # end
  # end
  # end
  #
  # describe Merb::DeepThought do
  # it "should tell you the answer to the ultimate question" do
  # ultimate_answer.should == 42
  # end
  # end
  class HelperExampleGroup < MerbExampleGroup
    Spec::Example::ExampleGroupFactory.register(:helper, self)
  end
end