test/helper.rb in chupa-text-1.2.1 vs test/helper.rb in chupa-text-1.2.2
- old
+ new
@@ -13,12 +13,14 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
require "pathname"
+require "rbconfig"
require "tempfile"
require "uri"
+require "webrick"
module Helper
def fixture_path(*components)
base_path = Pathname(__FILE__).dirname + "fixture"
base_path.join(*components)
@@ -36,7 +38,11 @@
def capture_log(&block)
ChupaText::CaptureLogger.capture(&block).collect do |level, message|
message = message.split("\n", 2)[0]
[level, message]
end
+ end
+
+ def ruby
+ RbConfig.ruby
end
end