test/csrf.rb in cuba-sugar-0.2.4 vs test/csrf.rb in cuba-sugar-0.3.0
- old
+ new
@@ -1,9 +1,12 @@
require File.expand_path("helper", File.dirname(__FILE__))
require 'cuba/render'
+require 'cuba/sugar/as'
+require 'cuba/sugar/csrf'
test "set status and headers through helper" do
- Cuba.plugin Cuba::Sugar
+ Cuba.plugin Cuba::Sugar::As
+ Cuba.plugin Cuba::Sugar::Csrf
Cuba.plugin Cuba::Render
Cuba.define do
on "users" do
as do
render "test/fixtures/csrf.erb"