Skip to content

Instantly share code, notes, and snippets.

@jsmestad
Created September 10, 2014 17:51
Show Gist options
  • Select an option

  • Save jsmestad/b3cb02c9ace509861ca0 to your computer and use it in GitHub Desktop.

Select an option

Save jsmestad/b3cb02c9ace509861ca0 to your computer and use it in GitHub Desktop.
require 'rails_helper'
RSpec.describe 'Domains Requests' do
describe 'GET /api/domains/{id}' do
it 'responds with the requested domain' do
domain = FactoryGirl.create(:domain)
get api_domain_path(domain)
expect(response).to have_http_status(200)
end
end
end
@jsmestad

Copy link
Copy Markdown
Author

response.status # => nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment