File: navigation_test.rb

package info (click to toggle)
ruby-momentjs-rails 2.20.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 924 kB
  • sloc: ruby: 98; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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(/hooks.version = '2\.20\.1'/, @response.body)
  end

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