[#105] small spec refactoring

This commit is contained in:
Alexander Machehin 2013-06-28 22:15:17 +06:00
parent 8a6214d096
commit d1555fa177
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ describe Api::V1::IssuesController do
it 'should return only assigned issue' do
get :user_index, :format => :json
assigns[:issues].should include(@own_hidden_issue)
assigns[:issues].count.should == 1
assigns[:issues].should have(1).item
end
it 'should render right template for user index action' do

View File

@ -86,7 +86,7 @@ describe Api::V1::PullRequestsController do
it 'should return only assigned pull request' do
get :user_index, :format => :json
assigns[:pulls].should include(@own_hidden_pull)
assigns[:pulls].count.should == 1
assigns[:pulls].should have(1).item
end
it 'should render right template for user index action' do