deas 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/deas/test_helpers.rb +5 -1
- data/lib/deas/version.rb +1 -1
- data/test/unit/view_handler_tests.rb +2 -2
- metadata +3 -3
data/lib/deas/test_helpers.rb
CHANGED
|
@@ -6,10 +6,14 @@ module Deas
|
|
|
6
6
|
|
|
7
7
|
module_function
|
|
8
8
|
|
|
9
|
-
def test_runner(handler_class, args
|
|
9
|
+
def test_runner(handler_class, args=nil)
|
|
10
10
|
TestRunner.new(handler_class, args)
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
def test_handler(handler_class, args=nil)
|
|
14
|
+
test_runner(handler_class, args).handler
|
|
15
|
+
end
|
|
16
|
+
|
|
13
17
|
end
|
|
14
18
|
|
|
15
19
|
end
|
data/lib/deas/version.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Deas::ViewHandler
|
|
|
10
10
|
|
|
11
11
|
desc "Deas::ViewHandler"
|
|
12
12
|
setup do
|
|
13
|
-
@handler =
|
|
13
|
+
@handler = test_handler(TestViewHandler)
|
|
14
14
|
end
|
|
15
15
|
subject{ @handler }
|
|
16
16
|
|
|
@@ -129,7 +129,7 @@ module Deas::ViewHandler
|
|
|
129
129
|
|
|
130
130
|
class WithMethodFlagsTests < BaseTests
|
|
131
131
|
setup do
|
|
132
|
-
@handler =
|
|
132
|
+
@handler = test_handler(FlagViewHandler)
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
should "have called `init!` and it's callbacks" do
|
metadata
CHANGED