Skip to content

Commit

Permalink
Merge pull request #1508 from parndt/deprecation_warnings
Browse files Browse the repository at this point in the history
Fixes deprecation warnings from Formtastic
  • Loading branch information
pcreux committed Jul 13, 2012
2 parents a7cedba + 045e2fe commit 153855c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/unit/form_builder_spec.rb
@@ -1,10 +1,10 @@
require 'spec_helper'
require 'spec_helper'

describe ActiveAdmin::FormBuilder do

# Setup an ActionView::Base object which can be used for
# generating the form for.
let(:helpers) do
let(:helpers) do
view = action_view
def view.posts_path
"/posts"
Expand Down Expand Up @@ -294,12 +294,12 @@ def build_form(options = {}, form_object = Post.new, &block)
end


{
"input :title, :as => :string" => /id\=\"post_title\"/,
"input :title, :as => :text" => /id\=\"post_title\"/,
"input :created_at, :as => :time" => /id\=\"post_created_at_2i\"/,
"input :created_at, :as => :datetime" => /id\=\"post_created_at_2i\"/,
"input :created_at, :as => :date" => /id\=\"post_created_at_2i\"/,
{
"input :title, :as => :string" => /id\=\"post_title\"/,
"input :title, :as => :text" => /id\=\"post_title\"/,
"input :created_at, :as => :time_select" => /id\=\"post_created_at_2i\"/,
"input :created_at, :as => :datetime_select" => /id\=\"post_created_at_2i\"/,
"input :created_at, :as => :date_select" => /id\=\"post_created_at_2i\"/,
}.each do |source, regex|
it "should properly buffer #{source}" do
body = build_form do |f|
Expand Down

0 comments on commit 153855c

Please sign in to comment.