Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes deprecation warnings from Formtastic #1508

Merged
merged 1 commit into from Jul 13, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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