Permalink
Browse files

OMG fix the broken build!!

  • Loading branch information...
1 parent cc27de3 commit 9a96797b2c863237c1f8479180ef8d0cb14581a6 @fredwu committed Jul 17, 2012
Showing with 5 additions and 9 deletions.
  1. +2 −2 lib/api_taster/form_builder.rb
  2. +0 −4 spec/dummy/config/routes.rb
  3. +3 −3 spec/form_builder_spec.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
@@ -10,10 +10,6 @@
end
ApiTaster.routes do
- ApiTaster.global_params = {
- :version => 1
- }
-
get '/i_dont_exist_anymore', {
:hello => 'world'
}
@@ -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

0 comments on commit 9a96797

Please sign in to comment.