[#105] small spec refactoring
This commit is contained in:
parent
8a6214d096
commit
d1555fa177
|
@ -75,7 +75,7 @@ describe Api::V1::IssuesController do
|
||||||
it 'should return only assigned issue' do
|
it 'should return only assigned issue' do
|
||||||
get :user_index, :format => :json
|
get :user_index, :format => :json
|
||||||
assigns[:issues].should include(@own_hidden_issue)
|
assigns[:issues].should include(@own_hidden_issue)
|
||||||
assigns[:issues].count.should == 1
|
assigns[:issues].should have(1).item
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should render right template for user index action' do
|
it 'should render right template for user index action' do
|
||||||
|
|
|
@ -86,7 +86,7 @@ describe Api::V1::PullRequestsController do
|
||||||
it 'should return only assigned pull request' do
|
it 'should return only assigned pull request' do
|
||||||
get :user_index, :format => :json
|
get :user_index, :format => :json
|
||||||
assigns[:pulls].should include(@own_hidden_pull)
|
assigns[:pulls].should include(@own_hidden_pull)
|
||||||
assigns[:pulls].count.should == 1
|
assigns[:pulls].should have(1).item
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should render right template for user index action' do
|
it 'should render right template for user index action' do
|
||||||
|
|
Loading…
Reference in New Issue