grumpy_old_man 0.1.2 → 0.1.3

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/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
- <br />
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
- I lament the fact that the rest of RSpec is an over engineered solution to a simple problem:
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
  ---
@@ -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 [Objecct] obj The Object to compare.
25
- # @param [Objecct] expected The expected value.
26
- def assert_equal(obj, expected)
27
- obj.should == expected
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.
@@ -9,7 +9,7 @@ describe RSpec do
9
9
  end
10
10
 
11
11
  it "should support assert_equal with GrumpyOldMan" do
12
- assert_equal true, self.respond_to?(:assert)
12
+ assert_equal self.respond_to?(:assert), true
13
13
  end
14
14
 
15
15
  it "should support assert_raise with GrumpyOldMan" do
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.2
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-21 00:00:00.000000000 Z
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