From ae1b444d0b251e8d39514e07603f509b4c586665 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 10 Jan 2011 14:09:55 -0300 Subject: [PATCH] Now is possible to leave a scrap on the wall of a company. --- app/models/community.rb | 4 ---- app/models/organization.rb | 4 ++++ test/unit/enterprise_test.rb | 5 +++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/models/community.rb b/app/models/community.rb index 2832781..f18e2b7 100644 --- a/app/models/community.rb +++ b/app/models/community.rb @@ -75,8 +75,4 @@ class Community < Organization end end - def receives_scrap_notification? - false - end - end diff --git a/app/models/organization.rb b/app/models/organization.rb index a1dcce0..2d092ef 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -132,4 +132,8 @@ class Organization < Profile super({:domain => "conference.#{environment.default_hostname}"}.merge(options)) end + def receives_scrap_notification? + false + end + end diff --git a/test/unit/enterprise_test.rb b/test/unit/enterprise_test.rb index 3b7e9e2..edca779 100644 --- a/test/unit/enterprise_test.rb +++ b/test/unit/enterprise_test.rb @@ -408,4 +408,9 @@ class EnterpriseTest < Test::Unit::TestCase assert_equal false, e.send(:followed_by?,p2) end + should 'receive scrap notification' do + enterprise = fast_create(Enterprise) + assert_equal false, enterprise.receives_scrap_notification? + end + end -- libgit2 0.21.2