demarches-normaliennes/spec/views/admin/profile/show.html.haml_spec.rb
2015-12-15 16:49:48 +01:00

11 lines
No EOL
287 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