test/functional/renders_controller_test.rb in versioncake-1.1.0 vs test/functional/renders_controller_test.rb in versioncake-1.2.0
- old
+ new
@@ -45,19 +45,19 @@
VersionCake::Configuration.default_version = nil
end
test "requested version is blank when the version is not set" do
get :index
- assert_blank @controller.requested_version
+ assert @controller.requested_version.blank?
end
test "set_version can be called to override the requested version" do
get :index, "version" => "1", "override_version" => 2
assert_equal 2, @controller.derived_version
end
end
-class ParameterStragegyTest < ActionController::TestCase
+class ParameterStrategyTest < ActionController::TestCase
tests RendersController
setup do
VersionCake::Configuration.extraction_strategy = :query_parameter
end