Sha256: f548d6cc29c76fd581992d9365266302ec4746fb24c55ab9e41b38a01123cadd

Contents?: true

Size: 408 Bytes

Versions: 17

Compression:

Stored size: 408 Bytes

Contents

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
g5_updatable-0.20.3.pre.1 spec/controllers/locations_controller_spec.rb
g5_updatable-0.10.3 spec/controllers/locations_controller_spec.rb
g5_updatable-0.10.2 spec/controllers/locations_controller_spec.rb
g5_updatable-0.10.1 spec/controllers/locations_controller_spec.rb
g5_updatable-0.10.0 spec/controllers/locations_controller_spec.rb
g5_updatable-0.9.0 spec/controllers/locations_controller_spec.rb
g5_updatable-0.8.0 spec/controllers/locations_controller_spec.rb
g5_updatable-0.7.2 spec/controllers/locations_controller_spec.rb
g5_updatable-0.7.1 spec/controllers/locations_controller_spec.rb
g5_updatable-0.7.0 spec/controllers/locations_controller_spec.rb
g5_updatable-0.6.1 spec/controllers/locations_controller_spec.rb
g5_updatable-0.6.0 spec/controllers/locations_controller_spec.rb
g5_updatable-0.5.1 spec/controllers/locations_controller_spec.rb
g5_updatable-0.5.0 spec/controllers/locations_controller_spec.rb
g5_updatable-0.4.3 spec/controllers/locations_controller_spec.rb
g5_updatable-0.4.2 spec/controllers/locations_controller_spec.rb
g5_updatable-0.4.1 spec/controllers/locations_controller_spec.rb