with_model 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +2 -1
- data/CHANGELOG +6 -0
- data/gemfiles/Gemfile.common +1 -3
- data/gemfiles/rspec1/Gemfile +1 -1
- data/gemfiles/rspec2/Gemfile +1 -3
- data/lib/with_model.rb +1 -1
- data/lib/with_model/dsl.rb +3 -2
- data/lib/with_model/version.rb +1 -1
- data/spec/spec.opts +2 -0
- data/spec/spec_helper.rb +5 -0
- data/spec/with_model_spec.rb +1 -0
- data/with_model.gemspec +1 -0
- metadata +16 -3
data/.rspec
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
--
|
1
|
+
--color
|
2
|
+
--format documentation
|
data/CHANGELOG
CHANGED
data/gemfiles/Gemfile.common
CHANGED
data/gemfiles/rspec1/Gemfile
CHANGED
data/gemfiles/rspec2/Gemfile
CHANGED
data/lib/with_model.rb
CHANGED
data/lib/with_model/dsl.rb
CHANGED
@@ -32,6 +32,8 @@ module WithModel
|
|
32
32
|
|
33
33
|
model = nil
|
34
34
|
|
35
|
+
@example_group.with_table(table_name, @table_options, &@table_block)
|
36
|
+
|
35
37
|
@example_group.before do
|
36
38
|
model = Class.new(WithModel::Base)
|
37
39
|
silence_warnings { Object.const_set(const_name, model) }
|
@@ -39,6 +41,7 @@ module WithModel
|
|
39
41
|
set_table_name table_name
|
40
42
|
self.class_eval(&model_initialization)
|
41
43
|
end
|
44
|
+
model.reset_column_information
|
42
45
|
end
|
43
46
|
|
44
47
|
@example_group.after do
|
@@ -46,8 +49,6 @@ module WithModel
|
|
46
49
|
Object.send(:remove_const, const_name)
|
47
50
|
Object.const_set(const_name, original_const_value) if original_const_defined
|
48
51
|
end
|
49
|
-
|
50
|
-
@example_group.with_table(table_name, @table_options, &@table_block)
|
51
52
|
end
|
52
53
|
end
|
53
54
|
end
|
data/lib/with_model/version.rb
CHANGED
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
CHANGED
data/spec/with_model_spec.rb
CHANGED
data/with_model.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: with_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2011-09-02 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
17
|
-
requirement: &
|
17
|
+
requirement: &2168918400 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -25,7 +25,18 @@ dependencies:
|
|
25
25
|
version: 4.0.0
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
|
-
version_requirements: *
|
28
|
+
version_requirements: *2168918400
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: rspec
|
31
|
+
requirement: &2168917640 !ruby/object:Gem::Requirement
|
32
|
+
none: false
|
33
|
+
requirements:
|
34
|
+
- - <
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '3'
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: *2168917640
|
29
40
|
description: Dynamically build a model within an Rspec context
|
30
41
|
email:
|
31
42
|
- casecommons-dev@googlegroups.com
|
@@ -51,6 +62,7 @@ files:
|
|
51
62
|
- lib/with_model/version.rb
|
52
63
|
- spec/active_record_behaviors_spec.rb
|
53
64
|
- spec/readme_spec.rb
|
65
|
+
- spec/spec.opts
|
54
66
|
- spec/spec_helper.rb
|
55
67
|
- spec/with_model_spec.rb
|
56
68
|
- with_model.gemspec
|
@@ -81,5 +93,6 @@ summary: Dynamically build a model within an Rspec context
|
|
81
93
|
test_files:
|
82
94
|
- spec/active_record_behaviors_spec.rb
|
83
95
|
- spec/readme_spec.rb
|
96
|
+
- spec/spec.opts
|
84
97
|
- spec/spec_helper.rb
|
85
98
|
- spec/with_model_spec.rb
|