diff --git a/app/views/memberships/index.rhtml b/app/views/memberships/index.rhtml
index 183ee14..f1e4d62 100644
--- a/app/views/memberships/index.rhtml
+++ b/app/views/memberships/index.rhtml
@@ -4,7 +4,6 @@
<% button_bar do %>
<%= button(:add, _('Create a new community'), :controller => 'memberships', :action => 'new_community') %>
- <%= button(:add, __('Register a new Enterprise'), :controller => 'enterprise_registration') if environment.regions.any?{|i| i.has_validator?} %>
<%= button :back, _('Go back'), :controller => 'profile_editor' %>
<% end %>
diff --git a/test/functional/memberships_controller_test.rb b/test/functional/memberships_controller_test.rb
index db1702d..67f1bf0 100644
--- a/test/functional/memberships_controller_test.rb
+++ b/test/functional/memberships_controller_test.rb
@@ -134,18 +134,6 @@ class MembershipsControllerTest < Test::Unit::TestCase
assert_tag :tag => 'a', :attributes => { :href => "/myprofile/testuser/memberships/new_community" }
end
- should 'not display link to register new enterprise if there is no validators' do
- get :index, :profile => 'testuser'
- assert_no_tag :tag => 'a', :content => 'Register a new Enterprise'
- end
-
- should 'display link to register new enterprise' do
- reg = Environment.default.regions.create!(:name => 'Region test')
- reg.validators.create!(:name => 'Validator test', :identifier => 'validator-test')
- get :index, :profile => 'testuser'
- assert_tag :tag => 'a', :content => 'Register a new Enterprise'
- end
-
should 'render destroy_community template' do
community = Community.create!(:name => 'A community to destroy')
get :destroy_community, :profile => 'testuser', :id => community.id
--
libgit2 0.21.2