minitest_rails_tools 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/helper_extension.rb +9 -1
- metadata +2 -2
data/lib/helper_extension.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
class HelperExtension
|
2
2
|
|
3
|
-
|
3
|
+
include ActionView::Helpers
|
4
|
+
|
5
|
+
attr_accessor :current_methods, :output_buffer
|
4
6
|
|
5
7
|
def initialize(name)
|
6
8
|
@current_methods ||= []
|
@@ -13,6 +15,12 @@ class HelperExtension
|
|
13
15
|
@current_methods = klass.instance_methods
|
14
16
|
self.class.send(:include, klass)
|
15
17
|
end
|
18
|
+
|
19
|
+
# We don't need this protection in our tests.
|
20
|
+
def protect_against_forgery?
|
21
|
+
false
|
22
|
+
end
|
23
|
+
|
16
24
|
end
|
17
25
|
|
18
26
|
def helper(name)
|
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.4
|
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-15 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.
|