minitest_rails_tools 0.1.5 → 0.1.6
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/helper_extension.rb +5 -1
- metadata +2 -2
data/lib/helper_extension.rb
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
class HelperExtension
|
|
2
2
|
|
|
3
3
|
include ActionView::Helpers
|
|
4
|
+
include Rails.application.routes.url_helpers
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
attr_accessor :current_methods, :output_buffer
|
|
6
7
|
|
|
7
8
|
def initialize(name)
|
|
8
9
|
@output_buffer = ''
|
|
@@ -24,6 +25,9 @@ class HelperExtension
|
|
|
24
25
|
|
|
25
26
|
end
|
|
26
27
|
|
|
28
|
+
# Allow to use url_helpers inside the tests.
|
|
29
|
+
include Rails.application.routes.url_helpers
|
|
30
|
+
|
|
27
31
|
def helper(name)
|
|
28
32
|
HelperExtension.new(name)
|
|
29
33
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minitest_rails_tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-03-
|
|
12
|
+
date: 2013-03-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: A collection of little helpers to make working with Rails and Minitest
|
|
15
15
|
a bit easier.
|