Profil: display token only once

This commit is contained in:
simon lehericey 2018-08-24 14:19:44 +02:00
parent bd04972f65
commit 17285b0368
6 changed files with 54 additions and 37 deletions

View file

@ -1,11 +0,0 @@
require 'spec_helper'
describe 'admin/profile/show.html.haml', type: :view do
let(:token) { 'super_token' }
let(:admin) { create(:administrateur, api_token: token) }
before do
assign(:administrateur, admin)
render
end
it { expect(rendered).to have_content(token) }
end