Class: WheneverRolesTest
- Inherits:
-
MiniTest::Unit::TestCase
- Object
- MiniTest::Unit::TestCase
- WheneverRolesTest
show all
- Includes:
- WheneverRoles
- Defined in:
- lib/test/whenever_roles_test.rb
Constant Summary
WheneverRoles::KNOWN_ENVIRONMENTS, WheneverRoles::VERSION
Instance Method Summary
collapse
R
Instance Method Details
#test_whenever_all_environments ⇒ Object
13
14
15
16
17
|
# File 'lib/test/whenever_roles_test.rb', line 13
def test_whenever_all_environments
expected = [:production_scheduler, :staging_scheduler]
actual = R(:all, :scheduler)
assert_equal expected, actual
end
|
#test_whenever_roles ⇒ Object
7
8
9
10
11
|
# File 'lib/test/whenever_roles_test.rb', line 7
def test_whenever_roles
expected = [:production_scheduler, :staging_scheduler, :development_scheduler]
actual = R([:production, :staging, :development], :scheduler)
assert_equal expected, actual
end
|