fixture_background 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,5 +22,10 @@ class MiniTest::Unit::TestCase
22
22
  def teardown_suite(&block)
23
23
  (self.teardown_suite_blocks ||= []) << block
24
24
  end
25
+
26
+ alias_method :public_instance_methods_without_forced_false, :public_instance_methods
27
+ def public_instance_methods(flag)
28
+ public_instance_methods_without_forced_false(false)
29
+ end
25
30
  end
26
31
  end
@@ -1,4 +1,4 @@
1
1
  module FixtureBackground
2
- VERSION = "0.9.9"
2
+ VERSION = "0.9.10"
3
3
  end
4
4
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- fixture_background (0.9.8)
4
+ fixture_background (0.9.10)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -116,4 +116,47 @@ class ZZZEmptyDatabaseTest < ActiveSupport::TestCase
116
116
  should "have a clean database" do
117
117
  assert_equal 0, Person.count
118
118
  end
119
- end
119
+ end
120
+
121
+
122
+ class DontInheritTestsFromParentTestClassTest < ActiveSupport::TestCase
123
+
124
+ context "index" do
125
+ context "sports" do
126
+ background do
127
+ end
128
+
129
+ should "ha" do
130
+ assert_this_line_only_executed_once
131
+ end
132
+ end
133
+
134
+ context "event_show_back_button_path" do
135
+ should "da" do
136
+ assert_this_line_only_executed_once
137
+ end
138
+ end
139
+ end
140
+
141
+ should "pa" do
142
+ assert_this_line_only_executed_once
143
+ end
144
+
145
+ test "test" do
146
+ assert_this_line_only_executed_once
147
+ end
148
+
149
+ def test_my_shit
150
+ assert_this_line_only_executed_once
151
+ end
152
+
153
+ private
154
+
155
+ def assert_this_line_only_executed_once
156
+ key = caller[0]
157
+ $assert_this_line_only_executed_once_memo ||= {}
158
+ assert ! $assert_this_line_only_executed_once_memo[key]
159
+ $assert_this_line_only_executed_once_memo[key] = true
160
+ end
161
+ end
162
+
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 9
9
- version: 0.9.9
8
+ - 10
9
+ version: 0.9.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Thies C. Arntzen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-06 00:00:00 +02:00
18
+ date: 2011-04-08 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21