2015-12-15 16:49:48 +01:00
|
|
|
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) }
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|