Update spec/controllers/tag_followings_controller_spec.rb
This commit is contained in:
parent
c766163422
commit
360e041bf6
1 changed files with 15 additions and 0 deletions
|
|
@ -26,8 +26,23 @@ describe TagFollowingsController do
|
||||||
get :index
|
get :index
|
||||||
assigns[:stream].should be_a Stream::FollowedTag
|
assigns[:stream].should be_a Stream::FollowedTag
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe 'if empty' do
|
||||||
|
it 'suceeds' do
|
||||||
|
bob.followed_tags.delete_all
|
||||||
|
get :index
|
||||||
|
response.should be_success
|
||||||
end
|
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 "create" do
|
||||||
describe "successfully" do
|
describe "successfully" do
|
||||||
it "creates a new TagFollowing" do
|
it "creates a new TagFollowing" do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue