evelpidon_test_helpers 0.1.0 → 0.1.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,5 +1,10 @@
1
1
  # Evelpidon Test Helpers changelog
2
2
 
3
+ ## 0.1.1 / 2011-10-13
4
+
5
+ * (Doc) Better README
6
+ * (Bug) Added forgotten mocha runtime dependency
7
+
3
8
  ## 0.1.0 / 2011-10-13
4
9
 
5
10
  * Birthday!
data/README.md CHANGED
@@ -2,11 +2,23 @@
2
2
 
3
3
  Collection of various Test::Unit / ActiveSupport::Test helpers, mainly for Rails projects.
4
4
 
5
- ## Author(s)
5
+ ## Features
6
6
 
7
- * [Nikos Dimitrakopoulos](http://github.com/nikosd)
8
- * [Panayotis Matsinopoulos](http://github.com/pmatsinopoulos)
9
- * [Eric Cohen](http://github.com/eirc)
7
+ * ActiveModel helpers
8
+ * assert_valid
9
+ * assert_valid_attribute
10
+ * assert_invalid
11
+ * assert_invalid_attribute
12
+ * assert_valid_model_attributes
13
+ * assert_valid_fixtures
14
+ * assert_attribute_protected
15
+ * assert_observer_notified
16
+ * assert_observer_not_notified
17
+ * ActionController helpers :
18
+ * assert_assigns
19
+ * Generic helpers (for example for Date/Time objects) :
20
+ * assert_equal_date
21
+ * [Sunspot mocking](http://timcowlishaw.co.uk/post/3179661158/testing-sunspot-with-test-unit)
10
22
 
11
23
  ## Installation
12
24
 
@@ -18,12 +30,18 @@ Or using bundler
18
30
 
19
31
  gem 'evelpidon_test_helpers'
20
32
 
21
- ## Features
33
+ ## Usage
22
34
 
23
- * ActiveModel helpers
24
- * ActionController helpers
25
- * Generic helpers (for example for Date/Time objects)
26
- * Sunspot mocking
35
+ Test helpers get included automatically depending on the loaded gems.
36
+ So if you have already required somewhere ActiveModel, then the ActiveModel related helpers will be loaded.
37
+ If you have already required ActionController, ActionController helpers will be loaded, etc.
38
+
39
+ The only exception so far is the TestSunspot which to actually work you have to
40
+ call it in your setup method. So for example in your test_helpers.rb :
41
+
42
+ setup do
43
+ EvelpidonTestHelpers::TestSunspot.setup
44
+ end
27
45
 
28
46
  ## TODOs
29
47
 
@@ -39,11 +57,20 @@ Or using bundler
39
57
  future version unintentionally (not really...).
40
58
  * Commit, do not mess with gemspec, version, or history.
41
59
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
42
- * Send me a pull request. Bonus points for topic branches.
60
+ * Send a pull request. Bonus points for topic branches.
61
+
62
+ ## Author(s)
63
+
64
+ * [Nikos Dimitrakopoulos](http://github.com/nikosd)
65
+ * [Panayotis Matsinopoulos](http://github.com/pmatsinopoulos)
66
+ * [Eric Cohen](http://github.com/eirc)
43
67
 
44
68
  ## Copyright
45
69
 
46
- * Copyrignt (c) 2011 Fraudpointer.com
47
- * Copyrignt (c) 2011 E-Travel S.A.
70
+ * Copyrignt (c) 2011 [Fraudpointer.com](http://www.fraudpointer.com)
71
+ * Copyrignt (c) 2011 [E-Travel S.A.](http://www.airtickets24.com)
72
+
73
+ ## License
48
74
 
49
- See LICENSE for details.
75
+ Evelpidon Test Helpers are released under the MIT license.
76
+ See [LICENSE](/e-travel/evelpidon_test_helpers/blob/master/LICENSE) for more details.
@@ -22,4 +22,5 @@ Gem::Specification.new do |s|
22
22
  s.add_development_dependency "activemodel", ">=3.0"
23
23
  s.add_development_dependency "actionpack", ">=3.0"
24
24
  s.add_runtime_dependency "activesupport", ">=3.0"
25
+ s.add_runtime_dependency "mocha"
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module EvelpidonTestHelpers
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
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-13 00:00:00 +03:00
21
- default_executable:
20
+ date: 2011-10-13 00:00:00 Z
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
24
23
  name: activemodel
@@ -65,6 +64,20 @@ dependencies:
65
64
  version: "3.0"
66
65
  type: :runtime
67
66
  version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ name: mocha
69
+ prerelease: false
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
79
+ type: :runtime
80
+ version_requirements: *id004
68
81
  description: ""
69
82
  email:
70
83
  - n.dimitrakopoulos@pamediakopes.gr
@@ -91,7 +104,6 @@ files:
91
104
  - lib/evelpidon_test_helpers/date.rb
92
105
  - lib/evelpidon_test_helpers/sunspot.rb
93
106
  - lib/evelpidon_test_helpers/version.rb
94
- has_rdoc: true
95
107
  homepage: ""
96
108
  licenses: []
97
109
 
@@ -121,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
133
  requirements: []
122
134
 
123
135
  rubyforge_project: evelpidon_test_helpers
124
- rubygems_version: 1.6.2
136
+ rubygems_version: 1.8.10
125
137
  signing_key:
126
138
  specification_version: 3
127
139
  summary: Various test helpers for Rails projects