Update spec/controllers/tag_followings_controller_spec.rb

This commit is contained in:
memarko 2011-12-26 19:01:27 +01:00
parent c766163422
commit 360e041bf6

View file

@ -26,8 +26,23 @@ describe TagFollowingsController do
get :index
assigns[:stream].should be_a Stream::FollowedTag
end
describe 'if empty' do
it 'suceeds' do
bob.followed_tags.delete_all
get :index
response.should be_success
end
it 'assigns a stream' do
bob.followed_tags.delete_all
get :index
assigns[:stream].should be_a Stream::FollowedTag
end
end
end
describe "create" do
describe "successfully" do
it "creates a new TagFollowing" do