File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ def upload_file!(name, ext='csv')
2828 find_button ( 'Import' ) . click
2929 end
3030
31- it "has valid form" do
3231
32+ it "has valid form" do
3333 form = find ( '#new_active_admin_import_model' )
3434 expect ( form [ 'action' ] ) . to eq ( "/admin/authors/do_import" )
3535 expect ( form [ 'enctype' ] ) . to eq ( "multipart/form-data" )
@@ -41,6 +41,16 @@ def upload_file!(name, ext='csv')
4141 expect ( submit_input [ :type ] ) . to eq ( "submit" )
4242 end
4343
44+ context "with hint defined" do
45+ let ( :options ) {
46+ { template_object : ActiveAdminImport ::Model . new ( hint : "hint" ) }
47+ }
48+ it "renders hint at upload page" do
49+ expect ( page ) . to have_content options [ :template_object ] . hint
50+ end
51+
52+ end
53+
4454
4555 context "import file" do
4656
You can’t perform that action at this time.
0 commit comments