Class: WheneverRolesTest

Inherits:
MiniTest::Unit::TestCase
  • Object
show all
Includes:
WheneverRoles
Defined in:
lib/test/whenever_roles_test.rb

Constant Summary

Constants included from WheneverRoles

WheneverRoles::KNOWN_ENVIRONMENTS, WheneverRoles::VERSION

Instance Method Summary collapse

Methods included from WheneverRoles

R

Instance Method Details

#test_whenever_all_environmentsObject



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_rolesObject



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