require 'spec_helper' describe G5Updatable::LocationsController, type: :controller do routes { G5Updatable::Engine.routes } let!(:location) { create(:location) } describe 'GET show' do before { get :show, urn: location.urn } subject { JSON.parse(response.body)['location'] } its(['urn']) { is_expected.to eq(location.urn) } its(['uid']) { is_expected.to eq(location.uid) } end end