Skip to content

Commit

Permalink
test suite extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Apr 16, 2011
1 parent 71a09aa commit 8c70844
Show file tree
Hide file tree
Showing 17 changed files with 445 additions and 10 deletions.
7 changes: 7 additions & 0 deletions Gemfile
@@ -0,0 +1,7 @@
source :rubygems

gem 'rails', :git => 'git://github.com/rails/rails.git'
gem "rack", :git => "git://github.com/rack/rack.git"
gem "rack-test", :git => "git://github.com/brynary/rack-test.git"
gem 'mocha'

96 changes: 96 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,96 @@
GIT
remote: git://github.com/brynary/rack-test.git
revision: 38fa75d41eb11b259fd06f87e9b15f2b4f8f8b76
specs:
rack-test (0.5.7)
rack (>= 1.0)

GIT
remote: git://github.com/rack/rack.git
revision: cd73f8f0db954659286abe006ad803603d261b55
specs:
rack (1.2.1)

GIT
remote: git://github.com/rails/rails.git
revision: c630750fa59e248fb5af96f850392333e341ccd7
specs:
actionmailer (3.1.0.beta)
actionpack (= 3.1.0.beta)
mail (~> 2.2.15)
actionpack (3.1.0.beta)
activemodel (= 3.1.0.beta)
activesupport (= 3.1.0.beta)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.5.0)
rack (~> 1.2.1)
rack-cache (~> 1.0.0)
rack-mount (~> 0.7.1)
rack-test (~> 0.5.7)
tzinfo (~> 0.3.23)
activemodel (3.1.0.beta)
activesupport (= 3.1.0.beta)
bcrypt-ruby (~> 2.1.4)
builder (~> 3.0.0)
i18n (~> 0.5.0)
activerecord (3.1.0.beta)
activemodel (= 3.1.0.beta)
activesupport (= 3.1.0.beta)
arel (~> 2.0.2)
tzinfo (~> 0.3.23)
activeresource (3.1.0.beta)
activemodel (= 3.1.0.beta)
activesupport (= 3.1.0.beta)
activesupport (3.1.0.beta)
rails (3.1.0.beta)
actionmailer (= 3.1.0.beta)
actionpack (= 3.1.0.beta)
activerecord (= 3.1.0.beta)
activeresource (= 3.1.0.beta)
activesupport (= 3.1.0.beta)
bundler (~> 1.0)
railties (= 3.1.0.beta)
railties (3.1.0.beta)
actionpack (= 3.1.0.beta)
activesupport (= 3.1.0.beta)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
thor (~> 0.14.4)

GEM
remote: http://rubygems.org/
specs:
arel (2.0.9)
bcrypt-ruby (2.1.4)
builder (3.0.0)
erubis (2.7.0)
i18n (0.5.0)
mail (2.2.15)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
mocha (0.9.12)
polyglot (0.3.1)
rack-cache (1.0.1)
rack (>= 0.4)
rack-mount (0.7.1)
rack (>= 1.0.0)
rack-ssl (1.3.2)
rack
rake (0.8.7)
thor (0.14.6)
treetop (1.4.9)
polyglot (>= 0.3.1)
tzinfo (0.3.26)

PLATFORMS
ruby

DEPENDENCIES
mocha
rack!
rack-test!
rails!
10 changes: 10 additions & 0 deletions Rakefile
@@ -0,0 +1,10 @@
require 'rake/testtask'

task :default => :test

Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = Dir.glob('test/*_test.rb') + Dir.glob('test/{controller,template}/**/*_test.rb')
t.warning = true
t.verbose = true
end
6 changes: 5 additions & 1 deletion lib/rjs.rb
Expand Up @@ -20,7 +20,11 @@
include ActionView::Helpers::ScriptaculousHelper
end

ActionView::TestCase.class_eval do
include ActionView::Helpers::PrototypeHelper
include ActionView::Helpers::ScriptaculousHelper
end

ActionView::Template.register_template_handler :rjs, ActionView::Template::Handlers::RJS.new
end


0 comments on commit 8c70844

Please sign in to comment.