shoulda_create 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,6 +33,10 @@ module ShouldaCreate
33
33
  should_change_record_count_of(class_name, 0, 'create')
34
34
  end
35
35
 
36
+ def should_not_destroy class_name
37
+ should_change_record_count_of(class_name, 0, 'destroy')
38
+ end
39
+
36
40
  def should_create(class_name, options = {})
37
41
  count = options[:count] || 1
38
42
  should_change_record_count_of(class_name, count, 'create')
metadata CHANGED
@@ -1,68 +1,50 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: shoulda_create
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 4
10
- version: 0.0.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Bill Kirtley
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-11-16 00:00:00 Z
12
+ date: 2013-08-22 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
- description: I like using should_create and friends to make assertions about records coming and going in the database. Shoulda did, but doesn't any more. With this, it can again.
14
+ description: I like using should_create and friends to make assertions about records
15
+ coming and going in the database. Shoulda did, but doesn't any more. With this,
16
+ it can again.
22
17
  email: bill.kirtley@gmail.com
23
18
  executables: []
24
-
25
19
  extensions: []
26
-
27
20
  extra_rdoc_files: []
28
-
29
- files:
21
+ files:
30
22
  - lib/shoulda_create/shoulda_create.rb
31
23
  - lib/shoulda_create/test_unit.rb
32
24
  - lib/shoulda_create.rb
33
25
  - README.rdoc
34
26
  homepage: http://github.com/cluesque/shoulda_create
35
27
  licenses: []
36
-
37
28
  post_install_message:
38
29
  rdoc_options: []
39
-
40
- require_paths:
30
+ require_paths:
41
31
  - lib
42
- required_ruby_version: !ruby/object:Gem::Requirement
32
+ required_ruby_version: !ruby/object:Gem::Requirement
43
33
  none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- hash: 3
48
- segments:
49
- - 0
50
- version: "0"
51
- required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
39
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
60
44
  requirements: []
61
-
62
45
  rubyforge_project:
63
- rubygems_version: 1.8.24
46
+ rubygems_version: 1.8.23
64
47
  signing_key:
65
48
  specification_version: 3
66
49
  summary: Restores should_create functionality to shoulda.
67
50
  test_files: []
68
-