Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tests for routes
require 'rails_helper'
describe Api::ProductsController do
it { should route(:get, '/api/products').to(action: :index) }
it { should route(:get, '/api/products/1').to(action: :show, id: 1) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment