From 3eb24f53a5702e1e6b1f2ea41e6fb568c9ee0569 Mon Sep 17 00:00:00 2001 From: Brian Ploetz Date: Tue, 6 Jan 2015 15:35:45 -0500 Subject: [PATCH] Issue #32 --- README.markdown | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index 6f0ca7b..a542c67 100644 --- a/README.markdown +++ b/README.markdown @@ -200,13 +200,12 @@ MyApi::Application.routes.draw do end ``` -## A Note About Testing When Using The HTTP Header or Request Parameter Strategies +## A Note About Testing Rails functional tests (ActionController::TestCase) and RSpec Controller specs are for testing controller action methods in isolation. They do not go through the full Rails stack, specifically the Rails dispatcher code path, which is where versionist hooks in to do its thing. -In order to test your versioned API routes which rely on the HTTP Header or Request Parameter strategies, use integration tests (ActionDispatch::IntegrationTest) -if you're using Test::Unit, or Request specs if you're using RSpec. +In order to test your versioned API routes, use integration tests (ActionDispatch::IntegrationTest) if you're using Test::Unit, or Request specs if you're using RSpec. Test::Unit Example: ```ruby