Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

OMG fix the broken build!!

  • Loading branch information...
commit 9a96797b2c863237c1f8479180ef8d0cb14581a6 1 parent cc27de3
@fredwu authored
View
4 lib/api_taster/form_builder.rb
@@ -8,12 +8,12 @@ class FormBuilder < AbstractController::Base
def initialize(params)
flush_output_buffer
- @_buffer = '<legend class="hero-legend"></legend>'
+ @_buffer = ''
add_to_buffer(params)
end
def html
- @_buffer
+ "<legend class=\"hero-legend\"></legend>#{@_buffer}"
end
private
View
4 spec/dummy/config/routes.rb
@@ -10,10 +10,6 @@
end
ApiTaster.routes do
- ApiTaster.global_params = {
- :version => 1
- }
-
get '/i_dont_exist_anymore', {
:hello => 'world'
}
View
6 spec/form_builder_spec.rb
@@ -48,12 +48,12 @@ module ApiTaster
end
it "does arrays" do
- builder.html.should match(/name="\[user\]\[comment\]\[title\]\[\]" value="1"/)
+ builder.html.should match(/name="user\[comment\]\[title\]\[\]" value="1"/)
end
it "does nested arrays" do
- builder.html.should match(/name="\[items\]\[\]\[nested_items\]\[\]\[nested_numbers\]\[\]" value="5"/)
- builder.html.should match(/name="\[items\]\[\]\[nested_items\]\[\]\[name\]" value="apple"/)
+ builder.html.should match(/name="items\[\]\[nested_items\]\[\]\[nested_numbers\]\[\]" value="5"/)
+ builder.html.should match(/name="items\[\]\[nested_items\]\[\]\[name\]" value="apple"/)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.