micheldoumit / tripvise

0 stars 0 forks source link

use spec helpers (support) #40

Closed marciotoze closed 9 years ago

marciotoze commented 9 years ago

Tenta por isso em um helper

token = 'Token token=' + user[:fb_token]
request.headers['Authorization'] = token

tenta acessar o request no helper através do controller.request

commit file reference
ed312dfbd0a3266d05f6ceee6bb183c9a8160930 spec/controllers/recommendations_controller_spec.rb#L43 #38
MarcusSky commented 9 years ago

Vou abrir um Pull Request pra fazer a mesma coisa nos outros specs :+1: