Skip to content

Commit

Permalink
Removed some duplicate code and fixed some naming
Browse files Browse the repository at this point in the history
  • Loading branch information
gregbell committed Dec 1, 2011
1 parent da93ed0 commit cfee3e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion spec/unit/resource/page_presenters_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
resource.page_presenters.should == {}
end

it "should add a page config" do
it "should add a page presenter" do
page_presenter = ActiveAdmin::PagePresenter.new
resource.set_page_presenter(:index, page_presenter)
resource.page_presenters[:index].should == page_presenter
Expand Down
12 changes: 0 additions & 12 deletions spec/unit/resource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,6 @@ class ::News; def self.has_many(*); end end
end
end

describe "page configs" do
context "when initialized" do
it "should be empty" do
config.page_presenters.should == {}
end
end
it "should be set-able" do
config.page_presenters[:index] = "hello world"
config.page_presenters[:index].should == "hello world"
end
end

describe "scoping" do
context "when using a block" do
before do
Expand Down

0 comments on commit cfee3e8

Please sign in to comment.