spec/unit/resource/ordering_spec.rb in activeadmin-1.0.0.pre5 vs spec/unit/resource/ordering_spec.rb in activeadmin-1.0.0

- old
+ new

@@ -5,10 +5,10 @@ describe "#order_by" do let(:application) { ActiveAdmin::Application.new } let(:namespace) { ActiveAdmin::Namespace.new application, :admin } let(:resource_config) { ActiveAdmin::Resource.new namespace, Post } - let(:dsl){ ActiveAdmin::ResourceDSL.new(resource_config, Post) } + let(:dsl){ ActiveAdmin::ResourceDSL.new(resource_config) } it "should register the ordering in the config" do dsl.run_registration_block do order_by(:age) do |order_clause| if order_clause.order == 'desc'