Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Victor Castell
committed
Jun 20, 2011
1 parent
f692052
commit 34f4466
Showing
5 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
source "http://rubygems.org" | ||
|
||
gem 'koala' | ||
|
||
group :development do | ||
gem "minitest", ">= 0", :platforms => :ruby_18 | ||
gem "bundler", "~> 1.0.0" | ||
end | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'test_helper' | ||
|
||
class TestEukaliptus < MiniTest::Unit::TestCase | ||
include Rack::Test::Methods | ||
|
||
def app | ||
Eukaliptus::Middleware.new | ||
end | ||
|
||
def test_eukaliptus_headers | ||
skip "Test P3p header" | ||
end | ||
|
||
def test_rack_request_params | ||
get '/cookie_fix' | ||
assert_equal "http://example.org/cookie_fix", last_request.url | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
require 'rubygems' | ||
require 'bundler' | ||
begin | ||
Bundler.setup(:default, :development) | ||
rescue Bundler::BundlerError => e | ||
$stderr.puts e.message | ||
$stderr.puts "Run `bundle install` to install missing gems" | ||
exit e.status_code | ||
end | ||
ENV["RAILS_ENV"] = "test" | ||
|
||
require 'minitest/unit' | ||
require 'minitest/spec' | ||
require 'rack/test' | ||
|
||
$LOAD_PATH.unshift(File.dirname(__FILE__)) | ||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
require 'rails' | ||
require 'eukaliptus' | ||
|
||
class MiniTest::Unit::TestCase | ||
end | ||
|
||
MiniTest::Unit.autorun | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters