Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add testing rake task

  • Loading branch information...
commit 971d5b0f2290a053ac4cd9f616fdf12b78ecc4ef 1 parent 1af5006
@bigjason authored
View
12 Rakefile
@@ -1,2 +1,14 @@
#!/usr/bin/env rake
+require "rubygems"
+require "bundler/setup"
+
require "bundler/gem_tasks"
+
+desc "Run all tests"
+task :test do
+ require 'turn'
+ require "pry"
+ require "test/unit"
+ require "elster"
+ require_relative "./test/streamer_test"
+end
View
1  elster.gemspec
@@ -15,6 +15,7 @@ Gem::Specification.new do |gem|
gem.version = Elster::VERSION
gem.add_dependency "multi_json"
+
gem.add_development_dependency "minitest"
gem.add_development_dependency "turn"
gem.add_development_dependency "pry"
View
1  lib/elster/streamer.rb
@@ -1,4 +1,3 @@
-require "stringio"
require "multi_json"
module Elster
View
5 test/streamer_test.rb
@@ -1,10 +1,5 @@
-require "test/unit"
-require 'turn'
require "stringio"
require "json"
-require "pry"
-
-require "elster"
class StreamerTest < MiniTest::Unit::TestCase
attr_reader :output, :json
Please sign in to comment.
Something went wrong with that request. Please try again.