rspec-activerecord 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,27 @@
1
+ module RSpec
2
+ module ActiveRecord
3
+ module SetupAndTeardownAdapter
4
+ extend ::ActiveSupport::Concern
5
+
6
+ module ClassMethods
7
+ def setup(*methods)
8
+ methods.each do |m|
9
+ if m == :setup_fixtures
10
+ prepend_before { send m }
11
+ else
12
+ before { send m }
13
+ end
14
+ end
15
+ end
16
+
17
+ def teardown(*methods)
18
+ methods.each { |m| after { send m } }
19
+ end
20
+ end
21
+
22
+ def method_name
23
+ @example
24
+ end
25
+ end
26
+ end
27
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -92,6 +92,7 @@ files:
92
92
  - README.md
93
93
  - lib/rspec-activerecord.rb
94
94
  - lib/rspec/active_record.rb
95
+ - lib/rspec/active_record/adapters.rb
95
96
  homepage: https://github.com/mpalmer/rspec-activerecord
96
97
  licenses:
97
98
  - GPLv3
@@ -107,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
108
  version: '0'
108
109
  segments:
109
110
  - 0
110
- hash: 336487240404629199
111
+ hash: 3494398552443238876
111
112
  required_rubygems_version: !ruby/object:Gem::Requirement
112
113
  none: false
113
114
  requirements:
@@ -116,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
117
  version: '0'
117
118
  segments:
118
119
  - 0
119
- hash: 336487240404629199
120
+ hash: 3494398552443238876
120
121
  requirements: []
121
122
  rubyforge_project:
122
123
  rubygems_version: 1.8.23