deas 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,10 +6,14 @@ module Deas
6
6
 
7
7
  module_function
8
8
 
9
- def test_runner(handler_class, args = nil)
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
@@ -1,3 +1,3 @@
1
1
  module Deas
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
@@ -10,7 +10,7 @@ module Deas::ViewHandler
10
10
 
11
11
  desc "Deas::ViewHandler"
12
12
  setup do
13
- @handler = test_runner(TestViewHandler).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 = test_runner(FlagViewHandler).handler
132
+ @handler = test_handler(FlagViewHandler)
133
133
  end
134
134
 
135
135
  should "have called `init!` and it's callbacks" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deas
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 8
8
+ - 9
9
9
  - 0
10
- version: 0.8.0
10
+ version: 0.9.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding