summaryrefslogtreecommitdiffstats
path: root/ruby-gem
diff options
context:
space:
mode:
Diffstat (limited to 'ruby-gem')
-rw-r--r--ruby-gem/spec/lib_spec.rb2
-rw-r--r--ruby-gem/spec/spec_helper.rb14
2 files changed, 15 insertions, 1 deletions
diff --git a/ruby-gem/spec/lib_spec.rb b/ruby-gem/spec/lib_spec.rb
index 2ae8b71..49b8815 100644
--- a/ruby-gem/spec/lib_spec.rb
+++ b/ruby-gem/spec/lib_spec.rb
@@ -1,7 +1,7 @@
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
-require 'lib'
+require 'spec_helper'
#
describe LIB do
#
diff --git a/ruby-gem/spec/spec_helper.rb b/ruby-gem/spec/spec_helper.rb
new file mode 100644
index 0000000..f600367
--- /dev/null
+++ b/ruby-gem/spec/spec_helper.rb
@@ -0,0 +1,14 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+begin
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter 'spec'
+ end
+rescue LoadError
+end
+#
+require 'lib'
+#
+# EOF