diff --git a/app/views/enterprise/show.rhtml b/app/views/enterprise/show.rhtml
index 1b55b1a..4add7dc 100644
--- a/app/views/enterprise/show.rhtml
+++ b/app/views/enterprise/show.rhtml
@@ -21,3 +21,5 @@
<%= help _('Remove the enterprise from the system') %>
<%= link_to _('Affiliate'), :action => 'affiliate' unless @my_enterprises.include?(@enterprise) %>
<%= help _('Be a member of the enterprise') %>
+<%= link_to _('Activate'), :action => 'activate', :id => @enterprise if @my_pending_enterprises.include?(@enterprise) %>
+<%= help _('Activate an approved enterprise') if @my_pending_enterprises.include?(@enterprise) %>
diff --git a/test/integration/activate_enterprise_test.rb b/test/integration/activate_enterprise_test.rb
new file mode 100644
index 0000000..1c175c5
--- /dev/null
+++ b/test/integration/activate_enterprise_test.rb
@@ -0,0 +1,25 @@
+require "#{File.dirname(__FILE__)}/../test_helper"
+
+class ActivateEnterpriseTest < ActionController::IntegrationTest
+ all_fixtures
+
+ def test_activate_approved_enterprise
+ login('ze', 'test')
+
+ get '/admin/enterprise'
+ assert_response :redirect
+
+ follow_redirect!
+ assert_response :success
+ assert_tag :tag => 'a', :attributes => {:href => '/admin/enterprise/activate/5'}
+
+ post '/admin/enterprise/activate/5'
+ assert_response :redirect
+
+ follow_redirect!
+ assert_response :redirect
+
+ follow_redirect!
+ assert_response :success
+ end
+end
--
libgit2 0.21.2