OSDN Git Service

275542653d2dc7446b124e641ddab7f5f4cc78ae
[pettanr/pettanr.git] / spec / views / scrolls / show.html.erb_spec.rb
1 require 'spec_helper'\r
2 \r
3 describe 'scrolls/show.html.erb' do\r
4   before do\r
5     @user = FactoryGirl.create( :user_yas)\r
6     @author = FactoryGirl.create :author, :user_id => @user.id\r
7   end\r
8 \r
9   context 'with 2 widgets' do\r
10     before(:each) do\r
11       @scroll = FactoryGirl.create :scroll, :author_id => @author.id\r
12       @operators = Operator.new [@user, @author, @artist, @admin, @demand_user]\r
13       assign(:item, @scroll)\r
14       assign(:play_count, 3)\r
15       assign(:operators, @operators)\r
16     end\r
17     \r
18     it 'rendered' do\r
19       render\r
20       \r
21       rendered.should contain('icon')\r
22     end\r
23   end\r
24 end\r
25 \r