require 'test_helper'

class NavigationTest < ActionDispatch::IntegrationTest
  test 'can access momentjs' do
    get '/assets/moment.js'
    assert_response :success
  end

  test 'can access momentjs translation' do
    get 'assets/moment/fr.js'
    assert_response :success
  end
end


require 'test_helper'

class NavigationTest < ActionDispatch::IntegrationTest
  test 'can access momentjs' do
    get '/assets/moment.js'
    assert_response :success
  end

  test 'momentjs response is for the expected version' do
    get 'assets/moment.js'
    assert_match(/VERSION = "2\.0\.0"/, @response.body)
  end

  test 'can access momentjs translation' do
    get 'assets/moment/fr.js'
    assert_response :success
  end
end


Add test for momentjs version string
Add test for momentjs version string

This should help prevent that situation moving forward...
