added 'type' attribute to rspec element