!RBIX 9595534255132031488 x M 1 n n x 10 __script__ i 31 5 7 0 64 47 49 1 1 15 5 7 2 64 47 49 1 1 15 5 7 3 64 56 4 47 50 5 1 15 2 11 I 3 I 0 I 0 I 0 n p 6 s 11 spec_helper x 7 require s 3 csv s 17 RailsAdmin Export M 1 p 2 x 9 for_block t n x 9 __block__ i 40 5 56 0 47 50 1 0 15 5 7 2 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 7 1 15 5 7 8 64 56 9 47 50 7 1 11 I 4 I 0 I 0 I 0 I -2 p 10 M 1 p 2 x 9 for_block t n x 9 __block__ i 4 5 48 0 11 I 2 I 0 I 0 I 0 I -2 p 1 x 4 page p 3 I 0 I 6 I 4 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 x 7 subject x 4 each M 1 p 2 x 9 for_block t n x 9 __block__ i 379 45 0 1 49 2 0 7 3 13 70 10 19 44 43 4 12 49 5 1 50 6 0 15 4 4 49 7 0 56 8 50 6 0 38 9 15 39 9 49 10 0 38 11 15 39 11 45 12 13 7 14 49 15 1 13 18 2 49 16 1 15 15 39 11 45 12 17 7 18 49 15 1 13 18 2 49 19 1 15 15 39 11 80 49 7 0 56 20 50 6 0 38 21 13 18 2 49 22 1 15 15 39 11 49 23 0 15 45 24 25 43 26 13 71 27 47 9 133 47 49 28 0 13 45 29 30 47 49 31 1 15 8 139 45 29 32 49 27 1 38 33 15 44 43 34 80 49 35 1 13 7 36 64 45 37 38 49 39 0 7 40 64 7 41 64 7 42 64 7 43 64 7 44 64 7 45 64 7 46 64 7 47 64 7 48 64 7 49 64 35 11 49 50 2 15 13 7 51 64 44 43 34 4 3 49 35 1 13 7 52 64 44 43 34 79 49 35 1 13 7 36 64 45 37 53 49 39 0 7 54 64 7 40 64 7 42 64 7 55 64 7 56 64 7 57 64 7 58 64 7 59 64 7 60 64 7 61 64 7 62 64 7 63 64 7 64 64 35 14 49 50 2 15 49 50 2 15 13 7 65 64 44 43 34 79 49 35 1 13 7 36 64 45 37 66 49 39 0 7 54 64 7 40 64 7 67 64 7 68 64 7 69 64 7 70 64 7 71 64 7 48 64 35 9 49 50 2 15 49 50 2 15 13 7 72 64 44 43 34 79 49 35 1 13 7 36 64 45 37 73 49 39 0 7 74 64 7 54 64 7 40 64 35 4 49 50 2 15 49 50 2 15 49 50 2 15 38 75 11 I 18 I 0 I 0 I 0 I -2 p 76 x 7 Comment n x 3 all x 7 destroy x 4 Proc x 14 __from_block__ x 3 map x 5 times M 1 p 2 x 9 for_block t n x 9 __block__ i 9 45 0 1 7 2 49 3 1 11 I 3 I 0 I 0 I 0 I -2 p 4 x 11 FactoryGirl n x 6 player x 6 create p 3 I 0 I b I 9 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 x 8 @players x 5 first x 7 @player x 11 FactoryGirl n x 4 team x 6 create x 5 team= n x 5 draft x 6 draft= M 1 p 2 x 9 for_block t n x 9 __block__ i 9 45 0 1 7 2 49 3 1 11 I 3 I 0 I 0 I 0 I -2 p 4 x 11 FactoryGirl n x 7 comment x 6 create p 3 I 0 I f I 9 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 x 9 @comments x 9 comments= x 4 save x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate x 6 Player n x 10 initialize n x 15 @abstract_model x 4 Hash x 16 new_from_literal s 4 only x 9 PK_COLUMN n x 4 to_s s 10 updated_at s 10 deleted_at s 4 name s 8 position s 6 number s 7 retired s 7 injured s 7 born_on s 5 notes s 9 suspended x 3 []= s 7 include s 4 team n s 10 created_at s 8 logo_url s 7 manager s 8 ballpark s 6 mascot s 7 founded s 4 wins s 6 losses s 14 win_percentage s 7 revenue s 5 color s 5 draft n s 4 date s 5 round s 4 pick s 7 overall s 7 college s 8 comments n s 7 content x 19 @non_default_schema p 33 I 0 I 9 I 17 I b I 24 I c I 2c I d I 3e I e I 50 I f I 65 I 10 I 6b I 12 I 8e I 1c I 96 I 16 I c4 I 17 I c7 I 1b I d0 I 18 I 116 I 19 I 14d I 1a I 178 I 15 I 17b x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 x 6 before s 35 POST /admin/players/export (prompt) M 1 p 2 x 9 for_block t n x 9 __block__ i 44 5 7 0 64 56 1 47 50 2 1 15 5 7 3 64 56 4 47 50 2 1 15 5 7 5 64 56 6 47 50 2 1 15 5 7 7 64 56 8 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 9 s 130 should allow to export to CSV with associations and default schema, containing properly translated header and follow configuration M 1 p 2 x 9 for_block t n x 9 __block__ i 377 45 0 1 56 2 50 3 0 15 5 5 44 43 4 79 49 5 1 13 7 6 7 7 64 49 8 2 15 47 49 9 1 47 49 10 1 15 5 5 7 11 64 47 49 12 1 47 49 13 1 15 5 7 14 64 44 43 4 79 49 5 1 13 7 15 7 16 64 49 8 2 15 47 49 17 2 15 5 7 18 64 47 49 19 1 15 45 20 21 5 7 22 64 47 49 23 1 49 24 0 49 25 1 19 0 15 20 0 78 49 26 1 49 13 0 7 27 64 7 28 64 7 29 64 7 30 64 7 31 64 7 32 64 7 33 64 7 34 64 7 35 64 7 36 64 7 37 64 7 38 64 7 39 64 7 40 64 7 41 64 7 42 64 7 43 64 7 44 64 7 45 64 7 46 64 7 47 64 7 48 64 7 49 64 7 50 64 7 51 64 7 52 64 7 53 64 7 54 64 7 55 64 7 56 64 7 57 64 7 58 64 7 59 64 7 60 64 7 61 64 7 62 64 7 63 64 7 64 64 7 65 64 7 66 64 35 40 49 67 1 15 20 0 49 68 0 5 39 69 49 70 0 7 71 64 81 72 47 49 73 1 49 13 1 15 20 0 49 68 0 5 39 69 49 74 0 49 70 0 47 49 73 1 49 13 1 15 20 0 49 68 0 5 39 69 49 75 0 49 76 0 47 49 73 1 49 13 1 15 5 5 39 69 49 77 0 49 78 0 49 79 0 7 80 64 49 81 1 49 78 0 49 82 0 47 49 12 1 47 49 13 1 15 5 5 39 69 49 77 0 49 83 0 49 79 0 7 80 64 49 81 1 49 78 0 49 82 0 47 49 12 1 47 49 13 1 11 I 2b I 1 I 0 I 0 I -2 p 84 x 10 RailsAdmin n M 1 p 2 x 9 for_block t n x 9 __block__ i 15 57 19 0 15 20 0 45 0 1 56 2 50 3 1 11 I 5 I 1 I 1 I 1 n p 4 x 6 Player n M 1 p 2 x 9 for_block t n x 9 __block__ i 14 5 48 0 15 5 7 1 56 2 47 50 3 1 11 I 4 I 0 I 0 I 0 I -2 p 4 x 18 include_all_fields x 4 name M 1 p 2 x 9 for_block t n x 9 __block__ i 8 5 56 0 47 50 1 0 11 I 3 I 0 I 0 I 0 I -2 p 2 M 1 p 2 x 9 for_block t n x 9 __block__ i 11 5 48 0 47 101 1 7 2 63 2 11 I 3 I 0 I 0 I 0 I -2 p 3 x 5 value x 4 to_s s 9 exported p 3 I 0 I 27 I b x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 x 12 export_value p 3 I 0 I 26 I 8 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 x 5 field p 5 I 0 I 24 I 4 I 25 I e x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 x 5 model p 5 I 0 I 22 I 4 I 23 I f x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 1 x 1 c x 6 config x 4 Hash x 16 new_from_literal x 10 model_name s 6 player x 3 []= x 11 export_path x 5 visit s 23 Select fields to export x 12 have_content x 6 should s 11 ',' x 4 from s 29 csv_options_generator_col_sep x 6 select s 13 Export to csv x 12 click_button x 3 CSV n s 4 body x 4 find x 4 text x 5 parse x 2 [] s 2 Id s 10 Created at s 10 Updated at s 10 Deleted at s 4 Name s 8 Position s 6 Number s 7 Retired s 7 Injured s 7 Born on s 5 Notes s 9 Suspended s 9 Id [Team] s 17 Created at [Team] s 17 Updated at [Team] s 11 Name [Team] s 15 Logo url [Team] s 19 Team Manager [Team] s 15 Ballpark [Team] s 13 Mascot [Team] s 14 Founded [Team] s 11 Wins [Team] s 13 Losses [Team] s 21 Win percentage [Team] s 14 Revenue [Team] s 12 Color [Team] s 19 Custom field [Team] s 10 Id [Draft] s 18 Created at [Draft] s 18 Updated at [Draft] s 12 Date [Draft] s 13 Round [Draft] s 12 Pick [Draft] s 15 Overall [Draft] s 15 College [Draft] s 13 Notes [Draft] s 13 Id [Comments] s 18 Content [Comments] s 21 Created at [Comments] s 21 Updated at [Comments] x 2 =~ x 7 flatten x 7 @player x 4 name s 9 exported x 1 + x 7 include x 4 team x 5 draft x 7 college x 8 comments x 5 first x 7 content s 1 x 5 split x 5 strip x 6 second p 39 I 0 I 22 I 9 I 2d I 25 I 2e I 33 I 2f I 4d I 30 I 56 I 31 I 6a I 32 I 85 I 33 I 9d I 34 I ac I 35 I bb I 36 I ca I 37 I d9 I 38 I e8 I 39 I f1 I 3a I 109 I 3b I 11f I 3c I 135 I 3e I 157 I 3f I 179 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 1 x 3 csv x 2 it s 30 should allow to export to JSON M 1 p 2 x 9 for_block t n x 9 __block__ i 56 5 5 44 43 0 79 49 1 1 13 7 2 7 3 64 49 4 2 15 47 49 5 1 47 49 6 1 15 5 7 7 64 47 49 8 1 15 5 5 39 9 49 10 0 49 11 0 47 49 12 1 47 49 13 1 11 I 7 I 0 I 0 I 0 I -2 p 14 x 4 Hash x 16 new_from_literal x 10 model_name s 6 player x 3 []= x 11 export_path x 5 visit s 14 Export to json x 12 click_button x 7 @player x 4 team x 4 name x 12 have_content x 6 should p 7 I 0 I 43 I 1c I 44 I 25 I 45 I 38 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 s 29 should allow to export to XML M 1 p 2 x 9 for_block t n x 9 __block__ i 130 5 5 44 43 0 79 49 1 1 13 7 2 7 3 64 49 4 2 15 47 49 5 1 47 49 6 1 15 5 7 7 64 47 49 8 1 15 45 9 10 7 11 13 70 9 58 15 44 43 12 7 13 78 49 14 2 6 11 49 15 1 13 9 106 15 45 16 17 7 18 83 19 10 77 2 8 78 3 13 10 106 15 45 16 20 7 18 83 19 13 9 106 15 45 21 22 43 23 43 24 7 25 64 49 26 1 9 128 5 5 39 27 49 28 0 49 29 0 47 49 30 1 47 49 31 1 8 129 1 11 I 7 I 0 I 0 I 0 I -2 p 32 x 4 Hash x 16 new_from_literal x 10 model_name s 6 player x 3 []= x 11 export_path x 5 visit s 13 Export to xml x 12 click_button x 12 RUBY_VERSION n n x 6 Regexp s 4 1\.9 x 3 new x 2 =~ x 6 CI_ORM n x 7 mongoid x 2 == n x 11 ActiveModel n x 7 VERSION x 6 STRING s 3 3.2 x 2 >= x 7 @player x 4 team x 4 name x 12 have_content x 6 should p 15 I 0 I 49 I 1c I 4a I 25 I 50 I 41 I 51 I 6c I 52 I 80 I 51 I 81 I 0 I 82 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 s 53 should export polymorphic fields the easy way for now M 1 p 2 x 9 for_block t n x 9 __block__ i 135 5 5 44 43 0 79 49 1 1 13 7 2 7 3 64 49 4 2 15 47 49 5 1 47 49 6 1 15 5 7 7 64 44 43 0 79 49 1 1 13 7 8 7 9 64 49 4 2 15 47 49 10 2 15 5 7 11 64 47 49 12 1 15 45 13 14 5 7 15 64 47 49 16 1 49 17 0 49 18 1 19 0 15 20 0 78 49 19 1 49 20 0 7 21 64 7 22 64 7 23 64 7 24 64 7 25 64 7 26 64 35 6 49 27 1 15 20 0 44 43 28 79 77 49 29 2 49 19 1 56 30 50 31 0 11 I 9 I 1 I 0 I 0 I -2 p 32 x 4 Hash x 16 new_from_literal x 10 model_name s 7 comment x 3 []= x 11 export_path x 5 visit s 11 ',' x 4 from s 29 csv_options_generator_col_sep x 6 select s 13 Export to csv x 12 click_button x 3 CSV n s 4 body x 4 find x 4 text x 5 parse x 2 [] x 6 should s 2 Id s 11 Commentable s 16 Commentable type s 7 Content s 10 Created at s 10 Updated at x 2 =~ x 5 Range x 3 new M 1 p 2 x 9 for_block t n x 9 __block__ i 68 57 19 0 15 20 0 21 1 0 78 49 0 1 7 1 64 49 2 1 49 0 1 49 3 0 39 4 49 5 0 49 6 0 83 7 15 20 0 21 1 0 78 49 0 1 7 8 64 49 2 1 49 0 1 49 3 0 39 4 49 9 0 49 6 0 83 7 11 I 5 I 1 I 1 I 1 n p 10 x 2 [] s 11 Commentable x 5 index x 6 should x 7 @player x 2 id x 4 to_s x 2 == s 16 Commentable type x 5 class p 7 I 0 I 5c I 4 I 5d I 24 I 5e I 44 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 1 x 4 line x 4 each p 13 I 0 I 57 I 1c I 58 I 36 I 59 I 3f I 5a I 53 I 5b I 74 I 5c I 87 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 1 x 3 csv p 9 I 0 I 21 I b I 42 I 16 I 48 I 21 I 56 I 2c x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 x 8 describe s 42 POST /admin/players/export :format => :csv M 1 p 2 x 9 for_block t n x 9 __block__ i 11 5 7 0 64 56 1 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 3 s 34 should export with modified schema M 1 p 2 x 9 for_block t n x 9 __block__ i 134 5 48 0 49 1 0 5 44 43 2 4 5 49 3 1 13 7 4 7 5 64 49 6 2 15 13 7 7 39 8 49 6 2 15 13 7 9 2 49 6 2 15 13 7 10 2 49 6 2 15 13 7 11 44 43 2 79 49 3 1 13 7 12 44 43 2 79 49 3 1 13 7 13 7 14 64 49 6 2 15 49 6 2 15 49 6 2 15 47 49 15 1 49 16 1 15 45 17 18 5 7 19 64 47 49 20 1 49 21 0 49 22 1 19 0 15 20 0 78 49 23 1 5 7 24 64 47 49 25 1 49 26 1 11 I e I 1 I 0 I 0 I -2 p 27 x 4 page x 6 driver x 4 Hash x 16 new_from_literal x 10 model_name s 6 player x 3 []= x 6 schema x 19 @non_default_schema x 3 csv x 3 all x 11 csv_options x 9 generator x 7 col_sep s 1 , x 11 export_path x 4 post x 3 CSV n s 4 body x 4 find x 4 text x 5 parse x 2 [] s 10 Created at x 7 include x 10 should_not p 7 I 0 I 65 I 60 I 66 I 74 I 67 I 86 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 1 x 3 csv x 2 it p 3 I 0 I 64 I b x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 p 9 I 0 I 6 I 8 I 8 I 12 I 1f I 1d I 63 I 28 x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0 x 8 describe p 7 I 0 I 1 I 9 I 2 I 12 I 4 I 1f x 95 /Users/erik/Projects/rails_admin/spec/integration/basic/export/rails_admin_basic_export_spec.rb p 0