Skip to content

Commit cfee3e8

Browse files
committed
Removed some duplicate code and fixed some naming
1 parent da93ed0 commit cfee3e8

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

spec/unit/resource/page_presenters_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
resource.page_presenters.should == {}
1010
end
1111

12-
it "should add a page config" do
12+
it "should add a page presenter" do
1313
page_presenter = ActiveAdmin::PagePresenter.new
1414
resource.set_page_presenter(:index, page_presenter)
1515
resource.page_presenters[:index].should == page_presenter

spec/unit/resource_spec.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,6 @@ class ::News; def self.has_many(*); end end
127127
end
128128
end
129129

130-
describe "page configs" do
131-
context "when initialized" do
132-
it "should be empty" do
133-
config.page_presenters.should == {}
134-
end
135-
end
136-
it "should be set-able" do
137-
config.page_presenters[:index] = "hello world"
138-
config.page_presenters[:index].should == "hello world"
139-
end
140-
end
141-
142130
describe "scoping" do
143131
context "when using a block" do
144132
before do

0 commit comments

Comments
 (0)