mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-22 08:17:52 -05:00
23 lines
549 B
Ruby
23 lines
549 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'posts/index.rss.builder', :type => "view" do
|
|
before(:each) do
|
|
controller.stub(:current_user) { nil }
|
|
@author = FactoryGirl.create(:member)
|
|
assign(:recent_posts, [
|
|
FactoryGirl.build(:post, :id => 1, :author => @author),
|
|
FactoryGirl.build(:post, :id => 2, :author => @author)
|
|
])
|
|
render
|
|
end
|
|
|
|
it 'shows RSS feed title' do
|
|
rendered.should contain "Recent posts from all members"
|
|
end
|
|
|
|
it 'shows content of posts' do
|
|
rendered.should contain "This is some text."
|
|
end
|
|
|
|
end
|