added 'type' attribute back to 'RSpec' element