evelpidon_test_helpers 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Evelpidon Test Helpers changelog
2
2
 
3
+ ## 0.3.0 / 2011-11-17
4
+
5
+ * Assert kind of boolean.
6
+ * Integration with Travis CI.
7
+
3
8
  ## 0.2.0 / 2011-10-18
4
9
 
5
10
  * Modulirization of ActiveModel helpers.
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Evelpidon Test Helpers for Rails projects
2
2
 
3
+ [![Project Status](http://stillmaintained.com/e-travel/evelpidon_test_helpers.png)](http://stillmaintained.com/e-travel/evelpidon_test_helpers)
4
+ [![Build Status](https://secure.travis-ci.org/e-travel/evelpidon_test_helpers.png)](http://travis-ci.org/e-travel/evelpidon_test_helpers)
5
+
3
6
  Collection of various Test::Unit / ActiveSupport::Test helpers, mainly for Rails projects.
4
7
 
5
8
  ## Features
@@ -0,0 +1,14 @@
1
+ module EvelpidonTestHelpers
2
+ module Boolean
3
+ # Asserts that the given value is a boolean.
4
+ def assert_kind_of_boolean(expected)
5
+ assert expected == true || expected == false, "#{expected} expected to be a boolean"
6
+ end
7
+ end
8
+ end
9
+
10
+ module ActiveSupport
11
+ class TestCase
12
+ include EvelpidonTestHelpers::Boolean
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module EvelpidonTestHelpers
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -4,6 +4,7 @@ module EvelpidonTestHelpers
4
4
  end
5
5
 
6
6
  # TODO : Possibly stop requiring these here and let the gem user decide what he wants to use.
7
+ require "evelpidon_test_helpers/boolean"
7
8
  require "evelpidon_test_helpers/date"
8
9
  require "evelpidon_test_helpers/active_model"
9
10
  require "evelpidon_test_helpers/action_controller"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evelpidon_test_helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nikos Dimitrakopoulos
@@ -17,8 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-10-18 00:00:00 +03:00
21
- default_executable:
20
+ date: 2011-11-17 00:00:00 Z
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
24
23
  name: activemodel
@@ -108,10 +107,10 @@ files:
108
107
  - lib/evelpidon_test_helpers/active_model/mass_assignment.rb
109
108
  - lib/evelpidon_test_helpers/active_model/model_validations.rb
110
109
  - lib/evelpidon_test_helpers/active_model/observers.rb
110
+ - lib/evelpidon_test_helpers/boolean.rb
111
111
  - lib/evelpidon_test_helpers/date.rb
112
112
  - lib/evelpidon_test_helpers/sunspot.rb
113
113
  - lib/evelpidon_test_helpers/version.rb
114
- has_rdoc: true
115
114
  homepage: ""
116
115
  licenses: []
117
116
 
@@ -141,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
140
  requirements: []
142
141
 
143
142
  rubyforge_project: evelpidon_test_helpers
144
- rubygems_version: 1.6.2
143
+ rubygems_version: 1.8.10
145
144
  signing_key:
146
145
  specification_version: 3
147
146
  summary: Various test helpers for Rails projects