Sha256: c737a89773f8493d1d9748feb86131cd2f9b22ee1f579da5cceba88eb1a3c2ac
Contents?: true
Size: 563 Bytes
Versions: 5
Compression:
Stored size: 563 Bytes
Contents
require 'spec_helper' describe Addresses::CitiesController do #routes { Addresses::Engine.routes } before (:each) do @state = FactoryGirl.create(:addresses_state) @city = FactoryGirl.create(:addresses_city, state: @state) end describe "GET /api/v1/interviews" do it "should return an interview" do get addresses.cities_path(state_id: @state.id), format: "json" json = JSON.parse(response.body) json[0]["name"].should == @city.name end end end
Version data entries
5 entries across 5 versions & 1 rubygems