Created
October 4, 2017 20:14
-
-
Save darrenterhune/6f911dd013de149e754d8cf536c95d3e to your computer and use it in GitHub Desktop.
This file contains 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
# frozen_string_literal: true | |
require 'rails_helper' | |
feature 'Updating Admin Clinics feature' do | |
let(:admin) { create(:admin) } | |
let!(:clinic) { create(:clinic) } | |
before do | |
login_as(admin, scope: :user) | |
visit("/admin/clinics/#{clinic.id}/edit") | |
end | |
describe '#update' do | |
scenario 'should update a Clinic', js: true do | |
fill_in('clinic_name', with: 'New Clinic Name') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment