wycats / merb-core

Merb Core: All you need. None you don't. — Read more

This URL has Read+Write access

merb-core / spec / public / test / controllers / spec_helper_controller.rb
100644 30 lines (23 sloc) 0.583 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
class SpecHelperController < Merb::Controller
  
  def index
    Merb::Test::ControllerAssertionMock.called(:index)
  end
  
  def show
    Merb::Test::ControllerAssertionMock.called(:show)
  end
  
  def edit
    Merb::Test::ControllerAssertionMock.called(:edit)
  end
  
  def new
    Merb::Test::ControllerAssertionMock.called(:new)
  end
  
  def create
    Merb::Test::ControllerAssertionMock.called(:create)
  end
  
  def update
    Merb::Test::ControllerAssertionMock.called(:update)
  end
  
  def destroy
    Merb::Test::ControllerAssertionMock.called(:destroy)
  end
end