Profil: display token only once
This commit is contained in:
parent
bd04972f65
commit
17285b0368
6 changed files with 54 additions and 37 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue