Created
March 28, 2019 08:52
-
-
Save MaryKuz/3d6696568b3652c427f898a71e3d3892 to your computer and use it in GitHub Desktop.
Tests for routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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