fixture_background 0.9 → 0.9.0.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/README.rdoc +40 -40
- data/fixture_background.gemspec +1 -1
- data/lib/fixture_background/version.rb +1 -1
- metadata +4 -2
data/README.rdoc
CHANGED
@@ -9,71 +9,71 @@ thies@tmp8.de 20110207
|
|
9
9
|
|
10
10
|
== Usage
|
11
11
|
|
12
|
-
test_helper.rb:
|
12
|
+
in test_helper.rb:
|
13
13
|
|
14
|
-
require 'fixture_background'
|
15
|
-
|
16
|
-
class ActiveSupport::TestCase
|
17
|
-
include ::FixtureBackground::ActiveSupport::TestCase
|
18
|
-
end
|
14
|
+
require 'fixture_background'
|
19
15
|
|
16
|
+
class ActiveSupport::TestCase
|
17
|
+
include ::FixtureBackground::ActiveSupport::TestCase
|
18
|
+
end
|
20
19
|
|
21
|
-
some_test.rb:
|
22
20
|
|
23
|
-
|
21
|
+
in some_test.rb:
|
24
22
|
|
25
|
-
|
26
|
-
background do
|
27
|
-
@hase = Hase.create(:name => "bunny")
|
28
|
-
end
|
23
|
+
require 'test_helper'
|
29
24
|
|
30
|
-
|
25
|
+
class TestTest < ActiveSupport::TestCase
|
31
26
|
background do
|
32
|
-
@
|
33
|
-
end
|
34
|
-
|
35
|
-
should "be cool" do
|
36
|
-
assert @hase
|
37
|
-
assert @thies
|
38
|
-
assert_nil @manuel
|
39
|
-
assert_nil @norman
|
40
|
-
assert_equal 1, Person.count
|
27
|
+
@hase = Hase.create(:name => "bunny")
|
41
28
|
end
|
42
29
|
|
43
|
-
context "with
|
30
|
+
context "with thies" do
|
44
31
|
background do
|
45
|
-
@
|
32
|
+
@thies = Person.create(:name => "thies")
|
46
33
|
end
|
47
34
|
|
48
35
|
should "be cool" do
|
49
36
|
assert @hase
|
50
37
|
assert @thies
|
51
|
-
|
38
|
+
assert_nil @manuel
|
52
39
|
assert_nil @norman
|
53
|
-
assert_equal
|
40
|
+
assert_equal 1, Person.count
|
54
41
|
end
|
55
|
-
|
56
|
-
context "with
|
42
|
+
|
43
|
+
context "with manuel" do
|
57
44
|
background do
|
58
|
-
@
|
45
|
+
@manuel = Person.create(:name => "manuel")
|
59
46
|
end
|
60
|
-
|
47
|
+
|
61
48
|
should "be cool" do
|
62
49
|
assert @hase
|
63
50
|
assert @thies
|
64
51
|
assert @manuel
|
65
|
-
|
66
|
-
assert_equal
|
52
|
+
assert_nil @norman
|
53
|
+
assert_equal 2, Person.count
|
54
|
+
end
|
55
|
+
|
56
|
+
context "with norman" do
|
57
|
+
background do
|
58
|
+
@norman = Person.create(:name => "norman")
|
59
|
+
end
|
60
|
+
|
61
|
+
should "be cool" do
|
62
|
+
assert @hase
|
63
|
+
assert @thies
|
64
|
+
assert @manuel
|
65
|
+
assert @norman
|
66
|
+
assert_equal 3, Person.count
|
67
|
+
end
|
67
68
|
end
|
68
69
|
end
|
69
|
-
end
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
71
|
+
should "nother truth" do
|
72
|
+
assert @hase
|
73
|
+
assert @thies
|
74
|
+
assert_nil @manuel
|
75
|
+
assert_nil @norman
|
76
|
+
assert_equal 1, Person.count
|
77
|
+
end
|
77
78
|
end
|
78
79
|
end
|
79
|
-
end
|
data/fixture_background.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Thies C. Arntzen", "Norman Timmler"]
|
10
10
|
s.email = ["dev+fixture_background@tmp8.de"]
|
11
|
-
s.homepage = "
|
11
|
+
s.homepage = "https://github.com/tmp8/fixture_background"
|
12
12
|
s.summary = %q{Generate fixtures from factories _in_ you testcode to speedup test-runs}
|
13
13
|
s.description = %q{Generate fixtures from factories _in_ you testcode to speedup test-runs}
|
14
14
|
|
metadata
CHANGED
@@ -5,7 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.9.0.1
|
9
11
|
platform: ruby
|
10
12
|
authors:
|
11
13
|
- Thies C. Arntzen
|
@@ -42,7 +44,7 @@ files:
|
|
42
44
|
- lib/fixture_background/shoulda.rb
|
43
45
|
- lib/fixture_background/version.rb
|
44
46
|
has_rdoc: true
|
45
|
-
homepage:
|
47
|
+
homepage: https://github.com/tmp8/fixture_background
|
46
48
|
licenses: []
|
47
49
|
|
48
50
|
post_install_message:
|