merb-helpers 0.9.13 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/merb-helpers/form/helpers.rb +2 -2
- data/spec/merb.main.pid +1 -1
- data/spec/merb_test.log +21 -0
- data/spec/spec_helper.rb +3 -1
- metadata +3 -3
@@ -103,7 +103,7 @@ module Merb::Helpers::Form
|
|
103
103
|
# <%= form_for @person do %>
|
104
104
|
# <%= text_field :first_name, :label => "First Name" %>
|
105
105
|
# <%= text_field :last_name, :label => "Last Name" %>
|
106
|
-
# <%= fields_for
|
106
|
+
# <%= fields_for @permission do %>
|
107
107
|
# <%= check_box :is_admin, :label => "Administrator" %>
|
108
108
|
# <% end =%>
|
109
109
|
# <%= submit "Create" %>
|
@@ -111,7 +111,7 @@ module Merb::Helpers::Form
|
|
111
111
|
def fields_for(name, attrs = {}, &blk)
|
112
112
|
attrs ||= {}
|
113
113
|
with_form_context(name, attrs.delete(:builder)) do
|
114
|
-
|
114
|
+
capture(&blk)
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
data/spec/merb.main.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3421
|
data/spec/merb_test.log
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
~ Compiling routes...
|
2
|
+
~ Started request handling: Fri Nov 07 23:40:11 -0500 2008
|
3
|
+
~ Params: {"format"=>nil, "action"=>"tag_with_content", "id"=>nil, "controller"=>"tag_helper"}
|
4
|
+
~ {:after_filters_time=>1.4e-05, :action_time=>0.00059, :before_filters_time=>1.4e-05, :dispatch_time=>0.001015}
|
5
|
+
~
|
6
|
+
|
7
|
+
~ Started request handling: Fri Nov 07 23:40:11 -0500 2008
|
8
|
+
~ Params: {"format"=>nil, "action"=>"tag_with_content_in_the_block", "id"=>nil, "controller"=>"tag_helper"}
|
9
|
+
~ {:after_filters_time=>6.0e-06, :action_time=>0.000356, :before_filters_time=>5.0e-06, :dispatch_time=>0.000582}
|
10
|
+
~
|
11
|
+
|
12
|
+
~ Started request handling: Fri Nov 07 23:40:11 -0500 2008
|
13
|
+
~ Params: {"format"=>nil, "action"=>"tag_with_attributes", "id"=>nil, "controller"=>"tag_helper"}
|
14
|
+
~ {:after_filters_time=>6.0e-06, :action_time=>0.000349, :before_filters_time=>4.0e-06, :dispatch_time=>0.000546}
|
15
|
+
~
|
16
|
+
|
17
|
+
~ Started request handling: Fri Nov 07 23:40:11 -0500 2008
|
18
|
+
~ Params: {"format"=>nil, "action"=>"nested_tags", "id"=>nil, "controller"=>"tag_helper"}
|
19
|
+
~ {:after_filters_time=>5.0e-06, :action_time=>0.000454, :before_filters_time=>4.0e-06, :dispatch_time=>0.000651}
|
20
|
+
~
|
21
|
+
|
data/spec/spec_helper.rb
CHANGED
@@ -3,6 +3,7 @@ require "spec"
|
|
3
3
|
require "merb-core"
|
4
4
|
require File.join(File.dirname(__FILE__),"..",'lib',"merb-helpers")
|
5
5
|
require "date"
|
6
|
+
require "webrat"
|
6
7
|
|
7
8
|
# Please read merb_helpers_form_spec.rb
|
8
9
|
# for more info on how to test helpers
|
@@ -145,8 +146,9 @@ end
|
|
145
146
|
Spec::Runner.configure do |config|
|
146
147
|
config.include Merb::Test::Helper
|
147
148
|
config.include Merb::Test::RspecMatchers
|
148
|
-
config.include Merb::Test::Rspec::ViewMatchers
|
149
149
|
config.include Merb::Test::RequestHelper
|
150
|
+
config.include Webrat::Matchers
|
151
|
+
config.include Webrat::HaveTagMatcher
|
150
152
|
|
151
153
|
def with_level(level)
|
152
154
|
Merb.logger = Merb::Logger.new(StringIO.new, level)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merb-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0
|
4
|
+
version: "1.0"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael D. Ivey
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-11-
|
12
|
+
date: 2008-11-08 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0
|
23
|
+
version: "1.0"
|
24
24
|
version:
|
25
25
|
description: Helper support for Merb
|
26
26
|
email: ivey@gweezlebur.com
|