spec/unit/registration_spec.rb in activeadmin-0.1.0 vs spec/unit/registration_spec.rb in activeadmin-0.1.1

- old
+ new

@@ -21,11 +21,11 @@ ActiveAdmin.register Category, :namespace => :hello_world end it "should generate a path to the dashboard" do ActiveAdmin.register Category, :namespace => :hello_world reload_routes! - Rails.application.routes.url_helpers.methods.should include("hello_world_dashboard_path") + Rails.application.routes.url_helpers.methods.collect(&:to_s).should include("hello_world_dashboard_path") end end context "with no namespace" do it "should call register on the root namespace" do @@ -37,10 +37,10 @@ end it "should generate a path to the dashboard" do ActiveAdmin.register Category, :namespace => false reload_routes! - Rails.application.routes.url_helpers.methods.should include("dashboard_path") + Rails.application.routes.url_helpers.methods.collect(&:to_s).should include("dashboard_path") end end end