Commit ae1b444d0b251e8d39514e07603f509b4c586665

Authored by Leandro Santos
Committed by Antonio Terceiro
1 parent fff60050

Now is possible to leave a scrap on the wall of a company.

(ActionItem1768)
app/models/community.rb
... ... @@ -75,8 +75,4 @@ class Community < Organization
75 75 end
76 76 end
77 77  
78   - def receives_scrap_notification?
79   - false
80   - end
81   -
82 78 end
... ...
app/models/organization.rb
... ... @@ -132,4 +132,8 @@ class Organization < Profile
132 132 super({:domain => "conference.#{environment.default_hostname}"}.merge(options))
133 133 end
134 134  
  135 + def receives_scrap_notification?
  136 + false
  137 + end
  138 +
135 139 end
... ...
test/unit/enterprise_test.rb
... ... @@ -408,4 +408,9 @@ class EnterpriseTest < Test::Unit::TestCase
408 408 assert_equal false, e.send(:followed_by?,p2)
409 409 end
410 410  
  411 + should 'receive scrap notification' do
  412 + enterprise = fast_create(Enterprise)
  413 + assert_equal false, enterprise.receives_scrap_notification?
  414 + end
  415 +
411 416 end
... ...