fixture_background 0.9.0.1 → 0.9.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +0 -2
- data/lib/fixture_background/background.rb +1 -2
- data/lib/fixture_background/version.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -17,11 +17,10 @@ module FixtureBackground
|
|
17
17
|
|
18
18
|
def background_valid?
|
19
19
|
(IO.read("#{fixture_path}/.version") rescue nil) == background_signature
|
20
|
-
false
|
21
20
|
end
|
22
21
|
|
23
22
|
def background_signature
|
24
|
-
stack = caller.reject { |line| line =~ Regexp.new(__FILE__) }
|
23
|
+
stack = caller.reject { |line| line =~ Regexp.new(File.dirname(__FILE__)) }
|
25
24
|
test_file_path = File.expand_path(stack.first.match(/^(.+\.rb):/)[1])
|
26
25
|
block_syntax = ''
|
27
26
|
IO.read(test_file_path).scan(/(?:\A|\n)([ \t]*)background\s(?:do|{)(.*?)\n\1end/m) do |match|
|