try using task in spec_helper