bploetz / versionist

A plugin for versioning Rails based RESTful APIs.
MIT License
971 stars 51 forks source link

test error on Rails 5.0.1 #80

Closed ryancheung closed 7 years ago

ryancheung commented 7 years ago

image

ryancheung commented 7 years ago

app/controllers/v1/base_controller.rb:

class V1::BaseController < ApplicationController
end

test/integration/v1/base_controller_test.rb:

require 'test_helper'

class V1::BaseControllerTest < ActionDispatch::IntegrationTest
  # Replace this with your real tests.
  test "the truth" do
    assert true
  end
end
ryancheung commented 7 years ago

Found it. There's alos a functional test class with the same class name in test/functional/v1/base_controller_test.rb:

require 'test_helper'

class V1::BaseControllerTest < ActionController::TestCase
  # Replace this with your real tests.
  test "the truth" do
    assert true
  end
end
ryancheung commented 7 years ago

@bploetz I used the versionist:new_api_version generator to generate the template code. Should the functional test class name be different with the integration test?

bploetz commented 7 years ago

versionist 1.6.0 has been released with the fix for this issue.