Commit ae1b444d0b251e8d39514e07603f509b4c586665
Committed by
Antonio Terceiro
1 parent
fff60050
Exists in
master
and in
29 other branches
Now is possible to leave a scrap on the wall of a company.
(ActionItem1768)
Showing
3 changed files
with
9 additions
and
4 deletions
Show diff stats
app/models/community.rb
app/models/organization.rb
| @@ -132,4 +132,8 @@ class Organization < Profile | @@ -132,4 +132,8 @@ class Organization < Profile | ||
| 132 | super({:domain => "conference.#{environment.default_hostname}"}.merge(options)) | 132 | super({:domain => "conference.#{environment.default_hostname}"}.merge(options)) |
| 133 | end | 133 | end |
| 134 | 134 | ||
| 135 | + def receives_scrap_notification? | ||
| 136 | + false | ||
| 137 | + end | ||
| 138 | + | ||
| 135 | end | 139 | end |
test/unit/enterprise_test.rb
| @@ -408,4 +408,9 @@ class EnterpriseTest < Test::Unit::TestCase | @@ -408,4 +408,9 @@ class EnterpriseTest < Test::Unit::TestCase | ||
| 408 | assert_equal false, e.send(:followed_by?,p2) | 408 | assert_equal false, e.send(:followed_by?,p2) |
| 409 | end | 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 | end | 416 | end |