examples/testing.rb in lunetas-0.0.0 vs examples/testing.rb in lunetas-0.0.1
- old
+ new
@@ -1,9 +1,13 @@
-require '../lib/lunetas'
+require 'lunetas'
class Testing
include Lunetas::Candy
matches '/hello/(\w+)', :name
+
+ def before
+ @name = @name.capitalize
+ end
def get
"Hello #{@name}! #{params[:chunky]}"
end