grumpy_old_man 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -4
- data/lib/grumpy_old_man.rb +4 -4
- data/spec/grumpy_old_man_spec.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# Grumpy Old Man
|
2
2
|
|
3
|
-
## Adding old school asserts to RSpec
|
3
|
+
## Adding old school asserts to RSpec
|
4
4
|
|
5
5
|
![GrumpyOldMan GEM](http://hopsoft.github.com/grumpy_old_man/images/clint-eastwood.jpg)
|
6
6
|
|
7
|
-
|
8
|
-
<br />
|
7
|
+
#### Do you feel lucky? ... punk.
|
9
8
|
|
10
9
|
GrumpyOldMan adds the following methods to RSpec without compromising any of RSpecs awesomeness.
|
11
10
|
|
@@ -22,7 +21,7 @@ I love several things about RSpec.
|
|
22
21
|
* Its beautiful output from the test runner
|
23
22
|
* Its declarative approach to writing tests... well at least the outer wrapper e.g. `describe Thing; it 'should do stuff'`
|
24
23
|
|
25
|
-
|
24
|
+
Unfortunately parts of RSpec are over engineered and add unwanted complexity to a relatively simple problem:
|
26
25
|
`assert true`
|
27
26
|
|
28
27
|
---
|
data/lib/grumpy_old_man.rb
CHANGED
@@ -21,10 +21,10 @@ module GrumpyOldMan
|
|
21
21
|
# A basic assert helper that tests for Object equality.
|
22
22
|
# Tests for object equivalence rather than object identity since this is sufficient for most tests.
|
23
23
|
#
|
24
|
-
# @param [
|
25
|
-
# @param [
|
26
|
-
def assert_equal(
|
27
|
-
|
24
|
+
# @param [Object] actual The Object to compare.
|
25
|
+
# @param [Object] expected The expected value.
|
26
|
+
def assert_equal(actual, expected)
|
27
|
+
expected.should == actual
|
28
28
|
end
|
29
29
|
|
30
30
|
# A basic assert helper that ensures an Error was raised.
|
data/spec/grumpy_old_man_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grumpy_old_man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! ' Provides old school assert methods for your RSpec tests.
|
15
15
|
|