Sha256: 136ea96767a237d63c91ed8b9de61c412f35c7cfabeafb5427c4f885c6d1a111

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

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(/utils_hooks__hooks.version = '2\.11\.1'/, @response.body)
  end

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
momentjs-rails-2.11.1 test/integration/navigation_test.rb
momentjs-rails-updated-2.11.1 test/integration/navigation_test.rb