mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
30 lines
779 B
Ruby
30 lines
779 B
Ruby
require 'test_helper'
|
|
|
|
# Tests for the LocationsGeneratorController
|
|
class LocationsGeneratorControllerTest < ActionController::TestCase
|
|
test 'name' do
|
|
assert_assigns :name, [
|
|
:root_name,
|
|
:prefix_occurrence,
|
|
:postfix_occurrence,
|
|
:syllables_upper_limit,
|
|
:syllables_lower_limit,
|
|
:prefixes,
|
|
:postfixes,
|
|
:syllables
|
|
]
|
|
assert_operator assigns(:prefix_occurrence), :<=, 1
|
|
assert_operator assigns(:prefix_occurrence), :>=, 0
|
|
|
|
assert_operator assigns(:postfix_occurrence), :<=, 1
|
|
assert_operator assigns(:postfix_occurrence), :>=, 0
|
|
|
|
assert_operator(
|
|
assigns(:syllables_lower_limit),
|
|
:<=,
|
|
assigns(:syllables_upper_limit))
|
|
|
|
assert_operator assigns(:syllables_lower_limit), :>=, 0
|
|
end
|
|
end
|