assert 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,7 @@
1
1
  ## Assert Changes
2
2
 
3
3
  ### v0.8.x
4
+ * added more succinct `have_imeth` and `have_cmeth` macro methods
4
5
  * deprecated assert-view sister repo
5
6
  * `DefaultView` now provided by assert directly
6
7
  * views render by defining callbacks that are fired by the runner
@@ -21,6 +21,8 @@ module Assert::Macros
21
21
  end
22
22
  end
23
23
  alias_method :have_instance_methods, :have_instance_method
24
+ alias_method :have_imeth, :have_instance_method
25
+ alias_method :have_imeths, :have_instance_method
24
26
 
25
27
  def not_have_instance_method(*methods)
26
28
  called_from = (methods.last.kind_of?(Array) ? methods.pop : caller).first
@@ -34,6 +36,8 @@ module Assert::Macros
34
36
  end
35
37
  end
36
38
  alias_method :not_have_instance_methods, :not_have_instance_method
39
+ alias_method :not_have_imeth, :not_have_instance_method
40
+ alias_method :not_have_imeths, :not_have_instance_method
37
41
 
38
42
  def have_class_method(*methods)
39
43
  called_from = (methods.last.kind_of?(Array) ? methods.pop : caller).first
@@ -47,6 +51,8 @@ module Assert::Macros
47
51
  end
48
52
  end
49
53
  alias_method :have_class_methods, :have_class_method
54
+ alias_method :have_cmeth, :have_class_method
55
+ alias_method :have_cmeths, :have_class_method
50
56
 
51
57
  def not_have_class_method(*methods)
52
58
  called_from = (methods.last.kind_of?(Array) ? methods.pop : caller).first
@@ -60,6 +66,8 @@ module Assert::Macros
60
66
  end
61
67
  end
62
68
  alias_method :not_have_class_methods, :not_have_class_method
69
+ alias_method :not_have_cmeth, :not_have_class_method
70
+ alias_method :not_have_cmeths, :not_have_class_method
63
71
 
64
72
  def have_reader(*methods)
65
73
  methods << caller if !methods.last.kind_of?(Array)
@@ -1,3 +1,3 @@
1
1
  module Assert
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
data/test/macro_test.rb CHANGED
@@ -44,14 +44,14 @@ class Assert::Macro
44
44
  end
45
45
 
46
46
  should have_instance_method :method_1
47
- should have_instance_method :method_2, :method_3
48
- should have_instance_methods :method_4
49
- should have_instance_methods :method_5, :method_6
47
+ should have_instance_methods :method_2, :method_3
48
+ should have_imeth :method_4
49
+ should have_imeths :method_5, :method_6
50
50
 
51
51
  should not_have_instance_method :method_7
52
- should not_have_instance_method :method_8, :method_9
53
- should not_have_instance_methods :method_10
54
- should not_have_instance_methods :method_11, :method_12
52
+ should not_have_instance_methods :method_8, :method_9
53
+ should not_have_imeth :method_10
54
+ should not_have_imeths :method_11, :method_12
55
55
  end
56
56
 
57
57
  class ClassMethodsTest < Assert::Context
@@ -66,14 +66,14 @@ class Assert::Macro
66
66
  end
67
67
 
68
68
  should have_class_method :method_1
69
- should have_class_method :method_2, :method_3
70
- should have_class_methods :method_4
71
- should have_class_methods :method_5, :method_6
69
+ should have_class_methods :method_2, :method_3
70
+ should have_cmeth :method_4
71
+ should have_cmeths :method_5, :method_6
72
72
 
73
73
  should not_have_class_method :method_7
74
- should not_have_class_method :method_8, :method_9
75
- should not_have_class_methods :method_10
76
- should not_have_class_methods :method_11, :method_12
74
+ should not_have_class_methods :method_8, :method_9
75
+ should not_have_cmeth :method_10
76
+ should not_have_cmeths :method_11, :method_12
77
77
  end
78
78
 
79
79
  class ReadersTest < Assert::Context
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assert
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 0
10
- version: 0.8.0
9
+ - 1
10
+ version: 0.8.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -16,11 +16,11 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-07-02 00:00:00 Z
19
+ date: 2012-09-14 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :development
23
- requirement: &id001 !ruby/object:Gem::Requirement
22
+ name: bundler
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
26
  - - ~>
@@ -30,12 +30,12 @@ dependencies:
30
30
  - 1
31
31
  - 0
32
32
  version: "1.0"
33
- name: bundler
34
- version_requirements: *id001
33
+ type: :development
34
+ requirement: *id001
35
35
  prerelease: false
36
36
  - !ruby/object:Gem::Dependency
37
- type: :runtime
38
- requirement: &id002 !ruby/object:Gem::Requirement
37
+ name: ansi
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -45,8 +45,8 @@ dependencies:
45
45
  - 1
46
46
  - 3
47
47
  version: "1.3"
48
- name: ansi
49
- version_requirements: *id002
48
+ type: :runtime
49
+ requirement: *id002
50
50
  prerelease: false
51
51
  description: Test::Unit style testing framework, just better than Test::Unit.
52
52
  email:
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  requirements: []
176
176
 
177
177
  rubyforge_project:
178
- rubygems_version: 1.8.11
178
+ rubygems_version: 1.8.24
179
179
  signing_key:
180
180
  specification_version: 3
181
181
  summary: Test::Unit style testing framework, just better than Test::Unit.