workpattern 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,8 +6,7 @@ class TestWorkpatternModule < MiniTest::Unit::TestCase #:nodoc:
6
6
  Workpattern.clear()
7
7
  end
8
8
 
9
- def test_must_create_workpattern_with_given_name
10
-
9
+ def test_must_create_workpattern_with_given_name
11
10
  wp = Workpattern.new()
12
11
  assert_equal Workpattern::DEFAULT_WORKPATTERN_NAME, wp.name, 'not returned the default workpattern name'
13
12
  assert_equal Workpattern::DEFAULT_BASE_YEAR, wp.from.year, 'not returned the default workpattern base year'
@@ -20,21 +19,17 @@ class TestWorkpatternModule < MiniTest::Unit::TestCase #:nodoc:
20
19
  assert_equal mywp_name, mywp.name, 'not returned the supplied workpattern name'
21
20
  assert_equal mywp_base, mywp.from.year, 'not returned the supplied workpattern base year'
22
21
  assert_equal mywp_span, mywp.span, 'not returned the supplied workpattern span'
23
-
24
22
  end
25
23
 
26
24
  def test_must_raise_error_when_creating_workpattern_with_existing_name
27
-
28
25
  assert_raises NameError do
29
26
  mywp_name='duplicate'
30
27
  wp=Workpattern.new(mywp_name)
31
28
  wp=Workpattern.new(mywp_name)
32
29
  end
33
-
34
30
  end
35
31
 
36
32
  def test_must_return_an_array_of_all_known_workpattern_objects
37
-
38
33
  names =%w{fred harry sally}
39
34
  names.each {|name| wp=Workpattern.new(name)}
40
35
  wp_names = Workpattern.to_a
@@ -45,22 +40,19 @@ class TestWorkpatternModule < MiniTest::Unit::TestCase #:nodoc:
45
40
  end
46
41
 
47
42
  def test_must_return_empty_array_when_no_workpatterns_exist
48
-
49
43
  assert Workpattern.to_a.empty?
50
44
  end
51
45
 
52
46
  def test_must_return_existing_workpattern
53
-
54
47
  names =%w{fred harry sally}
55
48
  names.each {|name| wp=Workpattern.new(name)}
56
49
 
57
50
  names.each {|name|
58
51
  wp=Workpattern.get(name)
59
- }
52
+ }
60
53
  end
61
54
 
62
55
  def test_must_raise_error_when_workpattern_does_not_exist
63
-
64
56
  names =%w{fred harry sally}
65
57
  names.each {|name| wp=Workpattern.new(name)}
66
58
  assert_raises NameError do
@@ -69,7 +61,6 @@ class TestWorkpatternModule < MiniTest::Unit::TestCase #:nodoc:
69
61
  end
70
62
 
71
63
  def test_must_delete_existing_workpattern_returning_true
72
-
73
64
  names =%w{fred harry sally}
74
65
  names.each {|name| wp=Workpattern.new(name)}
75
66
  names.each {|name| assert Workpattern.delete(name)}
@@ -82,12 +73,10 @@ class TestWorkpatternModule < MiniTest::Unit::TestCase #:nodoc:
82
73
  end
83
74
 
84
75
  def test_must_delete_all_workpatterns
85
-
86
76
  names =%w{fred harry sally}
87
77
  names.each {|name| wp=Workpattern.new(name)}
88
78
  Workpattern.clear
89
79
  assert Workpattern.to_a.empty?
90
80
  end
91
81
 
92
-
93
82
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workpattern
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barrie Callender
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project: workpattern
82
- rubygems_version: 2.1.4
82
+ rubygems_version: 2.2.2
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: temporal calculations