spec/spec_helper.rb in docify-1.0.2 vs spec/spec_helper.rb in docify-1.0.3
- old
+ new
@@ -15,12 +15,14 @@
'README.textile' => 'textile',
'README.txt' => 'rdoc',
'README.foo' => 'rdoc'
}
-def fixture_path
- File.expand_path("../fixtures", __FILE__)
+def fixture_path(file=nil)
+ path = File.expand_path("../fixtures", __FILE__)
+ path = File.join(path, file) unless file.nil?
+ path
end
def fixture(file)
File.read(File.join(fixture_path, file))
-end
\ No newline at end of file
+end