demarches-normaliennes/spec/views/admin/profile/show.html.haml_spec.rb

12 lines
288 B
Ruby
Raw Normal View History

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