|
30 | 30 | application.site_title = "New Title" |
31 | 31 | application.site_title.should == "New Title" |
32 | 32 | end |
33 | | - |
| 33 | + |
34 | 34 | it "should store the site's title link" do |
35 | 35 | application.site_title_link.should == "" |
36 | 36 | end |
|
39 | 39 | application.site_title_link = "http://www.mygreatsite.com" |
40 | 40 | application.site_title_link.should == "http://www.mygreatsite.com" |
41 | 41 | end |
42 | | - |
| 42 | + |
43 | 43 | it "should store the site's title image" do |
44 | 44 | application.site_title_image.should == "" |
45 | 45 | end |
46 | | - |
| 46 | + |
47 | 47 | it "should set the site's title image" do |
48 | 48 | application.site_title_image = "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106" |
49 | 49 | application.site_title_image.should == "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106" |
|
53 | 53 | application.view_factory.should be_an_instance_of(ActiveAdmin::ViewFactory) |
54 | 54 | end |
55 | 55 |
|
56 | | - it "should have deprecated admin notes by default" do |
| 56 | + it "should have deprecated admin notes by default" do |
57 | 57 | application.admin_notes.should be_nil |
58 | 58 | end |
59 | 59 |
|
|
80 | 80 | end |
81 | 81 | end |
82 | 82 |
|
| 83 | + describe "inheritable settings" do |
| 84 | + it "should set csv_options" do |
| 85 | + application.csv_options.should == {} |
| 86 | + end |
| 87 | + |
| 88 | + context "when deprecated" do |
| 89 | + it "should set and warn csv_column_separator" do |
| 90 | + ActiveAdmin::Deprecation.should_receive(:warn) |
| 91 | + application.csv_column_separator.should == ',' |
| 92 | + end |
| 93 | + end |
| 94 | + end |
| 95 | + |
83 | 96 | describe "files in load path" do |
84 | 97 | it "should load files in the first level directory" do |
85 | 98 | application.files_in_load_path.should include(File.expand_path("app/admin/dashboard.rb", Rails.root)) |
|
0 commit comments