Skip to content

Instantly share code, notes, and snippets.

@vipulnsward
Created September 21, 2014 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vipulnsward/45b2f8d2e50c254dc390 to your computer and use it in GitHub Desktop.
Save vipulnsward/45b2f8d2e50c254dc390 to your computer and use it in GitHub Desktop.
diff --git a/Gemfile b/Gemfile
index 755773a..4df6d3c 100644
--- a/Gemfile
+++ b/Gemfile
@@ -12,6 +12,7 @@ gemspec
gem 'rake'
gem 'rack-test', '>= 0.6.2'
+gem "minitest", "~> 5.0"
# Allows stuff like `tilt=1.2.2 bundle install` or `tilt=master ...`.
# Used by the CI.
@@ -33,7 +34,6 @@ if RUBY_ENGINE == 'jruby'
end
if RUBY_ENGINE == "ruby" and RUBY_VERSION > '1.9.2'
- gem "minitest", "~> 5.0"
gem 'less', '~> 2.0'
gem 'therubyracer'
gem 'redcarpet'
diff --git a/test/contest.rb b/test/contest.rb
index fdb6075..92ff336 100644
--- a/test/contest.rb
+++ b/test/contest.rb
@@ -17,6 +17,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
+require "rubygems"
require "minitest/autorun"
# Minitest loads a default test if the suite is empty, whose purpose is to
diff --git a/test/helper.rb b/test/helper.rb
index 54a5cf5..39d28d0 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -16,6 +16,7 @@ $LOAD_PATH.unshift testdir unless $LOAD_PATH.include?(testdir)
libdir = File.dirname(File.dirname(__FILE__)) + '/lib'
$LOAD_PATH.unshift libdir unless $LOAD_PATH.include?(libdir)
+require 'minitest'
require 'contest'
require 'rack/test'
require 'sinatra/base'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment