Created
July 16, 2018 17:49
-
-
Save Evshved/9ac72571714aaa9eca095d20978a63c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'factory_bot' | |
require 'rails_helper' | |
require 'support/devise' | |
describe ApplicationHelper, type: :request do | |
describe '#component' do | |
let(:user) { FactoryBot.create(:user) } | |
it 'allow as users website' do | |
sign_in(user) | |
visit websites_path | |
expect(page.current_path).to eq('/websites') | |
binding.pry | |
expect(response).to render_template ("#{Rails.root}/frontend/components/header/_header") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment