Skip to content
Browse files

Merge pull request #1 from tenderlove/Rakefile

Added a Rakefile with test task
  • Loading branch information...
2 parents e4da90d + 45a714d commit ee4768b987232cb646fece9fbafa2a4594e58c0a @danabr committed Mar 20, 2012
Showing with 14 additions and 4 deletions.
  1. +10 −0 Rakefile
  2. +1 −1 lib/multipart_parser/reader.rb
  3. +3 −3 test/multipart_parser/parser_test.rb
View
10 Rakefile
@@ -0,0 +1,10 @@
+require 'rake/testtask'
+
+Rake::TestTask.new do |t|
+ t.libs << 'test'
+ t.test_files = FileList['test/**/*_test.rb']
+ t.verbose = true
+ t.warning = true
+end
+
+task :default => :test
View
2 lib/multipart_parser/reader.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../parser', __FILE__)
+require 'multipart_parser/parser'
module MultipartParser
class NotMultipartError < StandardError; end;
View
6 test/multipart_parser/parser_test.rb
@@ -1,6 +1,6 @@
require 'test/unit'
-require File.dirname(__FILE__) + "/../../lib/multipart_parser/parser"
-require File.dirname(__FILE__) + "/../fixtures/multipart"
+require "multipart_parser/parser"
+require "fixtures/multipart"
module MultipartParser
class ParserTest < Test::Unit::TestCase
@@ -85,7 +85,7 @@ def test_fixtures
end
end
unless got_error
- assert true, end_called
+ assert_equal true, end_called
assert_equal fixture.parts, parts
else
assert fixture.expect_error,

0 comments on commit ee4768b

Please sign in to comment.
Something went wrong with that request. Please try again.