testopia 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -1,4 +1,4 @@
1
1
  module Testopia
2
- autoload :Ohm, 'testopia/ohm'
2
+ autoload :Ohm, 'testopia/ohm'
3
3
  autoload :ActiveMerchant, 'testopia/active_merchant'
4
4
  end
@@ -31,6 +31,20 @@ module Testopia
31
31
  def should_assert_numeric(*atts)
32
32
  atts.each { |a| should_assert_error [a, :not_numeric], :given => 'aa' }
33
33
  end
34
+
35
+ def should_assert_member(att, set, invalid = '_SOME_FOOBAR_VALUE_')
36
+ should_assert_error [att, :not_member], :given => invalid
37
+
38
+ set.each do |elem|
39
+ should "assert_member :%s, %s" % [att, elem] do
40
+ subject.send '%s=' % att, elem
41
+ subject.valid?
42
+
43
+ assert ! subject.errors.include?([att, :not_member]),
44
+ '%s expected to be valid with "%s"' % [att, elem]
45
+ end
46
+ end
47
+ end
34
48
  end
35
49
  end
36
50
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{testopia}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cyril David"]
12
- s.date = %q{2010-05-18}
12
+ s.date = %q{2010-05-21}
13
13
  s.description = %q{a collection of test helpers for Ohm, Sinatra, Rack}
14
14
  s.email = %q{cyx.ucron@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.homepage = %q{http://github.com/sinefunc/testopia}
34
34
  s.rdoc_options = ["--charset=UTF-8"]
35
35
  s.require_paths = ["lib"]
36
- s.rubygems_version = %q{1.3.5}
36
+ s.rubygems_version = %q{1.3.6}
37
37
  s.summary = %q{Because laziness is the new cuil}
38
38
  s.test_files = [
39
39
  "test/helper.rb",
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testopia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 2
9
+ version: 0.1.2
5
10
  platform: ruby
6
11
  authors:
7
12
  - Cyril David
@@ -9,19 +14,21 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-05-18 00:00:00 +08:00
17
+ date: 2010-05-21 00:00:00 +08:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: contest
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
23
29
  version: "0"
24
- version:
30
+ type: :development
31
+ version_requirements: *id001
25
32
  description: a collection of test helpers for Ohm, Sinatra, Rack
26
33
  email: cyx.ucron@gmail.com
27
34
  executables: []
@@ -57,18 +64,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
64
  requirements:
58
65
  - - ">="
59
66
  - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
60
69
  version: "0"
61
- version:
62
70
  required_rubygems_version: !ruby/object:Gem::Requirement
63
71
  requirements:
64
72
  - - ">="
65
73
  - !ruby/object:Gem::Version
74
+ segments:
75
+ - 0
66
76
  version: "0"
67
- version:
68
77
  requirements: []
69
78
 
70
79
  rubyforge_project:
71
- rubygems_version: 1.3.5
80
+ rubygems_version: 1.3.6
72
81
  signing_key:
73
82
  specification_version: 3
74
83
  summary: Because laziness is the new cuil