test/generators/resource_generator_test.rb in adminpanel-2.6.0 vs test/generators/resource_generator_test.rb in adminpanel-2.6.1

- old
+ new

@@ -5,10 +5,11 @@ tests Adminpanel::ResourceGenerator destination Rails.root.join('tmp/generators') setup :prepare_destination def after_setup + # Create setup dynamically to test over it. Dir.mkdir Rails.root.join('tmp', 'generators', 'config') Dir.mkdir Rails.root.join('tmp', 'generators', 'config', 'initializers') File.open Rails.root.join('tmp', 'generators', 'config', 'initializers', 'adminpanel_setup.rb'), 'w' do |f| f.puts "Adminpanel.setup do |config| \n" f.puts " config.displayable_resources = [ \n" @@ -137,10 +138,10 @@ /'avatar' => {/, /'type' => 'file_field',/, /'quantity' => {/, /'type' => 'number_field',/, /'date' => {/, - /'type' => 'datepicker',/, + /'type' => 'date',/, /'admin_postfiles' => {/, /'type' => 'adminpanel_file_field',/, /'category_ids' => {/, /'type' => 'checkbox'/, /'options' => Proc.new { |object|/,