Commit 0da926a2f6e4c272b19e9bd0d350d12cd60643c3
1 parent
f77d834b
Exists in
master
and in
29 other branches
ActionItem23: aliasing body as settings
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1119 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
8 additions
and
0 deletions
Show diff stats
app/models/rss_feed.rb
test/unit/rss_feed_test.rb
| @@ -18,6 +18,11 @@ class RssFeedTest < Test::Unit::TestCase | @@ -18,6 +18,11 @@ class RssFeedTest < Test::Unit::TestCase | ||
| 18 | assert !feed.errors.invalid?(:body) | 18 | assert !feed.errors.invalid?(:body) |
| 19 | end | 19 | end |
| 20 | 20 | ||
| 21 | + should 'alias body as "settings"' do | ||
| 22 | + feed = RssFeed.new | ||
| 23 | + assert_same feed.body, feed.settings | ||
| 24 | + end | ||
| 25 | + | ||
| 21 | should 'list recent articles of profile when top-level' do | 26 | should 'list recent articles of profile when top-level' do |
| 22 | profile = create_user('testuser').person | 27 | profile = create_user('testuser').person |
| 23 | a1 = profile.articles.build(:name => 'article 1'); a1.save! | 28 | a1 = profile.articles.build(:name => 'article 1'); a1.save! |
| @@ -44,6 +49,8 @@ class RssFeedTest < Test::Unit::TestCase | @@ -44,6 +49,8 @@ class RssFeedTest < Test::Unit::TestCase | ||
| 44 | end | 49 | end |
| 45 | 50 | ||
| 46 | should 'be able to choose to put abstract or entire body on feed' do | 51 | should 'be able to choose to put abstract or entire body on feed' do |
| 52 | + #feed = RssFeed.new | ||
| 53 | + #feed. | ||
| 47 | flunk 'pending' | 54 | flunk 'pending' |
| 48 | end | 55 | end |
| 49 | 56 |