demarches-normaliennes/spec/views/admin/profile/show.html.haml_spec.rb
2017-04-04 16:59:38 +02:00

11 lines
288 B
Ruby

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