Sha256: 9f7e94ac358d99d7da20fa3c7edd396afafafaac3fdeb57e585c86ba24c966d3
Contents?: true
Size: 455 Bytes
Versions: 4
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Addresses::CitiesController, type: :controller do routes { Addresses::Engine.routes } let!(:state) { create :state } let!(:city) { create :city, state: state } describe "GET #index" do before { get :index, params: { state_id: state.id, format: :json } } it { expect(response).to have_http_status(:success) } it { expect(assigns(:cities)).to eq([city]) } end end
Version data entries
4 entries across 4 versions & 1 rubygems