Skip to content

Instantly share code, notes, and snippets.

@darrenterhune
Created October 4, 2017 20:14
Show Gist options
  • Save darrenterhune/6f911dd013de149e754d8cf536c95d3e to your computer and use it in GitHub Desktop.
Save darrenterhune/6f911dd013de149e754d8cf536c95d3e to your computer and use it in GitHub Desktop.
# 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