update specs to remove deprecation warnings

This commit is contained in:
David McClure
2014-11-07 06:05:44 -08:00
parent 067f552cd5
commit efc4109902
10 changed files with 24 additions and 24 deletions

View File

@ -60,7 +60,7 @@ describe Admin::DashboardController do
it 'returns an empty array' do
xhr :get, :problems
json = JSON.parse(response.body)
json['problems'].should have(0).problems
json['problems'].size.should == 0
end
end
@ -72,7 +72,7 @@ describe Admin::DashboardController do
it 'returns an array of strings' do
xhr :get, :problems
json = JSON.parse(response.body)
json['problems'].should have(2).problems
json['problems'].size.should == 2
json['problems'][0].should be_a(String)
json['problems'][1].should be_a(String)
end