require 'spec_helper' feature 'Charts json' do it 'should has cpu information' do visit '/charts/10min/renew.json' expect(page).to have_content /.*cpu.*\:\[({.*},?)+\]/ end it 'should has ram information' do visit '/charts/10min/renew.json' expect(page).to have_content /.*ram.*\:\[({.*},?)+\]/ end end