wycats (owner)

Revisions

  • 54c2e0 wycats Sat Sep 13 18:36:38 -0700 2008
  • 483808 Sat Sep 13 18:01:50 -0700 2008
  • 904237 Sat Sep 13 17:59:03 -0700 2008
gist: 10680 Download_button fork
public
Public Clone URL: git://gist.github.com/10680.git
bug_p.rb
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
# Iteration 1
 
class Foo < Application
  def awesome
    "Awesome"
  end
end
 
match("/foo/awesome").to(:controller => Foo, :action => :awesome).name(:awesome)
 
#spec
it("returns awesome") do
  request_route(:awesome).should have_body("Awesome")
end
 
# Iteration 2
 
class Bar < Application
  def zoo
    "Awesome"
  end
end
 
match("/foo/awesome").to(:controller => Bar, :action => :zoo).name(:awesome)
 
# no change in spec