\n\n", mail.parts[1].body
- end
-
- def test_headers_removed_on_smtp_delivery
- ActionMailer::Base.delivery_method = :smtp
- TestMailer.deliver_cc_bcc(@recipient)
- assert MockSMTP.deliveries[0][2].include?("root@loudthinking.com")
- assert MockSMTP.deliveries[0][2].include?("nobody@loudthinking.com")
- assert MockSMTP.deliveries[0][2].include?(@recipient)
- assert_match %r{^Cc: nobody@loudthinking.com}, MockSMTP.deliveries[0][0]
- assert_match %r{^To: #{@recipient}}, MockSMTP.deliveries[0][0]
- assert_no_match %r{^Bcc: root@loudthinking.com}, MockSMTP.deliveries[0][0]
- end
-
- def test_recursive_multipart_processing
- fixture = File.read(File.dirname(__FILE__) + "/fixtures/raw_email7")
- mail = TMail::Mail.parse(fixture)
- assert_equal "This is the first part.\n\nAttachment: test.rb\nAttachment: test.pdf\n\n\nAttachment: smime.p7s\n", mail.body
- end
-
- def test_decode_encoded_attachment_filename
- fixture = File.read(File.dirname(__FILE__) + "/fixtures/raw_email8")
- mail = TMail::Mail.parse(fixture)
- attachment = mail.attachments.last
- assert_equal "01QuienTeDijat.Pitbull.mp3", attachment.original_filename
- end
-
- def test_wrong_mail_header
- fixture = File.read(File.dirname(__FILE__) + "/fixtures/raw_email9")
- assert_raise(TMail::SyntaxError) { TMail::Mail.parse(fixture) }
- end
-
- def test_decode_message_with_unknown_charset
- fixture = File.read(File.dirname(__FILE__) + "/fixtures/raw_email10")
- mail = TMail::Mail.parse(fixture)
- assert_nothing_raised { mail.body }
- end
-
- def test_decode_message_with_unquoted_atchar_in_header
- fixture = File.read(File.dirname(__FILE__) + "/fixtures/raw_email11")
- mail = TMail::Mail.parse(fixture)
- assert_not_nil mail.from
- end
-
- def test_empty_header_values_omitted
- result = TestMailer.create_unnamed_attachment(@recipient).encoded
- assert_match %r{Content-Type: application/octet-stream[^;]}, result
- assert_match %r{Content-Disposition: attachment[^;]}, result
- end
-
- def test_headers_with_nonalpha_chars
- mail = TestMailer.create_headers_with_nonalpha_chars(@recipient)
- assert !mail.from_addrs.empty?
- assert !mail.cc_addrs.empty?
- assert !mail.bcc_addrs.empty?
- assert_match(/:/, mail.from_addrs.to_s)
- assert_match(/:/, mail.cc_addrs.to_s)
- assert_match(/:/, mail.bcc_addrs.to_s)
- end
-
- def test_deliver_with_mail_object
- mail = TestMailer.create_headers_with_nonalpha_chars(@recipient)
- assert_nothing_raised { TestMailer.deliver(mail) }
- assert_equal 1, TestMailer.deliveries.length
- end
-
- def test_multipart_with_template_path_with_dots
- mail = FunkyPathMailer.create_multipart_with_template_path_with_dots(@recipient)
- assert_equal 2, mail.parts.length
- end
-
- def test_custom_content_type_attributes
- mail = TestMailer.create_custom_content_type_attributes
- assert_match %r{format=flowed}, mail['content-type'].to_s
- assert_match %r{charset=utf-8}, mail['content-type'].to_s
- end
-end
-
-class InheritableTemplateRootTest < Test::Unit::TestCase
- def test_attr
- expected = "#{File.dirname(__FILE__)}/fixtures/path.with.dots"
- assert_equal expected, FunkyPathMailer.template_root
-
- sub = Class.new(FunkyPathMailer)
- sub.template_root = 'test/path'
-
- assert_equal 'test/path', sub.template_root
- assert_equal expected, FunkyPathMailer.template_root
- end
-end
diff --git a/tracks/vendor/rails/actionmailer/test/quoting_test.rb b/tracks/vendor/rails/actionmailer/test/quoting_test.rb
deleted file mode 100644
index 77bd769b..00000000
--- a/tracks/vendor/rails/actionmailer/test/quoting_test.rb
+++ /dev/null
@@ -1,57 +0,0 @@
-require "#{File.dirname(__FILE__)}/abstract_unit"
-require 'tmail'
-require 'tempfile'
-
-class QuotingTest < Test::Unit::TestCase
- def test_quote_multibyte_chars
- original = "\303\246 \303\270 and \303\245"
-
- result = execute_in_sandbox(<<-CODE)
- $:.unshift(File.dirname(__FILE__) + "/../lib/")
- $KCODE = 'u'
- require 'jcode'
- require 'action_mailer/quoting'
- include ActionMailer::Quoting
- quoted_printable(#{original.inspect}, "UTF-8")
- CODE
-
- unquoted = TMail::Unquoter.unquote_and_convert_to(result, nil)
- assert_equal unquoted, original
- end
-
- # test an email that has been created using \r\n newlines, instead of
- # \n newlines.
- def test_email_quoted_with_0d0a
- mail = TMail::Mail.parse(IO.read("#{File.dirname(__FILE__)}/fixtures/raw_email_quoted_with_0d0a"))
- assert_match %r{Elapsed time}, mail.body
- end
-
- def test_email_with_partially_quoted_subject
- mail = TMail::Mail.parse(IO.read("#{File.dirname(__FILE__)}/fixtures/raw_email_with_partially_quoted_subject"))
- assert_equal "Re: Test: \"\346\274\242\345\255\227\" mid \"\346\274\242\345\255\227\" tail", mail.subject
- end
-
- private
-
- # This whole thing *could* be much simpler, but I don't think Tempfile,
- # popen and others exist on all platforms (like Windows).
- def execute_in_sandbox(code)
- test_name = "#{File.dirname(__FILE__)}/am-quoting-test.#{$$}.rb"
- res_name = "#{File.dirname(__FILE__)}/am-quoting-test.#{$$}.out"
-
- File.open(test_name, "w+") do |file|
- file.write(<<-CODE)
- block = Proc.new do
- #{code}
- end
- puts block.call
- CODE
- end
-
- system("ruby #{test_name} > #{res_name}") or raise "could not run test in sandbox"
- File.read(res_name).chomp
- ensure
- File.delete(test_name) rescue nil
- File.delete(res_name) rescue nil
- end
-end
diff --git a/tracks/vendor/rails/actionmailer/test/tmail_test.rb b/tracks/vendor/rails/actionmailer/test/tmail_test.rb
deleted file mode 100644
index 7d83a68a..00000000
--- a/tracks/vendor/rails/actionmailer/test/tmail_test.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-require "#{File.dirname(__FILE__)}/abstract_unit"
-
-class TMailMailTest < Test::Unit::TestCase
- def test_body
- m = TMail::Mail.new
- expected = 'something_with_underscores'
- m.encoding = 'quoted-printable'
- quoted_body = [expected].pack('*M')
- m.body = quoted_body
- assert_equal "something_with_underscores=\n", m.quoted_body
- assert_equal expected, m.body
- end
-end
diff --git a/tracks/vendor/rails/actionmailer/test/url_test.rb b/tracks/vendor/rails/actionmailer/test/url_test.rb
deleted file mode 100644
index ded343cf..00000000
--- a/tracks/vendor/rails/actionmailer/test/url_test.rb
+++ /dev/null
@@ -1,68 +0,0 @@
-require "#{File.dirname(__FILE__)}/abstract_unit"
-
-class TestMailer < ActionMailer::Base
- def signed_up_with_url(recipient)
- @recipients = recipient
- @subject = "[Signed up] Welcome #{recipient}"
- @from = "system@loudthinking.com"
- @sent_on = Time.local(2004, 12, 12)
-
- @body["recipient"] = recipient
- @body["welcome_url"] = url_for :host => "example.com", :controller => "welcome", :action => "greeting"
- end
-
- class < charset }
- end
- mail
- end
-
- def setup
- ActionMailer::Base.delivery_method = :test
- ActionMailer::Base.perform_deliveries = true
- ActionMailer::Base.deliveries = []
-
- @recipient = 'test@localhost'
- end
-
- def test_signed_up_with_url
- ActionController::Routing::Routes.draw do |map|
- map.connect ':controller/:action/:id'
- end
-
- expected = new_mail
- expected.to = @recipient
- expected.subject = "[Signed up] Welcome #{@recipient}"
- expected.body = "Hello there, \n\nMr. #{@recipient}. Please see our greeting at http://example.com/welcome/greeting"
- expected.from = "system@loudthinking.com"
- expected.date = Time.local(2004, 12, 12)
-
- created = nil
- assert_nothing_raised { created = TestMailer.create_signed_up_with_url(@recipient) }
- assert_not_nil created
- assert_equal expected.encoded, created.encoded
-
- assert_nothing_raised { TestMailer.deliver_signed_up_with_url(@recipient) }
- assert_not_nil ActionMailer::Base.deliveries.first
- assert_equal expected.encoded, ActionMailer::Base.deliveries.first.encoded
- end
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/CHANGELOG b/tracks/vendor/rails/actionpack/CHANGELOG
deleted file mode 100644
index a417f94e..00000000
--- a/tracks/vendor/rails/actionpack/CHANGELOG
+++ /dev/null
@@ -1,3072 +0,0 @@
-*1.13.0 RC2* (r5847, January 4th, 2007)
-
-
-* Make sure html_document is reset between integration test requests. [ctm]
-
-* Set session to an empty hash if :new_session => false and no session cookie or param is present. CGI::Session was raising an unrescued ArgumentError. [Josh Susser]
-
-* Fix assert_redirected_to bug where redirecting from a nested to to a top-level controller incorrectly added the current controller's nesting. Closes #6128. [Rick Olson]
-
-* Ensure render :json => ... skips the layout. #6808 [Josh Peek]
-
-* Silence log_error deprecation warnings from inspecting deprecated instance variables. [Nate Wiger]
-
-* Only cache GET requests with a 200 OK response. #6514, #6743 [RSL, anamba]
-
-* Correctly report which filter halted the chain. #6699 [Martin Emde]
-
-* respond_to recognizes JSON. render :json => @person.to_json automatically sets the content type and takes a :callback option to specify a client-side function to call using the rendered JSON as an argument. #4185 [Scott Raymond, eventualbuddha]
- # application/json response with body 'Element.show({:name: "David"})'
- respond_to do |format|
- format.json { render :json => { :name => "David" }.to_json, :callback => 'Element.show' }
- end
-
-* Makes :discard_year work without breaking multi-attribute parsing in AR. #1260, #3800 [sean@ardismg.com, jmartin@desertflood.com, stephen@touset.org, Bob Silva]
-
-* Adds html id attribute to date helper elements. #1050, #1382 [mortonda@dgrmm.net, David North, Bob Silva]
-
-* Add :index and @auto_index capability to model driven date/time selects. #847, #2655 [moriq, Doug Fales, Bob Silva]
-
-* Add :order to datetime_select, select_datetime, and select_date. #1427 [Timothee Peignier, patrick@lenz.sh, Bob Silva]
-
-* Added time_select to work with time values in models. Update scaffolding. #2489, #2833 [Justin Palmer, Andre Caum, Bob Silva]
-
-* Added :include_seconds to select_datetime, datetime_select and time_select. #2998 [csn, Bob Silva]
-
-* All date/datetime selects can now accept an array of month names with :use_month_names. Allows for localization. #363 [tomasj, Bob Silva]
-
-* Adds :time_separator to select_time and :date_separator to select_datetime. Preserves BC. #3811 [Bob Silva]
-
-* @response.redirect_url works with 201 Created responses: just return headers['Location'] rather than checking the response status. [Jeremy Kemper]
-
-* Fixed that HEAD should return the proper Content-Length header (that is, actually use @body.size, not just 0) [DHH]
-
-* Added GET-masquarading for HEAD, so request.method will return :get even for HEADs. This will help anyone relying on case request.method to automatically work with HEAD and map.resources will also allow HEADs to all GET actions. Rails automatically throws away the response content in a reply to HEAD, so you don't even need to worry about that. If you, for whatever reason, still need to distinguish between GET and HEAD in some edge case, you can use Request#head? and even Request.headers["REQUEST_METHOD"] for get the "real" answer. Closes #6694 [DHH]
-
-
-*1.13.0 RC1* (r5619, November 22nd, 2006)
-
-* Update Routing to complain when :controller is not specified by a route. Closes #6669. [Nicholas Seckar]
-
-* Ensure render_to_string cleans up after itself when an exception is raised. #6658 [rsanheim]
-
-* Update to Prototype and script.aculo.us [5579]. [Sam Stephenson, Thomas Fuchs]
-
-* simple_format helper doesn't choke on nil. #6644 [jerry426]
-
-* Reuse named route helper module between Routing reloads. Use remove_method to delete named route methods after each load. Since the module is never collected, this fixes a significant memory leak. [Nicholas Seckar]
-
-* Deprecate standalone components. [Jeremy Kemper]
-
-* Always clear model associations from session. #4795 [sd@notso.net, andylien@gmail.com]
-
-* Remove JavaScriptLiteral in favor of ActiveSupport::JSON::Variable. [Sam Stephenson]
-
-* Sync ActionController::StatusCodes::STATUS_CODES with http://www.iana.org/assignments/http-status-codes. #6586 [dkubb]
-
-* Multipart form values may have a content type without being treated as uploaded files if they do not provide a filename. #6401 [Andreas Schwarz, Jeremy Kemper]
-
-* assert_response supports symbolic status codes. #6569 [Kevin Clark]
- assert_response :ok
- assert_response :not_found
- assert_response :forbidden
-
-* Cache parsed query parameters. #6559 [Stefan Kaes]
-
-* Deprecate JavaScriptHelper#update_element_function, which is superseeded by RJS [Thomas Fuchs]
-
-* Fix invalid test fixture exposed by stricter Ruby 1.8.5 multipart parsing. #6524 [Bob Silva]
-
-* Set ActionView::Base.default_form_builder once rather than passing the :builder option to every form or overriding the form helper methods. [Jeremy Kemper]
-
-* Deprecate expire_matched_fragments. Use expire_fragment instead. #6535 [Bob Silva]
-
-* Deprecate start_form_tag and end_form_tag. Use form_tag / '' from now on. [Rick]
-
-* Added block-usage to PrototypeHelper#form_remote_tag, document block-usage of FormTagHelper#form_tag [Rick]
-
-* Add a 0 margin/padding div around the hidden _method input tag that form_tag outputs. [Rick]
-
-* Added block-usage to TagHelper#content_tag [DHH]. Example:
-
- <% content_tag :div, :class => "strong" %>
- Hello world!
- <% end %>
-
- Will output:
-
Hello world!
-
-* Deprecated UrlHelper#link_to_image and UrlHelper#link_to :post => true #6409 [BobSilva]
-
-* Upgraded NumberHelper with number_to_phone support international formats to comply with ITU E.123 by supporting area codes with less than 3 digits, added precision argument to number_to_human_size (defaults to 1) #6421 [BobSilva]
-
-* Fixed that setting RAILS_ASSET_ID to "" should not add a trailing slash after assets #6454 [BobSilva/chrismear]
-
-* Force *_url named routes to show the host in ActionView [Rick]
-
- <%= url_for ... %> # no host
- <%= foo_path %> # no host
- <%= foo_url %> # host!
-
-* Add support for converting blocks into function arguments to JavaScriptGenerator#call and JavaScriptProxy#call. [Sam Stephenson]
-
-* Add JavaScriptGenerator#literal for wrapping a string in an object whose #to_json is the string itself. [Sam Stephenson]
-
-* Add <%= escape_once html %> to escape html while leaving any currently escaped entities alone. Fix button_to double-escaping issue. [Rick]
-
-* Fix double-escaped entities, such as &, {, etc. [Rick]
-
-* Fix routing to correctly determine when generation fails. Closes #6300. [psross].
-
-* Fix broken assert_generates when extra keys are being checked. [Jamis Buck]
-
-* Replace KCODE checks with String#chars for truncate. Closes #6385 [Manfred Stienstra]
-
-* Make page caching respect the format of the resource that is being requested even if the current route is the default route so that, e.g. posts.rss is not transformed by url_for to '/' and subsequently cached as '/index.html' when it should be cached as '/posts.rss'. [Marcel Molina Jr.]
-
-* Use String#chars in TextHelper::excerpt. Closes #6386 [Manfred Stienstra]
-
-* Fix relative URL root matching problems. [Mark Imbriaco]
-
-* Fix filter skipping in controller subclasses. #5949, #6297, #6299 [Martin Emde]
-
-* render_text may optionally append to the response body. render_javascript appends by default. This allows you to chain multiple render :update calls by setting @performed_render = false between them (awaiting a better public API). [Jeremy Kemper]
-
-* Rename test assertion to prevent shadowing. Closes #6306. [psross]
-
-* Fixed that NumberHelper#number_to_delimiter should respect precision of higher than two digits #6231 [phallstrom]
-
-* Fixed that FormHelper#radio_button didn't respect an :id being passed in #6266 [evansj]
-
-* Added an html_options hash parameter to javascript_tag() and update_page_tag() helpers #6311 [tzaharia]. Example:
-
- update_page_tag :defer => 'true' { |page| ... }
-
- Gives:
-
-
-
- Which is needed for dealing with the IE6 DOM when it's not yet fully loaded.
-
-* Fixed that rescue template path shouldn't be hardcoded, then it's easier to hook in your own #6295 [mnaberez]
-
-* Fixed escaping of backslashes in JavaScriptHelper#escape_javascript #6302 [sven@c3d2.de]
-
-* Fixed that some 500 rescues would cause 500's themselves because the response had not yet been generated #6329 [cmselmer]
-
-* respond_to :html doesn't assume .rhtml. #6281 [Hampton Catlin]
-
-* Fixed some deprecation warnings in ActionPack [Rick Olson]
-
-* assert_select_rjs decodes escaped unicode chars since the Javascript generators encode them. #6240 [japgolly]
-
-* Deprecation: @cookies, @headers, @request, @response will be removed after 1.2. Use the corresponding method instead. [Jeremy Kemper]
-
-* Make the :status parameter expand to the default message for that status code if it is an integer. Also support symbol statuses. [Jamis Buck]. Examples:
-
- head :status => 404 # expands to "404 Not Found"
- head :status => :not_found # expands to "404 Not Found"
- head :status => :created # expands to "201 Created"
-
-* Add head(options = {}) for responses that have no body. [Jamis Buck]. Examples:
-
- head :status => 404 # return an empty response with a 404 status
- head :location => person_path(@person), :status => 201
-
-* Fix bug that kept any before_filter except the first one from being able to halt the before_filter chain. [Rick Olson]
-
-* strip_links is case-insensitive. #6285 [tagoh, Bob Silva]
-
-* Clear the cache of possible controllers whenever Routes are reloaded. [Nicholas Seckar]
-
-* Filters overhaul including meantime filter support using around filters + blocks. #5949 [Martin Emde, Roman Le Negrate, Stefan Kaes, Jeremy Kemper]
-
-* Update CGI process to allow sessions to contain namespaced models. Closes #4638. [dfelstead@site5.com]
-
-* Fix routing to respect user provided requirements and defaults when assigning default routing options (such as :action => 'index'). Closes #5950. [Nicholas Seckar]
-
-* Rescue Errno::ECONNRESET to handle an unexpectedly closed socket connection. Improves SCGI reliability. #3368, #6226 [sdsykes, fhanshaw@vesaria.com]
-
-* Added that respond_to blocks will automatically set the content type to be the same as is requested [DHH]. Examples:
-
- respond_to do |format|
- format.html { render :text => "I'm being sent as text/html" }
- format.rss { render :text => "I'm being sent as application/rss+xml" }
- format.atom { render :text => "I'm being sent as application/xml", :content_type => Mime::XML }
- end
-
-* Added utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [DHH]
-
-* Added proper getters and setters for content type and charset [DHH]. Example of what we used to do:
-
- response.headers["Content-Type"] = "application/atom+xml; charset=utf-8"
-
- ...now:
-
- response.content_type = Mime::ATOM
- response.charset = "utf-8"
-
-* Declare file extensions exempt from layouts. #6219 [brandon]
- Example: ActionController::Base.exempt_from_layout 'rpdf'
-
-* Add chained replace/update support for assert_select_rjs [Rick Olson]
-
- Given RJS like...
-
- page['test1'].replace "
foo
"
- page['test2'].replace_html "
foo
"
-
- Test it with...
-
- assert_select_rjs :chained_replace
- assert_select_rjs :chained_replace, "test1"
-
- assert_select_rjs :chained_replace_html
- assert_select_rjs :chained_replace_html, "test2"
-
-* Load helpers in alphabetical order for consistency. Resolve cyclic javascript_helper dependency. #6132, #6178 [choonkeat@gmail.com]
-
-* Skip params with empty names, such as the &=Save query string from . #2569 [manfred, raphinou@yahoo.com]
-
-* Fix assert_tag so that :content => "foo" does not match substrings, but only exact strings. Use :content => /foo/ to match substrings. #2799 [Eric Hodel]
-
-* Update JavaScriptGenerator#show/hide/toggle/remove to new Prototype syntax for multiple ids, #6068 [petermichaux@gmail.com]
-
-* Update UrlWriter to support :only_path. [Nicholas Seckar, Dave Thomas]
-
-* Fixed JavaScriptHelper#link_to_function and JavaScriptHelper#button_to_function to have the script argument be optional [DHH]. So what used to require a nil, like this:
-
- link_to("Hider", nil, :class => "hider_link") { |p| p[:something].hide }
-
- ...can be written like this:
-
- link_to("Hider", :class => "hider_link") { |p| p[:something].hide }
-
-* Added access to nested attributes in RJS #4548 [richcollins@gmail.com]. Examples:
-
- page['foo']['style'] # => $('foo').style;
- page['foo']['style']['color'] # => $('blank_slate').style.color;
- page['foo']['style']['color'] = 'red' # => $('blank_slate').style.color = 'red';
- page['foo']['style'].color = 'red' # => $('blank_slate').style.color = 'red';
-
-* Fixed that AssetTagHelper#image_tag and others using compute_public_path should not modify the incoming source argument (closes #5102) [eule@space.ch]
-
-* Deprecated the auto-appending of .png to AssetTagHelper#image_tag calls that doesn't have an extension [DHH]
-
-* Fixed FormOptionsHelper#select to respect :selected value #5813
-
-* Fixed TextHelper#simple_format to deal with multiple single returns within a single paragraph #5835 [moriq@moriq.com]
-
-* Fixed TextHelper#pluralize to handle 1 as a string #5909 [rails@bencurtis.com]
-
-* Improved resolution of DateHelper#distance_of_time_in_words for better precision #5994 [Bob Silva]
-
-* Changed that uncaught exceptions raised any where in the application will cause RAILS_ROOT/public/500.html to be read and shown instead of just the static "Application error (Rails)" [DHH]
-
-* Added deprecation language for pagination which will become a plugin by Rails 2.0 [DHH]
-
-* Added deprecation language for in_place_editor and auto_complete_field that both pieces will become plugins by Rails 2.0 [DHH]
-
-* Deprecated all of ActionController::Dependencies. All dependency loading is now handled from Active Support [DHH]
-
-* Added assert_select* for CSS selector-based testing (deprecates assert_tag) #5936 [assaf.arkin@gmail.com]
-
-* radio_button_tag generates unique id attributes. #3353 [Bob Silva, somekool@gmail.com]
-
-* strip_tags passes through blank args such as nil or "". #2229, #6702 [duncan@whomwah.com, dharana]
-
-* Cleanup assert_tag :children counting. #2181 [jamie@bravenet.com]
-
-* button_to accepts :method so you can PUT and DELETE with it. #6005 [Dan Webb]
-
-* Update sanitize text helper to strip plaintext tags, and . [Rick Olson]
-
-* Add routing tests to assert that RoutingError is raised when conditions aren't met. Closes #6016 [Nathan Witmer]
-
-* Make auto_link parse a greater subset of valid url formats. [Jamis Buck]
-
-* Integration tests: headers beginning with X aren't excluded from the HTTP_ prefix, so X-Requested-With becomes HTTP_X_REQUESTED_WITH as expected. [Mike Clark]
-
-* Switch to using FormEncodedPairParser for parsing request parameters. [Nicholas Seckar, DHH]
-
-* respond_to .html now always renders #{action_name}.rhtml so that registered custom template handlers do not override it in priority. Custom mime types require a block and throw proper error now. [Tobias Luetke]
-
-* Deprecation: test deprecated instance vars in partials. [Jeremy Kemper]
-
-* Add UrlWriter to allow writing urls from Mailers and scripts. [Nicholas Seckar]
-
-* Relax Routing's anchor pattern warning; it was preventing use of [^/] inside restrictions. [Nicholas Seckar]
-
-* Add controller_paths variable to Routing. [Nicholas Seckar]
-
-* Fix assert_redirected_to issue with named routes for module controllers. [Rick Olson]
-
-* Tweak RoutingError message to show option diffs, not just missing named route significant keys. [Rick Olson]
-
-* Invoke method_missing directly on hidden actions. Closes #3030. [Nicholas Seckar]
-
-* Add RoutingError exception when RouteSet fails to generate a path from a Named Route. [Rick Olson]
-
-* Replace Reloadable with Reloadable::Deprecated. [Nicholas Seckar]
-
-* Deprecation: check whether instance variables have been monkeyed with before assigning them to deprecation proxies. Raises a RuntimeError if so. [Jeremy Kemper]
-
-* Add support for the param_name parameter to the auto_complete_field helper. #5026 [david.a.williams@gmail.com]
-
-* Deprecation! @params, @session, @flash will be removed after 1.2. Use the corresponding instance methods instead. You'll get printed warnings during tests and logged warnings in dev mode when you access either instance variable directly. [Jeremy Kemper]
-
-* Make Routing noisy when an anchor regexp is assigned to a segment. #5674 [francois.beausoleil@gmail.com]
-
-* Added months and years to the resolution of DateHelper#distance_of_time_in_words, such that "60 days ago" becomes "2 months ago" #5611 [pjhyett@gmail.com]
-
-* Make controller_path available as an instance method. #5724 [jmckible@gmail.com]
-
-* Update query parser to support adjacent hashes. [Nicholas Seckar]
-
-* Make action caching aware of different formats for the same action so that, e.g. foo.xml is cached separately from foo.html. Implicitly set content type when reading in cached content with mime revealing extensions so the entire onous isn't on the webserver. [Marcel Molina Jr.]
-
-* Restrict Request Method hacking with ?_method to POST requests. [Rick Olson]
-
-* Fixed the new_#{resource}_url route and added named route tests for Simply Restful. [Rick Olson]
-
-* Added map.resources from the Simply Restful plugin [DHH]. Examples (the API has changed to use plurals!):
-
- map.resources :messages
- map.resources :messages, :comments
- map.resources :messages, :new => { :preview => :post }
-
-* Fixed that integration simulation of XHRs should set Accept header as well [Edward Frederick]
-
-* TestRequest#reset_session should restore a TestSession, not a hash [Koz]
-
-* Don't search a load-path of '.' for controller files [Jamis Buck]
-
-* Update integration.rb to require test_process explicitly instead of via Dependencies. [Nicholas Seckar]
-
-* Fixed that you can still access the flash after the flash has been reset in reset_session. Closes #5584 [lmarlow@yahoo.com]
-
-* Allow form_for and fields_for to work with indexed form inputs. [Jeremy Kemper, Matt Lyon]
-
- <% form_for 'post[]', @post do |f| -%>
- <% end -%>
-
-* Remove leak in development mode by replacing define_method with module_eval. [Nicholas Seckar]
-
-* Provide support for decimal columns to form helpers. Closes #5672. [dave@pragprog.com]
-
-* Pass :id => nil or :class => nil to error_messages_for to supress that html attribute. #3586 [olivier_ansaldi@yahoo.com, sebastien@goetzilla.info]
-
-* Reset @html_document between requests so assert_tag works. #4810 [jarkko@jlaine.net, easleydp@gmail.com]
-
-* Integration tests behave well with render_component. #4632 [edward.frederick@revolution.com, dev.rubyonrails@maxdunn.com]
-
-* Added exception handling of missing layouts #5373 [chris@ozmm.org]
-
-* Fixed that real files and symlinks should be treated the same when compiling templates #5438 [zachary@panandscan.com]
-
-* Fixed that the flash should be reset when reset_session is called #5584 [shugo@ruby-lang.org]
-
-* Added special case for "1 Byte" in NumberHelper#number_to_human_size #5593 [murpyh@rubychan.de]
-
-* Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [DHH]
-
-* Add route_name_path method to generate only the path for a named routes. For example, map.person will add person_path. [Nicholas Seckar]
-
-* Avoid naming collision among compiled view methods. [Jeremy Kemper]
-
-* Fix CGI extensions when they expect string but get nil in Windows. Closes #5276 [mislav@nippur.irb.hr]
-
-* Determine the correct template_root for deeply nested components. #2841 [s.brink@web.de]
-
-* Fix that routes with *path segments in the recall can generate URLs. [Rick]
-
-* Fix strip_links so that it doesn't hang on multiline tags [Jamis Buck]
-
-* Remove problematic control chars in rescue template. #5316 [Stefan Kaes]
-
-* Make sure passed routing options are not mutated by routing code. #5314 [Blair Zajac]
-
-* Make sure changing the controller from foo/bar to bing/bang does not change relative to foo. [Jamis Buck]
-
-* Escape the path before routing recognition. #3671
-
-* Make sure :id and friends are unescaped properly. #5275 [me@julik.nl]
-
-* Rewind readable CGI params so others may reread them (such as CGI::Session when passing the session id in a multipart form). #210 [mklame@atxeu.com, matthew@walker.wattle.id.au]
-
-* Added Mime::TEXT (text/plain) and Mime::ICS (text/calendar) as new default types [DHH]
-
-* Added Mime::Type.register(string, symbol, synonyms = []) for adding new custom mime types [DHH]. Example: Mime::Type.register("image/gif", :gif)
-
-* Added support for Mime objects in render :content_type option [DHH]. Example: render :text => some_atom, :content_type => Mime::ATOM
-
-* Add :status option to send_data and send_file. Defaults to '200 OK'. #5243 [Manfred Stienstra ]
-
-* Routing rewrite. Simpler, faster, easier to understand. The published API for config/routes.rb is unchanged, but nearly everything else is different, so expect breakage in plugins and libs that try to fiddle with routes. [Nicholas Seckar, Jamis Buck]
-
- map.connect '/foo/:id', :controller => '...', :action => '...'
- map.connect '/foo/:id.:format', :controller => '...', :action => '...'
- map.connect '/foo/:id', ..., :conditions => { :method => :get }
-
-* Cope with missing content type and length headers. Parse parameters from multipart and urlencoded request bodies only. [Jeremy Kemper]
-
-* Accept multipart PUT parameters. #5235 [guy.naor@famundo.com]
-
-* Added interrogation of params[:format] to determine Accept type. If :format is specified and matches a declared extension, like "rss" or "xml", that mime type will be put in front of the accept handler. This means you can link to the same action from different extensions and use that fact to determine output [DHH]. Example:
-
- class WeblogController < ActionController::Base
- def index
- @posts = Post.find :all
-
- respond_to do |format|
- format.html
- format.xml { render :xml => @posts.to_xml }
- format.rss { render :action => "feed.rxml" }
- end
- end
- end
-
- # returns HTML when requested by a browser, since the browser
- # has the HTML mimetype at the top of its priority list
- Accept: text/html
- GET /weblog
-
- # returns the XML
- Accept: application/xml
- GET /weblog
-
- # returns the HTML
- Accept: application/xml
- GET /weblog.html
-
- # returns the XML
- Accept: text/html
- GET /weblog.xml
-
- All this relies on the fact that you have a route that includes .:format.
-
-* Expanded :method option in FormTagHelper#form_tag, FormHelper#form_for, PrototypeHelper#remote_form_for, PrototypeHelper#remote_form_tag, and PrototypeHelper#link_to_remote to allow for verbs other than GET and POST by automatically creating a hidden form field named _method, which will simulate the other verbs over post [DHH]
-
-* Added :method option to UrlHelper#link_to, which allows for using other verbs than GET for the link. This replaces the :post option, which is now deprecated. Example: link_to "Destroy", person_url(:id => person), :method => :delete [DHH]
-
-* follow_redirect doesn't complain about being redirected to the same controller. #5153 [dymo@mk.ukrtelecom.ua]
-
-* Add layout attribute to response object with the name of the layout that was rendered, or nil if none rendered. [Kevin Clark kevin.clark@gmail.com]
-
-* Fix NoMethodError when parsing params like &&. [Adam Greenfield]
-
-* form.text_area handles the :size option just like the original text_area (:size => '60x10' becomes cols="60" rows="10"). [Jeremy Kemper]
-
-* Excise ingrown code from FormOptionsHelper#options_for_select. #5008 [anonymous]
-
-* Small fix in routing to allow dynamic routes (broken after [4242]) [Rick]
-
- map.connect '*path', :controller => 'files', :action => 'show'
-
-* Use #flush between switching from #write to #syswrite. Closes #4907. [Blair Zajac ]
-
-* Allow error_messages_for to report errors for multiple objects, as well as support for customizing the name of the object in the error summary header. Closes #4186. [andrew@redlinesoftware.com, Marcel Molina Jr.]
-
- error_messages_for :account, :user, :subscription, :object_name => :account
-
-* Fix assert_redirected_to tests according to real-world usage. Also, don't fail if you add an extra :controller option: [Rick]
-
- redirect_to :action => 'new'
- assert_redirected_to :controller => 'monkeys', :action => 'new'
-
-* Diff compared routing options. Allow #assert_recognizes to take a second arg as a hash to specify optional request method [Rick]
-
- assert_recognizes({:controller => 'users', :action => 'index'}, 'users')
- assert_recognizes({:controller => 'users', :action => 'create'}, {:path => 'users', :method => :post})
-
-* Diff compared options with #assert_redirected_to [Rick]
-
-* Add support in routes for semicolon delimited "subpaths", like /books/:id;:action [Jamis Buck]
-
-* Change link_to_function and button_to_function to (optionally) take an update_page block instead of a JavaScript string. Closes #4804. [zraii@comcast.net, Sam Stephenson]
-
-* Modify routing so that you can say :require => { :method => :post } for a route, and the route will never be selected unless the request method is POST. Only works for route recognition, not for route generation. [Jamis Buck]
-
-* Added :add_headers option to verify which merges a hash of name/value pairs into the response's headers hash if the prerequisites cannot be satisfied. [Sam Stephenson]
- ex. verify :only => :speak, :method => :post,
- :render => { :status => 405, :text => "Must be post" },
- :add_headers => { "Allow" => "POST" }
-
-
-*1.12.5* (August 10th, 2006)
-
-* Updated security fix
-
-
-*1.12.4* (August 8th, 2006)
-
-* Cache CgiRequest#request_parameters so that multiple calls don't re-parse multipart data. [Rick]
-
-* Fixed that remote_form_for can leave out the object parameter and default to the instance variable of the object_name, just like form_for [DHH]
-
-* Added ActionController.filter_parameter_logging that makes it easy to remove passwords, credit card numbers, and other sensitive information from being logged when a request is handled. #1897 [jeremye@bsa.ca.gov]
-
-* Fixed that real files and symlinks should be treated the same when compiling templates. #5438 [zachary@panandscan.com]
-
-* Add :status option to send_data and send_file. Defaults to '200 OK'. #5243 [Manfred Stienstra ]
-
-* Update documentation for erb trim syntax. #5651 [matt@mattmargolis.net]
-
-* Short documentation to mention use of Mime::Type.register. #5710 [choonkeat@gmail.com]
-
-
-*1.12.3* (June 28th, 2006)
-
-* Fix broken traverse_to_controller. We now:
- Look for a _controller.rb file under RAILS_ROOT to load.
- If we find it, we require_dependency it and return the controller it defined. (If none was defined we stop looking.)
- If we don't find it, we look for a .rb file under RAILS_ROOT to load. If we find it, and it loads a constant we keep looking.
- Otherwise we check to see if a directory of the same name exists, and if it does we create a module for it.
-
-
-*1.12.2* (June 27th, 2006)
-
-* Refinement to avoid exceptions in traverse_to_controller.
-
-* (Hackish) Fix loading of arbitrary files in Ruby's load path by traverse_to_controller. [Nicholas Seckar]
-
-
-*1.12.1* (April 6th, 2006)
-
-* Fixed that template extensions would be cached development mode #4624 [Stefan Kaes]
-
-* Update to Prototype 1.5.0_rc0 [Sam Stephenson]
-
-* Honor skipping filters conditionally for only certain actions even when the parent class sets that filter to conditionally be executed only for the same actions. #4522 [Marcel Molina Jr.]
-
-* Delegate xml_http_request in integration tests to the session instance. [Jamis Buck]
-
-* Update the diagnostics template skip the useless '' text. [Nicholas Seckar]
-
-* CHANGED DEFAULT: Don't parse YAML input by default, but keep it available as an easy option [DHH]
-
-* Add additional autocompleter options [aballai, Thomas Fuchs]
-
-* Fixed fragment caching of binary data on Windows #4493 [bellis@deepthought.org]
-
-* Applied Prototype $() performance patches (#4465, #4477) and updated script.aculo.us [Sam Stephenson, Thomas Fuchs]
-
-* Added automated timestamping to AssetTagHelper methods for stylesheets, javascripts, and images when Action Controller is run under Rails [DHH]. Example:
-
- image_tag("rails.png") # => ''
-
- ...to avoid frequent stats (not a problem for most people), you can set RAILS_ASSET_ID in the ENV to avoid stats:
-
- ENV["RAILS_ASSET_ID"] = "2345"
- image_tag("rails.png") # => ''
-
- This can be used by deployment managers to set the asset id by application revision
-
-
-*1.12.0* (March 27th, 2006)
-
-* Add documentation for respond_to. [Jamis Buck]
-
-* Fixed require of bluecloth and redcloth when gems haven't been loaded #4446 [murphy@cYcnus.de]
-
-* Update to Prototype 1.5.0_pre1 [Sam Stephenson]
-
-* Change #form_for and #fields_for so that the second argument is not required [Dave Thomas]
-
- <% form_for :post, @post, :url => { :action => 'create' } do |f| -%>
-
- becomes...
-
- <% form_for :post, :url => { :action => 'create' } do |f| -%>
-
-* Update to script.aculo.us 1.6 [Thomas Fuchs]
-
-* Enable application/x-yaml processing by default [Jamis Buck]
-
-* Fix double url escaping of remote_function. Add :escape => false option to ActionView's url_for. [Nicholas Seckar]
-
-* Add :script option to in_place_editor to support evalScripts (closes #4194) [codyfauser@gmail.com]
-
-* Fix mixed case enumerable methods in the JavaScript Collection Proxy (closes #4314) [codyfauser@gmail.com]
-
-* Undo accidental escaping for mail_to; add regression test. [Nicholas Seckar]
-
-* Added nicer message for assert_redirected_to (closes #4294) [court3nay]
-
- assert_redirected_to :action => 'other_host', :only_path => false
-
- when it was expecting...
-
- redirected_to :action => 'other_host', :only_path => true, :host => 'other.test.host'
-
- gives the error message...
-
- response is not a redirection to all of the options supplied (redirection is <{:only_path=>false, :host=>"other.test.host", :action=>"other_host"}>), difference: <{:only_path=>"true", :host=>"other.test.host"}>
-
-* Change url_for to escape the resulting URLs when called from a view. [Nicholas Seckar, coffee2code]
-
-* Added easy support for testing file uploads with fixture_file_upload #4105 [turnip@turnipspatch.com]. Example:
-
- # Looks in Test::Unit::TestCase.fixture_path + '/files/spongebob.png'
- post :change_avatar, :avatar => fixture_file_upload('/files/spongebob.png', 'image/png')
-
-* Fixed UrlHelper#current_page? to behave even when url-escaped entities are present #3929 [jeremy@planetargon.com]
-
-* Add ability for relative_url_root to be specified via an environment variable RAILS_RELATIVE_URL_ROOT. [isaac@reuben.com, Nicholas Seckar]
-
-* Fixed link_to "somewhere", :post => true to produce valid XHTML by using the parentnode instead of document.body for the instant form #3007 [Bob Silva]
-
-* Added :function option to PrototypeHelper#observe_field/observe_form that allows you to call a function instead of submitting an ajax call as the trigger #4268 [jonathan@daikini.com]
-
-* Make Mime::Type.parse consider q values (if any) [Jamis Buck]
-
-* XML-formatted requests are typecast according to "type" attributes for :xml_simple [Jamis Buck]
-
-* Added protection against proxy setups treating requests as local even when they're not #3898 [stephen_purcell@yahoo.com]
-
-* Added TestRequest#raw_post that simulate raw_post from CgiRequest #3042 [francois.beausoleil@gmail.com]
-
-* Underscore dasherized keys in formatted requests [Jamis Buck]
-
-* Add MimeResponds::Responder#any for managing multiple types with identical responses [Jamis Buck]
-
-* Make the xml_http_request testing method set the HTTP_ACCEPT header [Jamis Buck]
-
-* Add Verification to scaffolds. Prevent destructive actions using GET [Michael Koziarski]
-
-* Avoid hitting the filesystem when using layouts by using a File.directory? cache. [Stefan Kaes, Nicholas Seckar]
-
-* Simplify ActionController::Base#controller_path [Nicholas Seckar]
-
-* Added simple alert() notifications for RJS exceptions when config.action_view.debug_rjs = true. [Sam Stephenson]
-
-* Added :content_type option to render, so you can change the content type on the fly [DHH]. Example: render :action => "atom.rxml", :content_type => "application/atom+xml"
-
-* CHANGED DEFAULT: The default content type for .rxml is now application/xml instead of type/xml, see http://www.xml.com/pub/a/2004/07/21/dive.html for reason [DHH]
-
-* Added option to render action/template/file of a specific extension (and here by template type). This means you can have multiple templates with the same name but a different extension [DHH]. Example:
-
- class WeblogController < ActionController::Base
- def index
- @posts = Post.find :all
-
- respond_to do |type|
- type.html # using defaults, which will render weblog/index.rhtml
- type.xml { render :action => "index.rxml" }
- type.js { render :action => "index.rjs" }
- end
- end
- end
-
-* Added better support for using the same actions to output for different sources depending on the Accept header [DHH]. Example:
-
- class WeblogController < ActionController::Base
- def create
- @post = Post.create(params[:post])
-
- respond_to do |type|
- type.js { render } # renders create.rjs
- type.html { redirect_to :action => "index" }
- type.xml do
- headers["Location"] = url_for(:action => "show", :id => @post)
- render(:nothing, :status => "201 Created")
- end
- end
- end
- end
-
-* Added Base#render(:xml => xml) that works just like Base#render(:text => text), but sets the content-type to text/xml and the charset to UTF-8 [DHH]
-
-* Integration test's url_for now runs in the context of the last request (if any) so after post /products/show/1 url_for :action => 'new' will yield /product/new [Tobias Luetke]
-
-* Re-added mixed-in helper methods for the JavascriptGenerator. Moved JavascriptGenerators methods to a module that is mixed in after the helpers are added. Also fixed that variables set in the enumeration methods like #collect are set correctly. Documentation added for the enumeration methods [Rick Olson]. Examples:
-
- page.select('#items li').collect('items') do |element|
- element.hide
- end
- # => var items = $$('#items li').collect(function(value, index) { return value.hide(); });
-
-* Added plugin support for parameter parsers, which allows for better support for REST web services. By default, posts submitted with the application/xml content type is handled by creating a XmlSimple hash with the same name as the root element of the submitted xml. More handlers can easily be registered like this:
-
- # Assign a new param parser to a new content type
- ActionController::Base.param_parsers['application/atom+xml'] = Proc.new do |data|
- node = REXML::Document.new(post)
- { node.root.name => node.root }
- end
-
- # Assign the default XmlSimple to a new content type
- ActionController::Base.param_parsers['application/backpack+xml'] = :xml_simple
-
-Default YAML web services were retired, ActionController::Base.param_parsers carries an example which shows how to get this functionality back. As part of this new plugin support, request.[formatted_post?, xml_post?, yaml_post? and post_format] were all deprecated in favor of request.content_type [Tobias Luetke]
-
-* Fixed Effect.Appear in effects.js to work with floats in Safari #3524, #3813, #3044 [Thomas Fuchs]
-
-* Fixed that default image extension was not appended when using a full URL with AssetTagHelper#image_tag #4032, #3728 [rubyonrails@beautifulpixel.com]
-
-* Added that page caching will only happen if the response code is less than 400 #4033 [g.bucher@teti.ch]
-
-* Add ActionController::IntegrationTest to allow high-level testing of the way the controllers and routes all work together [Jamis Buck]
-
-* Added support to AssetTagHelper#javascript_include_tag for having :defaults appear anywhere in the list, so you can now make one call ala javascript_include_tag(:defaults, "my_scripts") or javascript_include_tag("my_scripts", :defaults) depending on how you want the load order #3506 [Bob Silva]
-
-* Added support for visual effects scoped queues to the visual_effect helper #3530 [Abdur-Rahman Advany]
-
-* Added .rxml (and any non-rhtml template, really) supportfor CaptureHelper#content_for and CaptureHelper#capture #3287 [Brian Takita]
-
-* Added script.aculo.us drag and drop helpers to RJS [Thomas Fuchs]. Examples:
-
- page.draggable 'product-1'
- page.drop_receiving 'wastebasket', :url => { :action => 'delete' }
- page.sortable 'todolist', :url => { action => 'change_order' }
-
-* Fixed that form elements would strip the trailing [] from the first parameter #3545 [ruby@bobsilva.com]
-
-* During controller resolution, update the NameError suppression to check for the expected constant. [Nicholas Seckar]
-
-* Update script.aculo.us to V1.5.3 [Thomas Fuchs]
-
-* Added various InPlaceEditor options, #3746, #3891, #3896, #3906 [Bill Burcham, ruairi, sl33p3r]
-
-* Added :count option to pagination that'll make it possible for the ActiveRecord::Base.count call to using something else than * for the count. Especially important for count queries using DISTINCT #3839 [skaes]
-
-* Update script.aculo.us to V1.5.2 [Thomas Fuchs]
-
-* Added element and collection proxies to RJS [DHH]. Examples:
-
- page['blank_slate'] # => $('blank_slate');
- page['blank_slate'].show # => $('blank_slate').show();
- page['blank_slate'].show('first').up # => $('blank_slate').show('first').up();
-
- page.select('p') # => $$('p');
- page.select('p.welcome b').first # => $$('p.welcome b').first();
- page.select('p.welcome b').first.hide # => $$('p.welcome b').first().hide();
-
-* Add JavaScriptGenerator#replace for replacing an element's "outer HTML". #3246 [tom@craz8.com, Sam Stephenson]
-
-* Remove over-engineered form_for code for a leaner implementation. [Nicholas Seckar]
-
-* Document form_for's :html option. [Nicholas Seckar]
-
-* Major components cleanup and speedup. #3527 [Stefan Kaes]
-
-* Fix problems with pagination and :include. [Kevin Clark]
-
-* Add ActiveRecordTestCase for testing AR integration. [Kevin Clark]
-
-* Add Unit Tests for pagination [Kevin Clark]
-
-* Add :html option for specifying form tag options in form_for. [Sam Stephenson]
-
-* Replace dubious controller parent class in filter docs. #3655, #3722 [info@rhalff.com, eigentone@gmail.com]
-
-* Don't interpret the :value option on text_area as an html attribute. Set the text_area's value. #3752 [gabriel@gironda.org]
-
-* Fix remote_form_for creates a non-ajax form. [Rick Olson]
-
-* Don't let arbitrary classes match as controllers -- a potentially dangerous bug. [Nicholas Seckar]
-
-* Fix Routing tests. Fix routing where failing to match a controller would prevent the rest of routes from being attempted. [Nicholas Seckar]
-
-* Add :builder => option to form_for and friends. [Nicholas Seckar, Rick Olson]
-
-* Fix controller resolution to avoid accidentally inheriting a controller from a parent module. [Nicholas Seckar]
-
-* Set sweeper's @controller to nil after a request so that the controller may be collected between requests. [Nicholas Seckar]
-
-* Subclasses of ActionController::Caching::Sweeper should be Reloadable. [Rick Olson]
-
-* Document the :xhr option for verifications. #3666 [leeo]
-
-* Added :only and :except controls to skip_before/after_filter just like for when you add filters [DHH]
-
-* Ensure that the instance variables are copied to the template when performing render :update. [Nicholas Seckar]
-
-* Add the ability to call JavaScriptGenerator methods from helpers called in update blocks. [Sam Stephenson] Example:
- module ApplicationHelper
- def update_time
- page.replace_html 'time', Time.now.to_s(:db)
- page.visual_effect :highlight, 'time'
- end
- end
-
- class UserController < ApplicationController
- def poll
- render :update { |page| page.update_time }
- end
- end
-
-* Add render(:update) to ActionView::Base. [Sam Stephenson]
-
-* Fix render(:update) to not render layouts. [Sam Stephenson]
-
-* Fixed that SSL would not correctly be detected when running lighttpd/fcgi behind lighttpd w/mod_proxy #3548 [stephen_purcell@yahoo.com]
-
-* Added the possibility to specify atomatic expiration for the memcachd session container #3571 [Stefan Kaes]
-
-* Change layout discovery to take into account the change in semantics with File.join and nil arguments. [Marcel Molina Jr.]
-
-* Raise a RedirectBackError if redirect_to :back is called when there's no HTTP_REFERER defined #3049 [kevin.clark@gmail.com]
-
-* Treat timestamps like datetimes for scaffolding purposes #3388 [Maik Schmidt]
-
-* Fix IE bug with link_to "something", :post => true #3443 [Justin Palmer]
-
-* Extract Test::Unit::TestCase test process behavior into an ActionController::TestProcess module. [Sam Stephenson]
-
-* Pass along blocks from render_to_string to render. [Sam Stephenson]
-
-* Add render :update for inline RJS. [Sam Stephenson] Example:
- class UserController < ApplicationController
- def refresh
- render :update do |page|
- page.replace_html 'user_list', :partial => 'user', :collection => @users
- page.visual_effect :highlight, 'user_list'
- end
- end
- end
-
-* allow nil objects for error_messages_for [Michael Koziarski]
-
-* Refactor human_size to exclude decimal place if it is zero. [Marcel Molina Jr.]
-
-* Update to Prototype 1.5.0_pre0 [Sam Stephenson]
-
-* Automatically discover layouts when a controller is namespaced. #2199, #3424 [me@jonnii.com rails@jeffcole.net Marcel Molina Jr.]
-
-* Add support for multiple proxy servers to CgiRequest#host [gaetanot@comcast.net]
-
-* Documentation typo fix. #2367 [Blair Zajac]
-
-* Remove Upload Progress. #2871 [Sean Treadway]
-
-* Fix typo in function name mapping in auto_complete_field. #2929 #3446 [doppler@gmail.com phil.ross@gmail.com]
-
-* Allow auto-discovery of third party template library layouts. [Marcel Molina Jr.]
-
-* Have the form builder output radio button, not check box, when calling the radio button helper. #3331 [LouisStAmour@gmail.com]
-
-* Added assignment of the Autocompleter object created by JavaScriptMacroHelper#auto_complete_field to a local javascript variables [DHH]
-
-* Added :on option for PrototypeHelper#observe_field that allows you to specify a different callback hook to have the observer trigger on [DHH]
-
-* Added JavaScriptHelper#button_to_function that works just like JavaScriptHelper#link_to_function but uses a button instead of a href [DHH]
-
-* Added that JavaScriptHelper#link_to_function will honor existing :onclick definitions when adding the function call [DHH]
-
-* Added :disable_with option to FormTagHelper#submit_tag to allow for easily disabled submit buttons with different text [DHH]
-
-* Make auto_link handle nil by returning quickly if blank? [Scott Barron]
-
-* Make auto_link match urls with a port number specified. [Marcel Molina Jr.]
-
-* Added support for toggling visual effects to ScriptaculousHelper::visual_effect, #3323. [Thomas Fuchs]
-
-* Update to script.aculo.us to 1.5.0 rev. 3343 [Thomas Fuchs]
-
-* Added :select option for JavaScriptMacroHelper#auto_complete_field that makes it easier to only use part of the auto-complete suggestion as the value for insertion [Thomas Fuchs]
-
-* Added delayed execution of Javascript from within RJS #3264 [devslashnull@gmail.com]. Example:
-
- page.delay(20) do
- page.visual_effect :fade, 'notice'
- end
-
-* Add session ID to default logging, but remove the verbose description of every step [DHH]
-
-* Add the following RJS methods: [Sam Stephenson]
-
- * alert - Displays an alert() dialog
- * redirect_to - Changes window.location.href to simulate a browser redirect
- * call - Calls a JavaScript function
- * assign - Assigns to a JavaScript variable
- * << - Inserts an arbitrary JavaScript string
-
-* Fix incorrect documentation for form_for [Nicholas Seckar]
-
-* Don't include a layout when rendering an rjs template using render's :template option. [Marcel Molina Jr.]
-
-*1.1.2* (December 13th, 2005)
-
-* Become part of Rails 1.0
-
-* Update to script.aculo.us 1.5.0 final (equals 1.5.0_rc6) [Thomas Fuchs]
-
-* Update to Prototype 1.4.0 final [Sam Stephenson]
-
-* Added form_remote_for (form_for meets form_remote_tag) [DHH]
-
-* Update to script.aculo.us 1.5.0_rc6
-
-* More robust relative url root discovery for SCGI compatibility. This solves the 'SCGI routes problem' -- you no longer need to prefix all your routes with the name of the SCGI mountpoint. #3070 [Dave Ringoen]
-
-* Fix docs for text_area_tag. #3083. [Christopher Cotton]
-
-* Change form_for and fields_for method signatures to take object name and object as separate arguments rather than as a Hash. [DHH]
-
-* Introduce :selected option to the select helper. Allows you to specify a selection other than the current value of object.method. Specify :selected => nil to leave all options unselected. #2991 [Jonathan Viney ]
-
-* Initialize @optional in routing code to avoid warnings about uninitialized access to an instance variable. [Nicholas Seckar]
-
-* Make ActionController's render honor the :locals option when rendering a :file. #1665. [Emanuel Borsboom, Marcel Molina Jr.]
-
-* Allow assert_tag(:conditions) to match the empty string when a tag has no children. Closes #2959. [Jamis Buck]
-
-* Update html-scanner to handle CDATA sections better. Closes #2970. [Jamis Buck]
-
-* Don't put flash in session if sessions are disabled. [Jeremy Kemper]
-
-* Strip out trailing &_= for raw post bodies. Closes #2868. [Sam Stephenson]
-
-* Pass multiple arguments to Element.show and Element.hide in JavaScriptGenerator instead of using iterators. [Sam Stephenson]
-
-* Improve expire_fragment documentation. #2966 [court3nay@gmail.com]
-
-* Correct docs for automatic layout assignment. #2610. [Charles M. Gerungan]
-
-* Always create new AR sessions rather than trying too hard to avoid database traffic. #2731 [Jeremy Kemper]
-
-* Update to Prototype 1.4.0_rc4. Closes #2943 (old Array.prototype.reverse behavior can be obtained by passing false as an argument). [Sam Stephenson]
-
-* Use Element.update('id', 'html') instead of $('id').innerHTML = 'html' in JavaScriptGenerator#replace_html so that script tags are evaluated. [Sam Stephenson]
-
-* Make rjs templates always implicitly skip out on layouts. [Marcel Molina Jr.]
-
-* Correct length for the truncate text helper. #2913 [Stefan Kaes]
-
-* Update to Prototype 1.4.0_rc3. Closes #1893, #2505, #2550, #2748, #2783. [Sam Stephenson]
-
-* Add support for new rjs templates which wrap an update_page block. [Marcel Molina Jr.]
-
-* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
-
-* Correct time_zone_options_for_select docs. #2892 [pudeyo@rpi.com]
-
-* Remove the unused, slow response_dump and session_dump variables from error pages. #1222 [lmarlow@yahoo.com]
-
-* Performance tweaks: use Set instead of Array to speed up prototype helper include? calls. Avoid logging code if logger is nil. Inline commonly-called template presence checks. #2880, #2881, #2882, #2883 [Stefan Kaes]
-
-* MemCache store may be given multiple addresses. #2869 [Ryan Carver ]
-
-* Handle cookie parsing irregularity for certain Nokia phones. #2530 [zaitzow@gmail.com]
-
-* Added PrototypeHelper::JavaScriptGenerator and PrototypeHelper#update_page for easily modifying multiple elements in an Ajax response. [Sam Stephenson] Example:
-
- update_page do |page|
- page.insert_html :bottom, 'list', '
Last item
'
- page.visual_effect :highlight, 'list'
- page.hide 'status-indicator', 'cancel-link'
- end
-
- generates the following JavaScript:
-
- new Insertion.Bottom("list", "
Last item
");
- new Effect.Highlight("list");
- ["status-indicator", "cancel-link"].each(Element.hide);
-
-* Refactored JavaScriptHelper into PrototypeHelper and ScriptaculousHelper [Sam Stephenson]
-
-* Update to latest script.aculo.us version (as of [3031])
-
-* Updated docs for in_place_editor, fixes a couple bugs and offers extended support for external controls [Justin Palmer]
-
-* Update documentation for render :file. #2858 [Tom Werner]
-
-* Only include builtin filters whose filenames match /^[a-z][a-z_]*_helper.rb$/ to avoid including operating system metadata such as ._foo_helper.rb. #2855 [court3nay@gmail.com]
-
-* Added FormHelper#form_for and FormHelper#fields_for that makes it easier to work with forms for single objects also if they don't reside in instance variables [DHH]. Examples:
-
- <% form_for :person, @person, :url => { :action => "update" } do |f| %>
- First name: <%= f.text_field :first_name %>
- Last name : <%= f.text_field :last_name %>
- Biography : <%= f.text_area :biography %>
- Admin? : <%= f.check_box :admin %>
- <% end %>
-
- <% form_for :person, person, :url => { :action => "update" } do |person_form| %>
- First name: <%= person_form.text_field :first_name %>
- Last name : <%= person_form.text_field :last_name %>
-
- <% fields_for :permission => person.permission do |permission_fields| %>
- Admin? : <%= permission_fields.check_box :admin %>
- <% end %>
- <% end %>
-
-* options_for_select allows any objects which respond_to? :first and :last rather than restricting to Array and Range. #2824 [Jacob Robbins , Jeremy Kemper]
-
-* The auto_link text helper accepts an optional block to format the link text for each url and email address. Example: auto_link(post.body) { |text| truncate(text, 10) } [Jeremy Kemper]
-
-* assert_tag uses exact matches for string conditions, instead of partial matches. Use regex to do partial matches. #2799 [Jamis Buck]
-
-* CGI::Session::ActiveRecordStore.data_column_name = 'foobar' to use a different session data column than the 'data' default. [nbpwie102@sneakemail.com]
-
-* Do not raise an exception when default helper is missing; log a debug message instead. It's nice to delete empty helpers. [Jeremy Kemper]
-
-* Controllers with acronyms in their names (e.g. PDFController) require the correct default helper (PDFHelper in file pdf_helper.rb). #2262 [jeff@opendbms.com]
-
-
-*1.11.0* (November 7th, 2005)
-
-* Added request as instance method to views, so you can do <%= request.env["HTTP_REFERER"] %>, just like you can already access response, session, and the likes [DHH]
-
-* Fix conflict with assert_tag and Glue gem #2255 [david.felstead@gmail.com]
-
-* Add documentation to assert_tag indicating that it only works with well-formed XHTML #1937, #2570 [Jamis Buck]
-
-* Added action_pack.rb stub so that ActionPack::Version loads properly [Sam Stephenson]
-
-* Added short-hand to assert_tag so assert_tag :tag => "span" can be written as assert_tag "span" [DHH]
-
-* Added skip_before_filter/skip_after_filter for easier control of the filter chain in inheritance hierachies [DHH]. Example:
-
- class ApplicationController < ActionController::Base
- before_filter :authenticate
- end
-
- class WeblogController < ApplicationController
- # will run the :authenticate filter
- end
-
- class SignupController < ActionController::Base
- # will not run the :authenticate filter
- skip_before_filter :authenticate
- end
-
-* Added redirect_to :back as a short-hand for redirect_to(request.env["HTTP_REFERER"]) [DHH]
-
-* Change javascript_include_tag :defaults to not use script.aculo.us loader, which facilitates the use of plugins for future script.aculo.us and third party javascript extensions, and provide register_javascript_include_default for plugins to specify additional JavaScript files to load. Removed slider.js and builder.js from actionpack. [Thomas Fuchs]
-
-* Fix problem where redirecting components can cause an infinite loop [Rick Olson]
-
-* Added support for the queue option on visual_effect [Thomas Fuchs]
-
-* Update script.aculo.us to V1.5_rc4 [Thomas Fuchs]
-
-* Fix that render :text didn't interpolate instance variables #2629, #2626 [skaes]
-
-* Fix line number detection and escape RAILS_ROOT in backtrace Regexp [Nicholas Seckar]
-
-* Fixed document.getElementsByClassName from Prototype to be speedy again [Sam Stephenson]
-
-* Recognize ./#{RAILS_ROOT} as RAILS_ROOT in error traces [Nicholas Seckar]
-
-* Remove ARStore session fingerprinting [Nicholas Seckar]
-
-* Fix obscure bug in ARStore [Nicholas Seckar]
-
-* Added TextHelper#strip_tags for removing HTML tags from a string (using HTMLTokenizer) #2229 [marcin@junkheap.net]
-
-* Added a reader for flash.now, so it's possible to do stuff like flash.now[:alert] ||= 'New if not set' #2422 [Caio Chassot]
-
-
-*1.10.2* (October 26th, 2005)
-
-* Reset template variables after using render_to_string [skaes@web.de]
-
-* Expose the session model backing CGI::Session
-
-* Abbreviate RAILS_ROOT in traces
-
-
-*1.10.1* (October 19th, 2005)
-
-* Update error trace templates [Nicholas Seckar]
-
-* Stop showing generated routing code in application traces [Nicholas Seckar]
-
-
-*1.10.0* (October 16th, 2005)
-
-* Make string-keys locals assigns optional. Add documentation describing depreciated state [skaes@web.de]
-
-* Improve line number detection for template errors [Nicholas Seckar]
-
-* Update/clean up documentation (rdoc)
-
-* Upgrade to Prototype 1.4.0_rc0 [Sam Stephenson]
-
-* Added assert_vaild. Reports the proper AR error messages as fail message when the passed record is invalid [Tobias Luetke]
-
-* Add temporary support for passing locals to render using string keys [Nicholas Seckar]
-
-* Clean up error pages by providing better backtraces [Nicholas Seckar]
-
-* Raise an exception if an attempt is made to insert more session data into the ActiveRecordStore data column than the column can hold. #2234. [justin@textdrive.com]
-
-* Removed references to assertions.rb from actionpack assert's backtraces. Makes error reports in functional unit tests much less noisy. [Tobias Luetke]
-
-* Updated and clarified documentation for JavaScriptHelper to be more concise about the various options for including the JavaScript libs. [Thomas Fuchs]
-
-* Hide "Retry with Breakpoint" button on error pages until feature is functional. [DHH]
-
-* Fix Request#host_with_port to use the standard port when Rails is behind a proxy. [Nicholas Seckar]
-
-* Escape query strings in the href attribute of URLs created by url_helper. #2333 [Michael Schuerig ]
-
-* Improved line number reporting for template errors [Nicholas Seckar]
-
-* Added :locals support for render :inline #2463 [mdabney@cavoksolutions.com]
-
-* Unset the X-Requested-With header when using the xhr wrapper in functional tests so that future requests aren't accidentally xhr'ed #2352 [me@julik.nl, Sam Stephenson]
-
-* Unescape paths before writing cache to file system. #1877. [Damien Pollet]
-
-* Wrap javascript_tag contents in a CDATA section and add a cdata_section method to TagHelper #1691 [Michael Schuerig, Sam Stephenson]
-
-* Misc doc fixes (typos/grammar/etc). #2445. [coffee2code]
-
-* Speed improvement for session_options. #2287. [skaes@web.de]
-
-* Make cacheing binary files friendly with Windows. #1975. [Rich Olson]
-
-* Convert boolean form options form the tag_helper. #809. [Michael Schuerig ]
-
-* Fixed that an instance variable with the same name as a partial should be implicitly passed as the partial :object #2269 [court3nay]
-
-* Update Prototype to V1.4.0_pre11, script.aculo.us to [2502] [Thomas Fuchs]
-
-* Make assert_tag :children count appropriately. Closes #2181. [jamie@bravenet.com]
-
-* Forced newer versions of RedCloth to use hard breaks [DHH]
-
-* Added new scriptaculous options for auto_complete_field #2343 [m.stienstra@fngtps.com]
-
-* Don't prepend the asset host if the string is already a fully-qualified URL
-
-* Updated to script.aculo.us V1.5.0_rc2 and Prototype to V1.4.0_pre7 [Thomas Fuchs]
-
-* Undo condition change made in [2345] to prevent normal parameters arriving as StringIO.
-
-* Tolerate consecutive delimiters in query parameters. #2295 [darashi@gmail.com]
-
-* Streamline render process, code cleaning. Closes #2294. [skae]
-
-* Keep flash after components are rendered. #2291 [Rick Olson, Scott]
-
-* Shorten IE file upload path to filename only to match other browsers. #1507 [court3nay@gmail.com]
-
-* Fix open/save dialog in IE not opening files send with send_file/send_data, #2279 [Thomas Fuchs]
-
-* Fixed that auto_discovery_link_tag couldn't take a string as the URL [DHH]
-
-* Fixed problem with send_file and WEBrick using stdout #1812 [DHH]
-
-* Optimized tag_options to not sort keys, which is no longer necessary when assert_dom_equal and friend is available #1995 [skae]
-
-* Added assert_dom_equal and assert_dom_not_equal to compare tags generated by the helpers in an order-indifferent manner #1995 [skae]
-
-* Fixed that Request#domain caused an exception if the domain header wasn't set in the original http request #1795 [Michael Koziarski]
-
-* Make the truncate() helper multi-byte safe (assuming $KCODE has been set to something other than "NONE") #2103
-
-* Add routing tests from #1945 [ben@groovie.org]
-
-* Add a routing test case covering #2101 [Nicholas Seckar]
-
-* Cache relative_url_root for all webservers, not just Apache #2193 [skae]
-
-* Speed up cookie use by decreasing string copying #2194 [skae]
-
-* Fixed access to "Host" header with requests made by crappy old HTTP/1.0 clients #2124 [Marcel Molina]
-
-* Added easy assignment of fragment cache store through use of symbols for included stores (old way still works too)
-
- Before:
- ActionController::Base.fragment_cache_store =
- ActionController::Base::Caching::Fragments::FileStore.new("/path/to/cache/directory")
-
- After:
- ActionController::Base.fragment_cache_store = :file_store, "/path/to/cache/directory"
-
-* Added ActionController::Base.session_store=, session_store, and session_options to make it easier to tweak the session options (instead of going straight to ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS)
-
-* Added TextHelper#cycle to cycle over an array of values on each hit (useful for alternating row colors etc) #2154 [dave-ml@dribin.org]
-
-* Ensure that request.path never returns nil. Closes #1675 [Nicholas Seckar]
-
-* Add ability to specify Route Regexps for controllers. Closes #1917. [Sebastian Kanthak]
-
-* Provide Named Route's hash methods as helper methods. Closes #1744. [Nicholas Seckar, Steve Purcell]
-
-* Added :multipart option to ActiveRecordHelper#form to make it possible to add file input fields #2034 [jstirk@oobleyboo.com]
-
-* Moved auto-completion and in-place editing into the Macros module and their helper counterparts into JavaScriptMacrosHelper
-
-* Added in-place editing support in the spirit of auto complete with ActionController::Base.in_place_edit_for, JavascriptHelper#in_place_editor_field, and Javascript support from script.aculo.us #2038 [Jon Tirsen]
-
-* Added :disabled option to all data selects that'll make the elements inaccessible for change #2167, #253 [eigentone]
-
-* Fixed that TextHelper#auto_link_urls would include punctuation in the links #2166, #1671 [eigentone]
-
-* Fixed that number_to_currency(1000, {:precision => 0})) should return "$1,000", instead of "$1,000." #2122 [sd@notso.net]
-
-* Allow link_to_remote to use any DOM-element as the parent of the form elements to be submitted #2137 [erik@ruby-lang.nl]. Example:
-
-
-
-* Fixed that render :partial would fail when :object was a Hash (due to backwards compatibility issues) #2148 [Sam Stephenson]
-
-* Fixed JavascriptHelper#auto_complete_for to only include unique items #2153 [Thomas Fuchs]
-
-* Fixed all AssetHelper methods to work with relative paths, such that javascript_include_tag('stdlib/standard') will look in /javascripts/stdlib/standard instead of '/stdlib/standard/' #1963
-
-* Avoid extending view instance with helper modules each request. Closes #1979
-
-* Performance improvements to CGI methods. Closes #1980 [Skaes]
-
-* Added :post option to UrlHelper#link_to that makes it possible to do POST requests through normal ahref links using Javascript
-
-* Fixed overwrite_params
-
-* Added ActionController::Base.benchmark and ActionController::Base.silence to allow for easy benchmarking and turning off the log
-
-* Updated vendor copy of html-scanner to support better xml parsing
-
-* Added :popup option to UrlHelper#link_to #1996 [gabriel.gironda@gmail.com]. Examples:
-
- link_to "Help", { :action => "help" }, :popup => true
- link_to "Busy loop", { :action => "busy" }, :popup => ['new_window', 'height=300,width=600']
-
-* Drop trailing \000 if present on RAW_POST_DATA (works around bug in Safari Ajax implementation) #918
-
-* Fix observe_field to fall back to event-based observation if frequency <= 0 #1916 [michael@schubert.cx]
-
-* Allow use of the :with option for submit_to_remote #1936 [jon@instance-design.co.uk]
-
-* AbstractRequest#domain returns nil when host is an ip address #2012 [kevin.clark@gmail.com]
-
-* ActionController documentation update #2051 [fbeausoleil@ftml.net]
-
-* Yield @content_for_ variables to templates #2058 [Sam Stephenson]
-
-* Make rendering an empty partial collection behave like :nothing => true #2080 [Sam Stephenson]
-
-* Add option to specify the singular name used by pagination.
-
-* Use string key to obtain action value. Allows indifferent hashes to be disabled.
-
-* Added ActionView::Base.cache_template_loading back.
-
-* Rewrote compiled templates to decrease code complexity. Removed template load caching in favour of compiled caching. Fixed template error messages. [Nicholas Seckar]
-
-* Fix Routing to handle :some_param => nil better. [Nicholas Seckar, Luminas]
-
-* Add support for :include with pagination (subject to existing constraints for :include with :limit and :offset) #1478 [michael@schubert.cx]
-
-* Prevent the benchmark module from blowing up if a non-HTTP/1.1 request is processed
-
-* Added :use_short_month option to select_month helper to show month names as abbreviations
-
-* Make link_to escape the javascript in the confirm option #1964 [nicolas.pouillard@gmail.com]
-
-* Make assert_redirected_to properly check URL's passed as strings #1910 [Scott Barron]
-
-* Make sure :layout => false is always used when rendering inside a layout
-
-* Use raise instead of assert_not_nil in Test::Unit::TestCase#process to ensure that the test variables (controller, request, response) have been set
-
-* Make sure assigns are built for every request when testing #1866
-
-* Allow remote_addr to be queried on TestRequest #1668
-
-* Fixed bug when a partial render was passing a local with the same name as the partial
-
-* Improved performance of test app req/sec with ~10% refactoring the render method #1823 [Stefan Kaes]
-
-* Improved performance of test app req/sec with 5-30% through a series of Action Pack optimizations #1811 [Stefan Kaes]
-
-* Changed caching/expiration/hit to report using the DEBUG log level and errors to use the ERROR log level instead of both using INFO
-
-* Added support for per-action session management #1763
-
-* Improved rendering speed on complicated templates by up to 100% (the more complex the templates, the higher the speedup) #1234 [Stephan Kaes]. This did necessasitate a change to the internals of ActionView#render_template that now has four parameters. Developers of custom view handlers (like Amrita) need to update for that.
-
-* Added options hash as third argument to FormHelper#input, so you can do input('person', 'zip', :size=>10) #1719 [jeremye@bsa.ca.gov]
-
-* Added Base#expires_in(seconds)/Base#expires_now to control HTTP content cache headers #1755 [Thomas Fuchs]
-
-* Fixed line number reporting for Builder template errors #1753 [piotr]
-
-* Fixed assert_routing so that testing controllers in modules works as expected [Nicholas Seckar, Rick Olson]
-
-* Fixed bug with :success/:failure callbacks for the JavaScriptHelper methods #1730 [court3nay/Thomas Fuchs]
-
-* Added named_route method to RouteSet instances so that RouteSet instance methods do not prevent certain names from being used. [Nicholas Seckar]
-
-* Fixed routes so that routes which do not specify :action in the path or in the requirements have a default of :action => 'index', In addition, fixed url generation so that :action => 'index' does not need to be provided for such urls. [Nicholas Seckar, Markjuh]
-
-* Worked around a Safari bug where it wouldn't pass headers through if the response was zero length by having render :nothing return ' ' instead of ''
-
-* Fixed Request#subdomains to handle "foo.foo.com" correctly
-
-
-*1.9.1* (11 July, 2005)
-
-* Fixed that auto_complete_for didn't force the input string to lower case even as the db comparison was
-
-* Fixed that Action View should always use the included Builder, never attempt to require the gem, to ensure compatibility
-
-* Added that nil options are not included in tags, so tag("p", :ignore => nil) now returns not but that tag("p", :ignore => "") still includes it #1465 [michael@schuerig.de]
-
-* Fixed that UrlHelper#link_to_unless/link_to_if used html_escape on the name if no link was to be applied. This is unnecessary and breaks its use with images #1649 [joergd@pobox.com]
-
-* Improved error message for DoubleRenderError
-
-* Fixed routing to allow for testing of *path components #1650 [Nicholas Seckar]
-
-* Added :handle as an option to sortable_element to restrict the drag handle to a given class #1642 [thejohnny]
-
-* Added a bunch of script.aculo.us features #1644, #1677, #1695 [Thomas Fuchs]
- * Effect.ScrollTo, to smoothly scroll the page to an element
- * Better Firefox flickering handling on SlideUp/SlideDown
- * Removed a possible memory leak in IE with draggables
- * Added support for cancelling dragging my hitting ESC
- * Added capability to remove draggables/droppables and redeclare sortables in dragdrop.js (this makes it possible to call sortable_element on the same element more than once, e.g. in AJAX returns that modify the sortable element. all current sortable 'stuff' on the element will be discarded and the sortable will be rebuilt)
- * Always reset background color on Effect.Highlight; this make change backwards-compatibility, to be sure include style="background-color:(target-color)" on your elements or else elements will fall back to their CSS rules (which is a good thing in most circumstances)
- * Removed circular references from element to prevent memory leaks (still not completely gone in IE)
- * Changes to class extension in effects.js
- * Make Effect.Highlight restore any previously set background color when finishing (makes effect work with CSS classes that set a background color)
- * Fixed myriads of memory leaks in IE and Gecko-based browsers [David Zülke]
- * Added incremental and local autocompleting and loads of documentation to controls.js [Ivan Krstic]
- * Extended the auto_complete_field helper to accept tokens option
- * Changed object extension mechanism to favor Object.extend to make script.aculo.us easily adaptable to support 3rd party libs like IE7.js [David Zülke]
-
-* Fixed that named routes didn't use the default values for action and possible other parameters #1534 [Nicholas Seckar]
-
-* Fixed JavascriptHelper#visual_effect to use camelize such that :blind_up will work #1639 [pelletierm@eastmedia.net]
-
-* Fixed that a SessionRestoreError was thrown if a model object was placed in the session that wasn't available to all controllers. This means that it's no longer necessary to use the 'model :post' work-around in ApplicationController to have a Post model in your session.
-
-
-*1.9.0* (6 July, 2005)
-
-* Added logging of the request URI in the benchmark statement (makes it easy to grep for slow actions)
-
-* Added javascript_include_tag :defaults shortcut that'll include all the default javascripts included with Action Pack (prototype, effects, controls, dragdrop)
-
-* Cache several controller variables that are expensive to calculate #1229 [skaes@web.de]
-
-* The session class backing CGI::Session::ActiveRecordStore may be replaced with any class that duck-types with a subset of Active Record. See docs for details #1238 [skaes@web.de]
-
-* Fixed that hashes was not working properly when passed by GET to lighttpd #849 [Nicholas Seckar]
-
-* Fixed assert_template nil will be true when no template was rendered #1565 [maceywj@telus.net]
-
-* Added :prompt option to FormOptions#select (and the users of it, like FormOptions#select_country etc) to create "Please select" style descriptors #1181 [Michael Schuerig]
-
-* Added JavascriptHelper#update_element_function, which returns a Javascript function (or expression) that'll update a DOM element according to the options passed #933 [mortonda@dgrmm.net]. Examples:
-
- <%= update_element_function("products", :action => :insert, :position => :bottom, :content => "
- <% end %>
-
-* Added :field_name option to DateHelper#select_(year|month|day) to deviate from the year/month/day defaults #1266 [Marcel Molina]
-
-* Added JavascriptHelper#draggable_element and JavascriptHelper#drop_receiving_element to facilitate easy dragging and dropping through the script.aculo.us libraries #1578 [Thomas Fuchs]
-
-* Added that UrlHelper#mail_to will now also encode the default link title #749 [f.svehla@gmail.com]
-
-* Removed the default option of wrap=virtual on FormHelper#text_area to ensure XHTML compatibility #1300 [thomas@columbus.rr.com]
-
-* Adds the ability to include XML CDATA tags using Builder #1563 [Josh Knowles]. Example:
-
- xml.cdata! "some text" # =>
-
-* Added evaluation of
- #
- # javascript_include_tag "common.javascript", "/elsewhere/cools" # =>
- #
- #
- #
- # javascript_include_tag :defaults # =>
- #
- #
- # ...
- # *see below
- #
- # If there's an application.js file in your public/javascripts directory,
- # javascript_include_tag :defaults will automatically include it. This file
- # facilitates the inclusion of small snippets of JavaScript code, along the lines of
- # controllers/application.rb and helpers/application_helper.rb.
- def javascript_include_tag(*sources)
- options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { }
-
- if sources.include?(:defaults)
- sources = sources[0..(sources.index(:defaults))] +
- @@javascript_default_sources.dup +
- sources[(sources.index(:defaults) + 1)..sources.length]
-
- sources.delete(:defaults)
- sources << "application" if defined?(RAILS_ROOT) && File.exists?("#{RAILS_ROOT}/public/javascripts/application.js")
- end
-
- sources.collect { |source|
- source = javascript_path(source)
- content_tag("script", "", { "type" => "text/javascript", "src" => source }.merge(options))
- }.join("\n")
- end
-
- # Register one or more additional JavaScript files to be included when
- #
- # javascript_include_tag :defaults
- #
- # is called. This method is intended to be called only from plugin initialization
- # to register extra .js files the plugin installed in public/javascripts.
- def self.register_javascript_include_default(*sources)
- @@javascript_default_sources.concat(sources)
- end
-
- def self.reset_javascript_include_default #:nodoc:
- @@javascript_default_sources = JAVASCRIPT_DEFAULT_SOURCES.dup
- end
-
- # Returns path to a stylesheet asset. Example:
- #
- # stylesheet_path "style" # => /stylesheets/style.css
- def stylesheet_path(source)
- compute_public_path(source, 'stylesheets', 'css')
- end
-
- # Returns a css link tag per source given as argument. Examples:
- #
- # stylesheet_link_tag "style" # =>
- #
- #
- # stylesheet_link_tag "style", :media => "all" # =>
- #
- #
- # stylesheet_link_tag "random.styles", "/css/stylish" # =>
- #
- #
- def stylesheet_link_tag(*sources)
- options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { }
- sources.collect { |source|
- source = stylesheet_path(source)
- tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => source }.merge(options))
- }.join("\n")
- end
-
- # Returns path to an image asset. Example:
- #
- # The +src+ can be supplied as a...
- # * full path, like "/my_images/image.gif"
- # * file name, like "rss.gif", that gets expanded to "/images/rss.gif"
- # * file name without extension, like "logo", that gets expanded to "/images/logo.png"
- def image_path(source)
- unless (source.split("/").last || source).include?(".") || source.blank?
- ActiveSupport::Deprecation.warn(
- "You've called image_path with a source that doesn't include an extension. " +
- "In Rails 2.0, that will not result in .png automatically being appended. " +
- "So you should call image_path('#{source}.png') instead", caller
- )
- end
-
- compute_public_path(source, 'images', 'png')
- end
-
- # Returns an image tag converting the +options+ into html options on the tag, but with these special cases:
- #
- # * :alt - If no alt text is given, the file name part of the +src+ is used (capitalized and without the extension)
- # * :size - Supplied as "XxY", so "30x45" becomes width="30" and height="45"
- #
- # The +src+ can be supplied as a...
- # * full path, like "/my_images/image.gif"
- # * file name, like "rss.gif", that gets expanded to "/images/rss.gif"
- # * file name without extension, like "logo", that gets expanded to "/images/logo.png"
- def image_tag(source, options = {})
- options.symbolize_keys!
-
- options[:src] = image_path(source)
- options[:alt] ||= File.basename(options[:src], '.*').split('.').first.capitalize
-
- if options[:size]
- options[:width], options[:height] = options[:size].split("x")
- options.delete :size
- end
-
- tag("img", options)
- end
-
- private
- def compute_public_path(source, dir, ext)
- source = source.dup
- source << ".#{ext}" if File.extname(source).blank?
- unless source =~ %r{^[-a-z]+://}
- source = "/#{dir}/#{source}" unless source[0] == ?/
- asset_id = rails_asset_id(source)
- source << '?' + asset_id if defined?(RAILS_ROOT) and not asset_id.blank?
- source = "#{ActionController::Base.asset_host}#{@controller.request.relative_url_root}#{source}"
- end
- source
- end
-
- def rails_asset_id(source)
- ENV["RAILS_ASSET_ID"] ||
- File.mtime("#{RAILS_ROOT}/public/#{source}").to_i.to_s rescue ""
- end
- end
- end
-end
diff --git a/tracks/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb b/tracks/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb
deleted file mode 100644
index 1d53be51..00000000
--- a/tracks/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-require 'benchmark'
-
-module ActionView
- module Helpers
- module BenchmarkHelper
- # Measures the execution time of a block in a template and reports the result to the log. Example:
- #
- # <% benchmark "Notes section" do %>
- # <%= expensive_notes_operation %>
- # <% end %>
- #
- # Will add something like "Notes section (0.34523)" to the log.
- #
- # You may give an optional logger level as the second argument
- # (:debug, :info, :warn, :error). The default is :info.
- def benchmark(message = "Benchmarking", level = :info)
- if @logger
- real = Benchmark.realtime { yield }
- @logger.send level, "#{message} (#{'%.5f' % real})"
- end
- end
- end
- end
-end
diff --git a/tracks/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb b/tracks/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb
deleted file mode 100644
index de2707ac..00000000
--- a/tracks/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-module ActionView
- module Helpers
- # See ActionController::Caching::Fragments for usage instructions.
- module CacheHelper
- def cache(name = {}, &block)
- @controller.cache_erb_fragment(block, name)
- end
- end
- end
-end
diff --git a/tracks/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb b/tracks/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb
deleted file mode 100644
index 497ce093..00000000
--- a/tracks/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb
+++ /dev/null
@@ -1,128 +0,0 @@
-module ActionView
- module Helpers
- # Capture lets you extract parts of code which
- # can be used in other points of the template or even layout file.
- #
- # == Capturing a block into an instance variable
- #
- # <% @script = capture do %>
- # [some html...]
- # <% end %>
- #
- # == Add javascript to header using content_for
- #
- # content_for("name") is a wrapper for capture which will
- # make the fragment available by name to a yielding layout or template.
- #
- # layout.rhtml:
- #
- #
- #
- # layout with js
- #
- #
- #
- # <%= yield %>
- #
- #
- #
- # view.rhtml
- #
- # This page shows an alert box!
- #
- # <% content_for("script") do %>
- # alert('hello world')
- # <% end %>
- #
- # Normal view text
- module CaptureHelper
- # Capture allows you to extract a part of the template into an
- # instance variable. You can use this instance variable anywhere
- # in your templates and even in your layout.
- #
- # Example of capture being used in a .rhtml page:
- #
- # <% @greeting = capture do %>
- # Welcome To my shiny new web page!
- # <% end %>
- #
- # Example of capture being used in a .rxml page:
- #
- # @greeting = capture do
- # 'Welcome To my shiny new web page!'
- # end
- def capture(*args, &block)
- # execute the block
- begin
- buffer = eval("_erbout", block.binding)
- rescue
- buffer = nil
- end
-
- if buffer.nil?
- capture_block(*args, &block)
- else
- capture_erb_with_buffer(buffer, *args, &block)
- end
- end
-
- # Calling content_for stores the block of markup for later use.
- # Subsequently, you can make calls to it by name with yield
- # in another template or in the layout.
- #
- # Example:
- #
- # <% content_for("header") do %>
- # alert('hello world')
- # <% end %>
- #
- # You can use yield :header anywhere in your templates.
- #
- # <%= yield :header %>
- #
- # NOTE: Beware that content_for is ignored in caches. So you shouldn't use it
- # for elements that are going to be fragment cached.
- #
- # The deprecated way of accessing a content_for block was to use a instance variable
- # named @@content_for_#{name_of_the_content_block}@. So <%= content_for('footer') %>
- # would be avaiable as <%= @content_for_footer %>. The preferred notation now is
- # <%= yield :footer %>.
- def content_for(name, content = nil, &block)
- eval "@content_for_#{name} = (@content_for_#{name} || '') + capture(&block)"
- end
-
- private
- def capture_block(*args, &block)
- block.call(*args)
- end
-
- def capture_erb(*args, &block)
- buffer = eval("_erbout", block.binding)
- capture_erb_with_buffer(buffer, *args, &block)
- end
-
- def capture_erb_with_buffer(buffer, *args, &block)
- pos = buffer.length
- block.call(*args)
-
- # extract the block
- data = buffer[pos..-1]
-
- # replace it in the original with empty string
- buffer[pos..-1] = ''
-
- data
- end
-
- def erb_content_for(name, &block)
- eval "@content_for_#{name} = (@content_for_#{name} || '') + capture_erb(&block)"
- end
-
- def block_content_for(name, &block)
- eval "@content_for_#{name} = (@content_for_#{name} || '') + capture_block(&block)"
- end
- end
- end
-end
diff --git a/tracks/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb b/tracks/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb
deleted file mode 100755
index 19dc90ca..00000000
--- a/tracks/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb
+++ /dev/null
@@ -1,429 +0,0 @@
-require "date"
-
-module ActionView
- module Helpers
- # The Date Helper primarily creates select/option tags for different kinds of dates and date elements. All of the select-type methods
- # share a number of common options that are as follows:
- #
- # * :prefix - overwrites the default prefix of "date" used for the select names. So specifying "birthday" would give
- # birthday[month] instead of date[month] if passed to the select_month method.
- # * :include_blank - set to true if it should be possible to set an empty date.
- # * :discard_type - set to true if you want to discard the type part of the select name. If set to true, the select_month
- # method would use simply "date" (which can be overwritten using :prefix) instead of "date[month]".
- module DateHelper
- DEFAULT_PREFIX = 'date' unless const_defined?('DEFAULT_PREFIX')
-
- # Reports the approximate distance in time between two Time or Date objects or integers as seconds.
- # Set include_seconds to true if you want more detailed approximations when distance < 1 min, 29 secs
- # Distances are reported base on the following table:
- #
- # 0 <-> 29 secs # => less than a minute
- # 30 secs <-> 1 min, 29 secs # => 1 minute
- # 1 min, 30 secs <-> 44 mins, 29 secs # => [2..44] minutes
- # 44 mins, 30 secs <-> 89 mins, 29 secs # => about 1 hour
- # 89 mins, 29 secs <-> 23 hrs, 59 mins, 29 secs # => about [2..24] hours
- # 23 hrs, 59 mins, 29 secs <-> 47 hrs, 59 mins, 29 secs # => 1 day
- # 47 hrs, 59 mins, 29 secs <-> 29 days, 23 hrs, 59 mins, 29 secs # => [2..29] days
- # 29 days, 23 hrs, 59 mins, 30 secs <-> 59 days, 23 hrs, 59 mins, 29 secs # => about 1 month
- # 59 days, 23 hrs, 59 mins, 30 secs <-> 1 yr minus 31 secs # => [2..12] months
- # 1 yr minus 30 secs <-> 2 yrs minus 31 secs # => about 1 year
- # 2 yrs minus 30 secs <-> max time or date # => over [2..X] years
- #
- # With include_seconds = true and the difference < 1 minute 29 seconds
- # 0-4 secs # => less than 5 seconds
- # 5-9 secs # => less than 10 seconds
- # 10-19 secs # => less than 20 seconds
- # 20-39 secs # => half a minute
- # 40-59 secs # => less than a minute
- # 60-89 secs # => 1 minute
- #
- # Examples:
- #
- # from_time = Time.now
- # distance_of_time_in_words(from_time, from_time + 50.minutes) # => about 1 hour
- # distance_of_time_in_words(from_time, from_time + 15.seconds) # => less than a minute
- # distance_of_time_in_words(from_time, from_time + 15.seconds, true) # => less than 20 seconds
- #
- # Note: Rails calculates one year as 365.25 days.
- def distance_of_time_in_words(from_time, to_time = 0, include_seconds = false)
- from_time = from_time.to_time if from_time.respond_to?(:to_time)
- to_time = to_time.to_time if to_time.respond_to?(:to_time)
- distance_in_minutes = (((to_time - from_time).abs)/60).round
- distance_in_seconds = ((to_time - from_time).abs).round
-
- case distance_in_minutes
- when 0..1
- return (distance_in_minutes == 0) ? 'less than a minute' : '1 minute' unless include_seconds
- case distance_in_seconds
- when 0..4 then 'less than 5 seconds'
- when 5..9 then 'less than 10 seconds'
- when 10..19 then 'less than 20 seconds'
- when 20..39 then 'half a minute'
- when 40..59 then 'less than a minute'
- else '1 minute'
- end
-
- when 2..44 then "#{distance_in_minutes} minutes"
- when 45..89 then 'about 1 hour'
- when 90..1439 then "about #{(distance_in_minutes.to_f / 60.0).round} hours"
- when 1440..2879 then '1 day'
- when 2880..43199 then "#{(distance_in_minutes / 1440).round} days"
- when 43200..86399 then 'about 1 month'
- when 86400..525959 then "#{(distance_in_minutes / 43200).round} months"
- when 525960..1051919 then 'about 1 year'
- else "over #{(distance_in_minutes / 525960).round} years"
- end
- end
-
- # Like distance_of_time_in_words, but where to_time is fixed to Time.now.
- def time_ago_in_words(from_time, include_seconds = false)
- distance_of_time_in_words(from_time, Time.now, include_seconds)
- end
-
- alias_method :distance_of_time_in_words_to_now, :time_ago_in_words
-
- # Returns a set of select tags (one for year, month, and day) pre-selected for accessing a specified date-based attribute (identified by
- # +method+) on an object assigned to the template (identified by +object+). It's possible to tailor the selects through the +options+ hash,
- # which accepts all the keys that each of the individual select builders do (like :use_month_numbers for select_month) as well as a range of
- # discard options. The discard options are :discard_year, :discard_month and :discard_day. Set to true, they'll
- # drop the respective select. Discarding the month select will also automatically discard the day select. It's also possible to explicitly
- # set the order of the tags using the :order option with an array of symbols :year, :month and :day in
- # the desired order. Symbols may be omitted and the respective select is not included.
- #
- # Passing :disabled => true as part of the +options+ will make elements inaccessible for change.
- #
- # NOTE: Discarded selects will default to 1. So if no month select is available, January will be assumed.
- #
- # Examples:
- #
- # date_select("post", "written_on")
- # date_select("post", "written_on", :start_year => 1995)
- # date_select("post", "written_on", :start_year => 1995, :use_month_numbers => true,
- # :discard_day => true, :include_blank => true)
- # date_select("post", "written_on", :order => [:day, :month, :year])
- # date_select("user", "birthday", :order => [:month, :day])
- #
- # The selects are prepared for multi-parameter assignment to an Active Record object.
- def date_select(object_name, method, options = {})
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_date_select_tag(options)
- end
-
- # Returns a set of select tags (one for hour, minute and optionally second) pre-selected for accessing a specified
- # time-based attribute (identified by +method+) on an object assigned to the template (identified by +object+).
- # You can include the seconds with :include_seconds.
- # Examples:
- #
- # time_select("post", "sunrise")
- # time_select("post", "start_time", :include_seconds => true)
- #
- # The selects are prepared for multi-parameter assignment to an Active Record object.
- def time_select(object_name, method, options = {})
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_time_select_tag(options)
- end
-
- # Returns a set of select tags (one for year, month, day, hour, and minute) pre-selected for accessing a specified datetime-based
- # attribute (identified by +method+) on an object assigned to the template (identified by +object+). Examples:
- #
- # datetime_select("post", "written_on")
- # datetime_select("post", "written_on", :start_year => 1995)
- #
- # The selects are prepared for multi-parameter assignment to an Active Record object.
- def datetime_select(object_name, method, options = {})
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_datetime_select_tag(options)
- end
-
- # Returns a set of html select-tags (one for year, month, day, hour, and minute) pre-selected with the +datetime+.
- # It's also possible to explicitly set the order of the tags using the :order option with an array of
- # symbols :year, :month and :day in the desired order. If you do not supply a Symbol, it
- # will be appened onto the :order passed in. You can also add :date_separator and :time_separator
- # keys to the +options+ to control visual display of the elements.
- def select_datetime(datetime = Time.now, options = {})
- separator = options[:datetime_separator] || ''
- select_date(datetime, options) + separator + select_time(datetime, options)
- end
-
- # Returns a set of html select-tags (one for year, month, and day) pre-selected with the +date+.
- # It's possible to explicitly set the order of the tags using the :order option with an array of
- # symbols :year, :month and :day in the desired order. If you do not supply a Symbol, it
- # will be appened onto the :order passed in.
- def select_date(date = Date.today, options = {})
- options[:order] ||= []
- [:year, :month, :day].each { |o| options[:order].push(o) unless options[:order].include?(o) }
-
- select_date = ''
- options[:order].each do |o|
- select_date << self.send("select_#{o}", date, options)
- end
- select_date
- end
-
- # Returns a set of html select-tags (one for hour and minute)
- # You can set :add_separator key to format the output.
- def select_time(datetime = Time.now, options = {})
- separator = options[:time_separator] || ''
- select_hour(datetime, options) + separator + select_minute(datetime, options) + (options[:include_seconds] ? separator + select_second(datetime, options) : '')
- end
-
- # Returns a select tag with options for each of the seconds 0 through 59 with the current second selected.
- # The second can also be substituted for a second number.
- # Override the field name using the :field_name option, 'second' by default.
- def select_second(datetime, options = {})
- val = datetime ? (datetime.kind_of?(Fixnum) ? datetime : datetime.sec) : ''
- if options[:use_hidden]
- options[:include_seconds] ? hidden_html(options[:field_name] || 'second', val, options) : ''
- else
- second_options = []
- 0.upto(59) do |second|
- second_options << ((val == second) ?
- %(\n) :
- %(\n)
- )
- end
- select_html(options[:field_name] || 'second', second_options, options)
- end
- end
-
- # Returns a select tag with options for each of the minutes 0 through 59 with the current minute selected.
- # Also can return a select tag with options by minute_step from 0 through 59 with the 00 minute selected
- # The minute can also be substituted for a minute number.
- # Override the field name using the :field_name option, 'minute' by default.
- def select_minute(datetime, options = {})
- val = datetime ? (datetime.kind_of?(Fixnum) ? datetime : datetime.min) : ''
- if options[:use_hidden]
- hidden_html(options[:field_name] || 'minute', val, options)
- else
- minute_options = []
- 0.step(59, options[:minute_step] || 1) do |minute|
- minute_options << ((val == minute) ?
- %(\n) :
- %(\n)
- )
- end
- select_html(options[:field_name] || 'minute', minute_options, options)
- end
- end
-
- # Returns a select tag with options for each of the hours 0 through 23 with the current hour selected.
- # The hour can also be substituted for a hour number.
- # Override the field name using the :field_name option, 'hour' by default.
- def select_hour(datetime, options = {})
- val = datetime ? (datetime.kind_of?(Fixnum) ? datetime : datetime.hour) : ''
- if options[:use_hidden]
- hidden_html(options[:field_name] || 'hour', val, options)
- else
- hour_options = []
- 0.upto(23) do |hour|
- hour_options << ((val == hour) ?
- %(\n) :
- %(\n)
- )
- end
- select_html(options[:field_name] || 'hour', hour_options, options)
- end
- end
-
- # Returns a select tag with options for each of the days 1 through 31 with the current day selected.
- # The date can also be substituted for a hour number.
- # Override the field name using the :field_name option, 'day' by default.
- def select_day(date, options = {})
- val = date ? (date.kind_of?(Fixnum) ? date : date.day) : ''
- if options[:use_hidden]
- hidden_html(options[:field_name] || 'day', val, options)
- else
- day_options = []
- 1.upto(31) do |day|
- day_options << ((val == day) ?
- %(\n) :
- %(\n)
- )
- end
- select_html(options[:field_name] || 'day', day_options, options)
- end
- end
-
- # Returns a select tag with options for each of the months January through December with the current month selected.
- # The month names are presented as keys (what's shown to the user) and the month numbers (1-12) are used as values
- # (what's submitted to the server). It's also possible to use month numbers for the presentation instead of names --
- # set the :use_month_numbers key in +options+ to true for this to happen. If you want both numbers and names,
- # set the :add_month_numbers key in +options+ to true. If you would prefer to show month names as abbreviations,
- # set the :use_short_month key in +options+ to true. If you want to use your own month names, set the
- # :use_month_names key in +options+ to an array of 12 month names.
- #
- # Examples:
- #
- # select_month(Date.today) # Will use keys like "January", "March"
- # select_month(Date.today, :use_month_numbers => true) # Will use keys like "1", "3"
- # select_month(Date.today, :add_month_numbers => true) # Will use keys like "1 - January", "3 - March"
- # select_month(Date.today, :use_short_month => true) # Will use keys like "Jan", "Mar"
- # select_month(Date.today, :use_month_names => %w(Januar Februar Marts ...)) # Will use keys like "Januar", "Marts"
- #
- # Override the field name using the :field_name option, 'month' by default.
- def select_month(date, options = {})
- val = date ? (date.kind_of?(Fixnum) ? date : date.month) : ''
- if options[:use_hidden]
- hidden_html(options[:field_name] || 'month', val, options)
- else
- month_options = []
- month_names = options[:use_month_names] || (options[:use_short_month] ? Date::ABBR_MONTHNAMES : Date::MONTHNAMES)
- month_names.unshift(nil) if month_names.size < 13
- 1.upto(12) do |month_number|
- month_name = if options[:use_month_numbers]
- month_number
- elsif options[:add_month_numbers]
- month_number.to_s + ' - ' + month_names[month_number]
- else
- month_names[month_number]
- end
-
- month_options << ((val == month_number) ?
- %(\n) :
- %(\n)
- )
- end
- select_html(options[:field_name] || 'month', month_options, options)
- end
- end
-
- # Returns a select tag with options for each of the five years on each side of the current, which is selected. The five year radius
- # can be changed using the :start_year and :end_year keys in the +options+. Both ascending and descending year
- # lists are supported by making :start_year less than or greater than :end_year. The date can also be
- # substituted for a year given as a number. Example:
- #
- # select_year(Date.today, :start_year => 1992, :end_year => 2007) # ascending year values
- # select_year(Date.today, :start_year => 2005, :end_year => 1900) # descending year values
- # select_year(2006, :start_year => 2000, :end_year => 2010)
- #
- # Override the field name using the :field_name option, 'year' by default.
- def select_year(date, options = {})
- val = date ? (date.kind_of?(Fixnum) ? date : date.year) : ''
- if options[:use_hidden]
- hidden_html(options[:field_name] || 'year', val, options)
- else
- year_options = []
- y = date ? (date.kind_of?(Fixnum) ? (y = (date == 0) ? Date.today.year : date) : date.year) : Date.today.year
-
- start_year, end_year = (options[:start_year] || y-5), (options[:end_year] || y+5)
- step_val = start_year < end_year ? 1 : -1
- start_year.step(end_year, step_val) do |year|
- year_options << ((val == year) ?
- %(\n) :
- %(\n)
- )
- end
- select_html(options[:field_name] || 'year', year_options, options)
- end
- end
-
- private
-
- def select_html(type, html_options, options)
- name_and_id_from_options(options, type)
- select_html = %(\n"
- end
-
- def hidden_html(type, value, options)
- name_and_id_from_options(options, type)
- hidden_html = %(\n)
- end
-
- def name_and_id_from_options(options, type)
- options[:name] = (options[:prefix] || DEFAULT_PREFIX) + (options[:discard_type] ? '' : "[#{type}]")
- options[:id] = options[:name].gsub(/([\[\(])|(\]\[)/, '_').gsub(/[\]\)]/, '')
- end
-
- def leading_zero_on_single_digits(number)
- number > 9 ? number : "0#{number}"
- end
- end
-
- class InstanceTag #:nodoc:
- include DateHelper
-
- def to_date_select_tag(options = {})
- date_or_time_select options.merge(:discard_hour => true)
- end
-
- def to_time_select_tag(options = {})
- date_or_time_select options.merge(:discard_year => true, :discard_month => true)
- end
-
- def to_datetime_select_tag(options = {})
- date_or_time_select options
- end
-
- private
- def date_or_time_select(options)
- defaults = { :discard_type => true }
- options = defaults.merge(options)
- datetime = value(object)
- datetime ||= Time.now unless options[:include_blank]
-
- position = { :year => 1, :month => 2, :day => 3, :hour => 4, :minute => 5, :second => 6 }
-
- order = (options[:order] ||= [:year, :month, :day])
-
- # Discard explicit and implicit by not being included in the :order
- discard = {}
- discard[:year] = true if options[:discard_year] or !order.include?(:year)
- discard[:month] = true if options[:discard_month] or !order.include?(:month)
- discard[:day] = true if options[:discard_day] or discard[:month] or !order.include?(:day)
- discard[:hour] = true if options[:discard_hour]
- discard[:minute] = true if options[:discard_minute] or discard[:hour]
- discard[:second] = true unless options[:include_seconds] && !discard[:minute]
-
- # Maintain valid dates by including hidden fields for discarded elements
- [:day, :month, :year].each { |o| order.unshift(o) unless order.include?(o) }
- # Ensure proper ordering of :hour, :minute and :second
- [:hour, :minute, :second].each { |o| order.delete(o); order.push(o) }
-
- date_or_time_select = ''
- order.reverse.each do |param|
- # Send hidden fields for discarded elements once output has started
- # This ensures AR can reconstruct valid dates using ParseDate
- next if discard[param] && date_or_time_select.empty?
-
- date_or_time_select.insert(0, self.send("select_#{param}", datetime, options_with_prefix(position[param], options.merge(:use_hidden => discard[param]))))
- date_or_time_select.insert(0,
- case param
- when :hour then (discard[:year] && discard[:day] ? "" : " — ")
- when :minute then " : "
- when :second then options[:include_seconds] ? " : " : ""
- else ""
- end)
-
- end
-
- date_or_time_select
- end
-
- def options_with_prefix(position, options)
- prefix = "#{@object_name}"
- if options[:index]
- prefix << "[#{options[:index]}]"
- elsif @auto_index
- prefix << "[#{@auto_index}]"
- end
- options.merge(:prefix => "#{prefix}[#{@method_name}(#{position}i)]")
- end
- end
-
- class FormBuilder
- def date_select(method, options = {})
- @template.date_select(@object_name, method, options.merge(:object => @object))
- end
-
- def time_select(method, options = {})
- @template.time_select(@object_name, method, options.merge(:object => @object))
- end
-
- def datetime_select(method, options = {})
- @template.datetime_select(@object_name, method, options.merge(:object => @object))
- end
- end
- end
-end
diff --git a/tracks/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb b/tracks/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb
deleted file mode 100644
index 9e92813a..00000000
--- a/tracks/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-module ActionView
- module Helpers
- # Provides a set of methods for making it easier to locate problems.
- module DebugHelper
- # Returns a
-tag set with the +object+ dumped by YAML. Very readable way to inspect an object.
- def debug(object)
- begin
- Marshal::dump(object)
- "
#{h(object.to_yaml).gsub(" ", " ")}
"
- rescue Exception => e # errors from Marshal or YAML
- # Object couldn't be dumped, perhaps because of singleton methods -- this is the fallback
- "#{h(object.inspect)}"
- end
- end
- end
- end
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/lib/action_view/helpers/deprecated_helper.rb b/tracks/vendor/rails/actionpack/lib/action_view/helpers/deprecated_helper.rb
deleted file mode 100644
index 04392f5b..00000000
--- a/tracks/vendor/rails/actionpack/lib/action_view/helpers/deprecated_helper.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-module ActionView
- module Helpers
- module PrototypeHelper
-
- def update_element_function(element_id, options = {}, &block)
- content = escape_javascript(options[:content] || '')
- content = escape_javascript(capture(&block)) if block
-
- javascript_function = case (options[:action] || :update)
- when :update
- if options[:position]
- "new Insertion.#{options[:position].to_s.camelize}('#{element_id}','#{content}')"
- else
- "$('#{element_id}').innerHTML = '#{content}'"
- end
-
- when :empty
- "$('#{element_id}').innerHTML = ''"
-
- when :remove
- "Element.remove('#{element_id}')"
-
- else
- raise ArgumentError, "Invalid action, choose one of :update, :remove, :empty"
- end
-
- javascript_function << ";\n"
- options[:binding] ? concat(javascript_function, options[:binding]) : javascript_function
- end
- deprecate :update_element_function => "use RJS instead"
-
- end
- end
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb b/tracks/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb
deleted file mode 100644
index 8aa0b42f..00000000
--- a/tracks/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb
+++ /dev/null
@@ -1,446 +0,0 @@
-require 'cgi'
-require File.dirname(__FILE__) + '/date_helper'
-require File.dirname(__FILE__) + '/tag_helper'
-
-module ActionView
- module Helpers
- # Provides a set of methods for working with forms and especially forms related to objects assigned to the template.
- # The following is an example of a complete form for a person object that works for both creates and updates built
- # with all the form helpers. The @person object was assigned by an action on the controller:
- #
- #
- # ...is compiled to:
- #
- #
- #
- # If the object name contains square brackets the id for the object will be inserted. Example:
- #
- # <%= text_field "person[]", "name" %>
- #
- # ...becomes:
- #
- #
- #
- # If the helper is being used to generate a repetitive sequence of similar form elements, for example in a partial
- # used by render_collection_of_partials, the "index" option may come in handy. Example:
- #
- # <%= text_field "person", "name", "index" => 1 %>
- #
- # becomes
- #
- #
- #
- # There's also methods for helping to build form tags in link:classes/ActionView/Helpers/FormOptionsHelper.html,
- # link:classes/ActionView/Helpers/DateHelper.html, and link:classes/ActionView/Helpers/ActiveRecordHelper.html
- module FormHelper
- # Creates a form and a scope around a specific model object, which is then used as a base for questioning about
- # values for the fields. Examples:
- #
- # <% form_for :person, @person, :url => { :action => "update" } do |f| %>
- # First name: <%= f.text_field :first_name %>
- # Last name : <%= f.text_field :last_name %>
- # Biography : <%= f.text_area :biography %>
- # Admin? : <%= f.check_box :admin %>
- # <% end %>
- #
- # Worth noting is that the form_for tag is called in a ERb evaluation block, not a ERb output block. So that's <% %>,
- # not <%= %>. Also worth noting is that the form_for yields a form_builder object, in this example as f, which emulates
- # the API for the stand-alone FormHelper methods, but without the object name. So instead of text_field :person, :name,
- # you get away with f.text_field :name.
- #
- # That in itself is a modest increase in comfort. The big news is that form_for allows us to more easily escape the instance
- # variable convention, so while the stand-alone approach would require text_field :person, :name, :object => person
- # to work with local variables instead of instance ones, the form_for calls remain the same. You simply declare once with
- # :person, person and all subsequent field calls save :person and :object => person.
- #
- # Also note that form_for doesn't create an exclusive scope. It's still possible to use both the stand-alone FormHelper methods
- # and methods from FormTagHelper. Example:
- #
- # <% form_for :person, @person, :url => { :action => "update" } do |f| %>
- # First name: <%= f.text_field :first_name %>
- # Last name : <%= f.text_field :last_name %>
- # Biography : <%= text_area :person, :biography %>
- # Admin? : <%= check_box_tag "person[admin]", @person.company.admin? %>
- # <% end %>
- #
- # Note: This also works for the methods in FormOptionHelper and DateHelper that are designed to work with an object as base.
- # Like collection_select and datetime_select.
- #
- # Html attributes for the form tag can be given as :html => {...}. Example:
- #
- # <% form_for :person, @person, :html => {:id => 'person_form'} do |f| %>
- # ...
- # <% end %>
- #
- # You can also build forms using a customized FormBuilder class. Subclass FormBuilder and override or define some more helpers,
- # then use your custom builder like so:
- #
- # <% form_for :person, @person, :url => { :action => "update" }, :builder => LabellingFormBuilder do |f| %>
- # <%= f.text_field :first_name %>
- # <%= f.text_field :last_name %>
- # <%= text_area :person, :biography %>
- # <%= check_box_tag "person[admin]", @person.company.admin? %>
- # <% end %>
- #
- # In many cases you will want to wrap the above in another helper, such as:
- #
- # def labelled_form_for(name, object, options, &proc)
- # form_for(name, object, options.merge(:builder => LabellingFormBuiler), &proc)
- # end
- #
- def form_for(object_name, *args, &proc)
- raise ArgumentError, "Missing block" unless block_given?
- options = args.last.is_a?(Hash) ? args.pop : {}
- concat(form_tag(options.delete(:url) || {}, options.delete(:html) || {}), proc.binding)
- fields_for(object_name, *(args << options), &proc)
- concat('', proc.binding)
- end
-
- # Creates a scope around a specific model object like form_for, but doesn't create the form tags themselves. This makes
- # fields_for suitable for specifying additional model objects in the same form. Example:
- #
- # <% form_for :person, @person, :url => { :action => "update" } do |person_form| %>
- # First name: <%= person_form.text_field :first_name %>
- # Last name : <%= person_form.text_field :last_name %>
- #
- # <% fields_for :permission, @person.permission do |permission_fields| %>
- # Admin? : <%= permission_fields.check_box :admin %>
- # <% end %>
- # <% end %>
- #
- # Note: This also works for the methods in FormOptionHelper and DateHelper that are designed to work with an object as base.
- # Like collection_select and datetime_select.
- def fields_for(object_name, *args, &block)
- raise ArgumentError, "Missing block" unless block_given?
- options = args.last.is_a?(Hash) ? args.pop : {}
- object = args.first
-
- builder = options[:builder] || ActionView::Base.default_form_builder
- yield builder.new(object_name, object, self, options, block)
- end
-
- # Returns an input tag of the "text" type tailored for accessing a specified attribute (identified by +method+) on an object
- # assigned to the template (identified by +object+). Additional options on the input tag can be passed as a
- # hash with +options+.
- #
- # Examples (call, result):
- # text_field("post", "title", "size" => 20)
- #
- def text_field(object_name, method, options = {})
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_input_field_tag("text", options)
- end
-
- # Works just like text_field, but returns an input tag of the "password" type instead.
- def password_field(object_name, method, options = {})
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_input_field_tag("password", options)
- end
-
- # Works just like text_field, but returns an input tag of the "hidden" type instead.
- def hidden_field(object_name, method, options = {})
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_input_field_tag("hidden", options)
- end
-
- # Works just like text_field, but returns an input tag of the "file" type instead, which won't have a default value.
- def file_field(object_name, method, options = {})
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_input_field_tag("file", options)
- end
-
- # Returns a textarea opening and closing tag set tailored for accessing a specified attribute (identified by +method+)
- # on an object assigned to the template (identified by +object+). Additional options on the input tag can be passed as a
- # hash with +options+.
- #
- # Example (call, result):
- # text_area("post", "body", "cols" => 20, "rows" => 40)
- #
- def text_area(object_name, method, options = {})
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_text_area_tag(options)
- end
-
- # Returns a checkbox tag tailored for accessing a specified attribute (identified by +method+) on an object
- # assigned to the template (identified by +object+). It's intended that +method+ returns an integer and if that
- # integer is above zero, then the checkbox is checked. Additional options on the input tag can be passed as a
- # hash with +options+. The +checked_value+ defaults to 1 while the default +unchecked_value+
- # is set to 0 which is convenient for boolean values. Usually unchecked checkboxes don't post anything.
- # We work around this problem by adding a hidden value with the same name as the checkbox.
- #
- # Example (call, result). Imagine that @post.validated? returns 1:
- # check_box("post", "validated")
- #
- #
- #
- # Example (call, result). Imagine that @puppy.gooddog returns no:
- # check_box("puppy", "gooddog", {}, "yes", "no")
- #
- #
- def check_box(object_name, method, options = {}, checked_value = "1", unchecked_value = "0")
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_check_box_tag(options, checked_value, unchecked_value)
- end
-
- # Returns a radio button tag for accessing a specified attribute (identified by +method+) on an object
- # assigned to the template (identified by +object+). If the current value of +method+ is +tag_value+ the
- # radio button will be checked. Additional options on the input tag can be passed as a
- # hash with +options+.
- # Example (call, result). Imagine that @post.category returns "rails":
- # radio_button("post", "category", "rails")
- # radio_button("post", "category", "java")
- #
- #
- #
- def radio_button(object_name, method, tag_value, options = {})
- InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_radio_button_tag(tag_value, options)
- end
- end
-
- class InstanceTag #:nodoc:
- include Helpers::TagHelper
-
- attr_reader :method_name, :object_name
-
- DEFAULT_FIELD_OPTIONS = { "size" => 30 }.freeze unless const_defined?(:DEFAULT_FIELD_OPTIONS)
- DEFAULT_RADIO_OPTIONS = { }.freeze unless const_defined?(:DEFAULT_RADIO_OPTIONS)
- DEFAULT_TEXT_AREA_OPTIONS = { "cols" => 40, "rows" => 20 }.freeze unless const_defined?(:DEFAULT_TEXT_AREA_OPTIONS)
- DEFAULT_DATE_OPTIONS = { :discard_type => true }.freeze unless const_defined?(:DEFAULT_DATE_OPTIONS)
-
- def initialize(object_name, method_name, template_object, local_binding = nil, object = nil)
- @object_name, @method_name = object_name.to_s.dup, method_name.to_s.dup
- @template_object, @local_binding = template_object, local_binding
- @object = object
- if @object_name.sub!(/\[\]$/,"")
- if object ||= @template_object.instance_variable_get("@#{Regexp.last_match.pre_match}") and object.respond_to?(:id_before_type_cast)
- @auto_index = object.id_before_type_cast
- else
- raise ArgumentError, "object[] naming but object param and @object var don't exist or don't respond to id_before_type_cast: #{object.inspect}"
- end
- end
- end
-
- def to_input_field_tag(field_type, options = {})
- options = options.stringify_keys
- options["size"] ||= options["maxlength"] || DEFAULT_FIELD_OPTIONS["size"]
- options = DEFAULT_FIELD_OPTIONS.merge(options)
- if field_type == "hidden"
- options.delete("size")
- end
- options["type"] = field_type
- options["value"] ||= value_before_type_cast(object) unless field_type == "file"
- add_default_name_and_id(options)
- tag("input", options)
- end
-
- def to_radio_button_tag(tag_value, options = {})
- options = DEFAULT_RADIO_OPTIONS.merge(options.stringify_keys)
- options["type"] = "radio"
- options["value"] = tag_value
- if options.has_key?("checked")
- cv = options.delete "checked"
- checked = cv == true || cv == "checked"
- else
- checked = self.class.radio_button_checked?(value(object), tag_value)
- end
- options["checked"] = "checked" if checked
- pretty_tag_value = tag_value.to_s.gsub(/\s/, "_").gsub(/\W/, "").downcase
- options["id"] ||= defined?(@auto_index) ?
- "#{@object_name}_#{@auto_index}_#{@method_name}_#{pretty_tag_value}" :
- "#{@object_name}_#{@method_name}_#{pretty_tag_value}"
- add_default_name_and_id(options)
- tag("input", options)
- end
-
- def to_text_area_tag(options = {})
- options = DEFAULT_TEXT_AREA_OPTIONS.merge(options.stringify_keys)
- add_default_name_and_id(options)
-
- if size = options.delete("size")
- options["cols"], options["rows"] = size.split("x")
- end
-
- content_tag("textarea", html_escape(options.delete('value') || value_before_type_cast(object)), options)
- end
-
- def to_check_box_tag(options = {}, checked_value = "1", unchecked_value = "0")
- options = options.stringify_keys
- options["type"] = "checkbox"
- options["value"] = checked_value
- if options.has_key?("checked")
- cv = options.delete "checked"
- checked = cv == true || cv == "checked"
- else
- checked = self.class.check_box_checked?(value(object), checked_value)
- end
- options["checked"] = "checked" if checked
- add_default_name_and_id(options)
- tag("input", options) << tag("input", "name" => options["name"], "type" => "hidden", "value" => unchecked_value)
- end
-
- def to_date_tag()
- defaults = DEFAULT_DATE_OPTIONS.dup
- date = value(object) || Date.today
- options = Proc.new { |position| defaults.merge(:prefix => "#{@object_name}[#{@method_name}(#{position}i)]") }
- html_day_select(date, options.call(3)) +
- html_month_select(date, options.call(2)) +
- html_year_select(date, options.call(1))
- end
-
- def to_boolean_select_tag(options = {})
- options = options.stringify_keys
- add_default_name_and_id(options)
- value = value(object)
- tag_text = ""
- end
-
- def to_content_tag(tag_name, options = {})
- content_tag(tag_name, value(object), options)
- end
-
- def object
- @object || @template_object.instance_variable_get("@#{@object_name}")
- end
-
- def value(object)
- self.class.value(object, @method_name)
- end
-
- def value_before_type_cast(object)
- self.class.value_before_type_cast(object, @method_name)
- end
-
- class << self
- def value(object, method_name)
- object.send method_name unless object.nil?
- end
-
- def value_before_type_cast(object, method_name)
- unless object.nil?
- object.respond_to?(method_name + "_before_type_cast") ?
- object.send(method_name + "_before_type_cast") :
- object.send(method_name)
- end
- end
-
- def check_box_checked?(value, checked_value)
- case value
- when TrueClass, FalseClass
- value
- when NilClass
- false
- when Integer
- value != 0
- when String
- value == checked_value
- else
- value.to_i != 0
- end
- end
-
- def radio_button_checked?(value, checked_value)
- value.to_s == checked_value.to_s
- end
- end
-
- private
- def add_default_name_and_id(options)
- if options.has_key?("index")
- options["name"] ||= tag_name_with_index(options["index"])
- options["id"] ||= tag_id_with_index(options["index"])
- options.delete("index")
- elsif defined?(@auto_index)
- options["name"] ||= tag_name_with_index(@auto_index)
- options["id"] ||= tag_id_with_index(@auto_index)
- else
- options["name"] ||= tag_name
- options["id"] ||= tag_id
- end
- end
-
- def tag_name
- "#{@object_name}[#{@method_name}]"
- end
-
- def tag_name_with_index(index)
- "#{@object_name}[#{index}][#{@method_name}]"
- end
-
- def tag_id
- "#{@object_name}_#{@method_name}"
- end
-
- def tag_id_with_index(index)
- "#{@object_name}_#{index}_#{@method_name}"
- end
- end
-
- class FormBuilder #:nodoc:
- # The methods which wrap a form helper call.
- class_inheritable_accessor :field_helpers
- self.field_helpers = (FormHelper.instance_methods - ['form_for'])
-
- attr_accessor :object_name, :object, :options
-
- def initialize(object_name, object, template, options, proc)
- @object_name, @object, @template, @options, @proc = object_name, object, template, options, proc
- end
-
- (field_helpers - %w(check_box radio_button)).each do |selector|
- src = <<-end_src
- def #{selector}(method, options = {})
- @template.send(#{selector.inspect}, @object_name, method, options.merge(:object => @object))
- end
- end_src
- class_eval src, __FILE__, __LINE__
- end
-
- def check_box(method, options = {}, checked_value = "1", unchecked_value = "0")
- @template.check_box(@object_name, method, options.merge(:object => @object), checked_value, unchecked_value)
- end
-
- def radio_button(method, tag_value, options = {})
- @template.radio_button(@object_name, method, tag_value, options.merge(:object => @object))
- end
- end
- end
-
- class Base
- cattr_accessor :default_form_builder
- self.default_form_builder = ::ActionView::Helpers::FormBuilder
- end
-end
diff --git a/tracks/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb b/tracks/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb
deleted file mode 100644
index 6b3da64f..00000000
--- a/tracks/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb
+++ /dev/null
@@ -1,363 +0,0 @@
-require 'cgi'
-require 'erb'
-require File.dirname(__FILE__) + '/form_helper'
-
-module ActionView
- module Helpers
- # Provides a number of methods for turning different kinds of containers into a set of option tags.
- # == Options
- # The collection_select, country_select, select,
- # and time_zone_select methods take an options parameter,
- # a hash.
- #
- # * :include_blank - set to true if the first option element of the select element is a blank. Useful if there is not a default value required for the select element. For example,
- #
- # select("post", "category", Post::CATEGORIES, {:include_blank => true})
- #
- # could become:
- #
- #
- #
- # * :prompt - set to true or a prompt string. When the select element doesn't have a value yet, this prepends an option with a generic prompt -- "Please select" -- or the given prompt string.
- #
- # Another common case is a select tag for an belongs_to-associated object. For example,
- #
- # select("post", "person_id", Person.find(:all).collect {|p| [ p.name, p.id ] })
- #
- # could become:
- #
- #
- module FormOptionsHelper
- include ERB::Util
-
- # Create a select tag and a series of contained option tags for the provided object and method.
- # The option currently held by the object will be selected, provided that the object is available.
- # See options_for_select for the required format of the choices parameter.
- #
- # Example with @post.person_id => 1:
- # select("post", "person_id", Person.find(:all).collect {|p| [ p.name, p.id ] }, { :include_blank => true })
- #
- # could become:
- #
- #
- #
- # This can be used to provide a default set of options in the standard way: before rendering the create form, a
- # new model instance is assigned the default options and bound to @model_name. Usually this model is not saved
- # to the database. Instead, a second model object is created when the create request is received.
- # This allows the user to submit a form page more than once with the expected results of creating multiple records.
- # In addition, this allows a single partial to be used to generate form inputs for both edit and create forms.
- #
- # By default, post.person_id is the selected option. Specify :selected => value to use a different selection
- # or :selected => nil to leave all options unselected.
- def select(object, method, choices, options = {}, html_options = {})
- InstanceTag.new(object, method, self, nil, options.delete(:object)).to_select_tag(choices, options, html_options)
- end
-
- # Return select and option tags for the given object and method using options_from_collection_for_select to generate the list of option tags.
- def collection_select(object, method, collection, value_method, text_method, options = {}, html_options = {})
- InstanceTag.new(object, method, self, nil, options.delete(:object)).to_collection_select_tag(collection, value_method, text_method, options, html_options)
- end
-
- # Return select and option tags for the given object and method, using country_options_for_select to generate the list of option tags.
- def country_select(object, method, priority_countries = nil, options = {}, html_options = {})
- InstanceTag.new(object, method, self, nil, options.delete(:object)).to_country_select_tag(priority_countries, options, html_options)
- end
-
- # Return select and option tags for the given object and method, using
- # #time_zone_options_for_select to generate the list of option tags.
- #
- # In addition to the :include_blank option documented above,
- # this method also supports a :model option, which defaults
- # to TimeZone. This may be used by users to specify a different time
- # zone model object. (See #time_zone_options_for_select for more
- # information.)
- def time_zone_select(object, method, priority_zones = nil, options = {}, html_options = {})
- InstanceTag.new(object, method, self, nil, options.delete(:object)).to_time_zone_select_tag(priority_zones, options, html_options)
- end
-
- # Accepts a container (hash, array, enumerable, your type) and returns a string of option tags. Given a container
- # where the elements respond to first and last (such as a two-element array), the "lasts" serve as option values and
- # the "firsts" as option text. Hashes are turned into this form automatically, so the keys become "firsts" and values
- # become lasts. If +selected+ is specified, the matching "last" or element will get the selected option-tag. +Selected+
- # may also be an array of values to be selected when using a multiple select.
- #
- # Examples (call, result):
- # options_for_select([["Dollar", "$"], ["Kroner", "DKK"]])
- # \n
- #
- # options_for_select([ "VISA", "MasterCard" ], "MasterCard")
- # \n
- #
- # options_for_select({ "Basic" => "$20", "Plus" => "$40" }, "$40")
- # \n
- #
- # options_for_select([ "VISA", "MasterCard", "Discover" ], ["VISA", "Discover"])
- # \n\n
- #
- # NOTE: Only the option tags are returned, you have to wrap this call in a regular HTML select tag.
- def options_for_select(container, selected = nil)
- container = container.to_a if Hash === container
-
- options_for_select = container.inject([]) do |options, element|
- if !element.is_a?(String) and element.respond_to?(:first) and element.respond_to?(:last)
- is_selected = ( (selected.respond_to?(:include?) && !selected.is_a?(String) ? selected.include?(element.last) : element.last == selected) )
- if is_selected
- options << ""
- else
- options << ""
- end
- else
- is_selected = ( (selected.respond_to?(:include?) && !selected.is_a?(String) ? selected.include?(element) : element == selected) )
- options << ((is_selected) ? "" : "")
- end
- end
-
- options_for_select.join("\n")
- end
-
- # Returns a string of option tags that have been compiled by iterating over the +collection+ and assigning the
- # the result of a call to the +value_method+ as the option value and the +text_method+ as the option text.
- # If +selected_value+ is specified, the element returning a match on +value_method+ will get the selected option tag.
- #
- # Example (call, result). Imagine a loop iterating over each +person+ in @project.people to generate an input tag:
- # options_from_collection_for_select(@project.people, "id", "name")
- #
- #
- # NOTE: Only the option tags are returned, you have to wrap this call in a regular HTML select tag.
- def options_from_collection_for_select(collection, value_method, text_method, selected_value = nil)
- options_for_select(
- collection.inject([]) { |options, object| options << [ object.send(text_method), object.send(value_method) ] },
- selected_value
- )
- end
-
- # Returns a string of option tags, like options_from_collection_for_select, but surrounds them with
- ]]>
-
-
-
-
-EOF
- assert_select "channel item description" do
- # Test element regardless of wrapper.
- assert_select_encoded do
- assert_select "p", :count=>2, :text=>/Test/
- end
- # Test through encoded wrapper.
- assert_select_encoded do
- assert_select "encoded p", :count=>2, :text=>/Test/
- end
- # Use :root instead (recommended)
- assert_select_encoded do
- assert_select ":root p", :count=>2, :text=>/Test/
- end
- # Test individually.
- assert_select "description" do |elements|
- assert_select_encoded elements[0] do
- assert_select "p", "Test 1"
- end
- assert_select_encoded elements[1] do
- assert_select "p", "Test 2"
- end
- end
- end
-
- # Test that we only un-encode element itself.
- assert_select "channel item" do
- assert_select_encoded do
- assert_select "p", 0
- end
- end
- end
-
-
- #
- # Test assert_select_email
- #
-
- def test_assert_select_email
- assert_raises(AssertionFailedError) { assert_select_email {} }
- AssertSelectMailer.deliver_test "
foo
bar
"
- assert_select_email do
- assert_select "div:root" do
- assert_select "p:first-child", "foo"
- assert_select "p:last-child", "bar"
- end
- end
- end
-
-
- protected
- def render_html(html)
- @controller.response_with = html
- get :html
- end
-
- def render_rjs(&block)
- @controller.response_with &block
- get :rjs
- end
-
- def render_xml(xml)
- @controller.response_with = xml
- get :xml
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/base_test.rb b/tracks/vendor/rails/actionpack/test/controller/base_test.rb
deleted file mode 100644
index bcc47326..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/base_test.rb
+++ /dev/null
@@ -1,136 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-require 'test/unit'
-require 'pp' # require 'pp' early to prevent hidden_methods from not picking up the pretty-print methods until too late
-
-# Provide some controller to run the tests on.
-module Submodule
- class ContainedEmptyController < ActionController::Base
- end
- class ContainedNonEmptyController < ActionController::Base
- def public_action
- end
-
- hide_action :hidden_action
- def hidden_action
- raise "Noooo!"
- end
-
- def another_hidden_action
- end
- hide_action :another_hidden_action
- end
- class SubclassedController < ContainedNonEmptyController
- hide_action :public_action # Hiding it here should not affect the superclass.
- end
-end
-class EmptyController < ActionController::Base
-end
-class NonEmptyController < ActionController::Base
- def public_action
- end
-
- hide_action :hidden_action
- def hidden_action
- end
-end
-
-class MethodMissingController < ActionController::Base
-
- hide_action :shouldnt_be_called
- def shouldnt_be_called
- raise "NO WAY!"
- end
-
-protected
-
- def method_missing(selector)
- render :text => selector.to_s
- end
-
-end
-
-class ControllerClassTests < Test::Unit::TestCase
- def test_controller_path
- assert_equal 'empty', EmptyController.controller_path
- assert_equal EmptyController.controller_path, EmptyController.new.controller_path
- assert_equal 'submodule/contained_empty', Submodule::ContainedEmptyController.controller_path
- assert_equal Submodule::ContainedEmptyController.controller_path, Submodule::ContainedEmptyController.new.controller_path
- end
- def test_controller_name
- assert_equal 'empty', EmptyController.controller_name
- assert_equal 'contained_empty', Submodule::ContainedEmptyController.controller_name
- end
-end
-
-class ControllerInstanceTests < Test::Unit::TestCase
- def setup
- @empty = EmptyController.new
- @contained = Submodule::ContainedEmptyController.new
- @empty_controllers = [@empty, @contained, Submodule::SubclassedController.new]
-
- @non_empty_controllers = [NonEmptyController.new,
- Submodule::ContainedNonEmptyController.new]
- end
-
- def test_action_methods
- @empty_controllers.each do |c|
- hide_mocha_methods_from_controller(c)
- assert_equal Set.new, c.send(:action_methods), "#{c.controller_path} should be empty!"
- end
- @non_empty_controllers.each do |c|
- hide_mocha_methods_from_controller(c)
- assert_equal Set.new('public_action'), c.send(:action_methods), "#{c.controller_path} should not be empty!"
- end
- end
-
- protected
-
- # Mocha adds methods to Object which are then included in the public_instance_methods
- # This method hides those from the controller so the above tests won't know the difference
- def hide_mocha_methods_from_controller(controller)
- mocha_methods = [:expects, :metaclass, :mocha, :mocha_inspect, :reset_mocha, :stubba_object, :stubba_method, :stubs, :verify]
- controller.class.send(:hide_action, *mocha_methods)
- end
-
-end
-
-
-class PerformActionTest < Test::Unit::TestCase
- def use_controller(controller_class)
- @controller = controller_class.new
-
- # enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
- # a more accurate simulation of what happens in "real life".
- @controller.logger = Logger.new(nil)
-
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
-
- @request.host = "www.nextangle.com"
- end
-
- def test_get_on_priv_should_show_selector
- use_controller MethodMissingController
- get :shouldnt_be_called
- assert_response :success
- assert_equal 'shouldnt_be_called', @response.body
- end
-
- def test_method_missing_is_not_an_action_name
- use_controller MethodMissingController
- assert ! @controller.send(:action_methods).include?('method_missing')
-
- get :method_missing
- assert_response :success
- assert_equal 'method_missing', @response.body
- end
-
- def test_get_on_hidden_should_fail
- use_controller NonEmptyController
- get :hidden_action
- assert_response 404
-
- get :another_hidden_action
- assert_response 404
- end
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/controller/benchmark_test.rb b/tracks/vendor/rails/actionpack/test/controller/benchmark_test.rb
deleted file mode 100644
index f346e575..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/benchmark_test.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-require 'test/unit'
-
-# Provide some static controllers.
-class BenchmarkedController < ActionController::Base
- def public_action
- render :nothing => true
- end
-
- def rescue_action(e)
- raise e
- end
-end
-
-class BenchmarkTest < Test::Unit::TestCase
- class MockLogger
- def method_missing(*args)
- end
- end
-
- def setup
- @controller = BenchmarkedController.new
- # benchmark doesn't do anything unless a logger is set
- @controller.logger = MockLogger.new
- @request, @response = ActionController::TestRequest.new, ActionController::TestResponse.new
- @request.host = "test.actioncontroller.i"
- end
-
- def test_with_http_1_0_request
- @request.host = nil
- assert_nothing_raised { get :public_action }
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/caching_test.rb b/tracks/vendor/rails/actionpack/test/controller/caching_test.rb
deleted file mode 100644
index 07e16896..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/caching_test.rb
+++ /dev/null
@@ -1,228 +0,0 @@
-require 'fileutils'
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-CACHE_DIR = 'test_cache'
-# Don't change '/../temp/' cavalierly or you might hoze something you don't want hozed
-FILE_STORE_PATH = File.join(File.dirname(__FILE__), '/../temp/', CACHE_DIR)
-ActionController::Base.perform_caching = true
-ActionController::Base.page_cache_directory = FILE_STORE_PATH
-ActionController::Base.fragment_cache_store = :file_store, FILE_STORE_PATH
-
-class PageCachingTestController < ActionController::Base
- caches_page :ok, :no_content, :found, :not_found
-
- def ok
- head :ok
- end
-
- def no_content
- head :no_content
- end
-
- def found
- redirect_to :action => 'ok'
- end
-
- def not_found
- head :not_found
- end
-end
-
-class PageCachingTest < Test::Unit::TestCase
- def setup
- ActionController::Routing::Routes.draw do |map|
- map.main '', :controller => 'posts'
- map.resources :posts
- map.connect ':controller/:action/:id'
- end
-
- @request = ActionController::TestRequest.new
- @request.host = 'hostname.com'
-
- @response = ActionController::TestResponse.new
- @controller = PageCachingTestController.new
-
- @params = {:controller => 'posts', :action => 'index', :only_path => true, :skip_relative_url_root => true}
- @rewriter = ActionController::UrlRewriter.new(@request, @params)
-
- FileUtils.rm_rf(File.dirname(FILE_STORE_PATH))
- FileUtils.mkdir_p(FILE_STORE_PATH)
- end
-
- def teardown
- FileUtils.rm_rf(File.dirname(FILE_STORE_PATH))
- end
-
- def test_page_caching_resources_saves_to_correct_path_with_extension_even_if_default_route
- @params[:format] = 'rss'
- assert_equal '/posts.rss', @rewriter.rewrite(@params)
- @params[:format] = nil
- assert_equal '/', @rewriter.rewrite(@params)
- end
-
- def test_should_cache_get_with_ok_status
- get :ok
- assert_response :ok
- assert_page_cached :ok, "get with ok status should have been cached"
- end
-
- [:ok, :no_content, :found, :not_found].each do |status|
- [:get, :post, :put, :delete].each do |method|
- unless method == :get and status == :ok
- define_method "test_shouldnt_cache_#{method}_with_#{status}_status" do
- @request.env['REQUEST_METHOD'] = method.to_s.upcase
- process status
- assert_response status
- assert_page_not_cached status, "#{method} with #{status} status shouldn't have been cached"
- end
- end
- end
- end
-
- private
- def assert_page_cached(action, message = "#{action} should have been cached")
- assert page_cached?(action), message
- end
-
- def assert_page_not_cached(action, message = "#{action} shouldn't have been cached")
- assert !page_cached?(action), message
- end
-
- def page_cached?(action)
- File.exist? "#{FILE_STORE_PATH}/page_caching_test/#{action}.html"
- end
-end
-
-class ActionCachingTestController < ActionController::Base
- caches_action :index
-
- def index
- @cache_this = Time.now.to_f.to_s
- render :text => @cache_this
- end
-
- def expire
- expire_action :controller => 'action_caching_test', :action => 'index'
- render :nothing => true
- end
-
-end
-
-class ActionCachingMockController
- attr_accessor :mock_url_for
- attr_accessor :mock_path
-
- def initialize
- yield self if block_given?
- end
-
- def url_for(*args)
- @mock_url_for
- end
-
- def request
- mocked_path = @mock_path
- Object.new.instance_eval(<<-EVAL)
- def path; '#{@mock_path}' end
- self
- EVAL
- end
-end
-
-class ActionCacheTest < Test::Unit::TestCase
- def setup
- reset!
- FileUtils.mkdir_p(FILE_STORE_PATH)
- @path_class = ActionController::Caching::Actions::ActionCachePath
- @mock_controller = ActionCachingMockController.new
- end
-
- def teardown
- FileUtils.rm_rf(File.dirname(FILE_STORE_PATH))
- end
-
- def test_simple_action_cache
- get :index
- cached_time = content_to_cache
- assert_equal cached_time, @response.body
- reset!
-
- get :index
- assert_equal cached_time, @response.body
- end
-
- def test_cache_expiration
- get :index
- cached_time = content_to_cache
- reset!
-
- get :index
- assert_equal cached_time, @response.body
- reset!
-
- get :expire
- reset!
-
- get :index
- new_cached_time = content_to_cache
- assert_not_equal cached_time, @response.body
- reset!
-
- get :index
- assert_response :success
- assert_equal new_cached_time, @response.body
- end
-
- def test_cache_is_scoped_by_subdomain
- @request.host = 'jamis.hostname.com'
- get :index
- jamis_cache = content_to_cache
-
- @request.host = 'david.hostname.com'
- get :index
- david_cache = content_to_cache
- assert_not_equal jamis_cache, @response.body
-
- @request.host = 'jamis.hostname.com'
- get :index
- assert_equal jamis_cache, @response.body
-
- @request.host = 'david.hostname.com'
- get :index
- assert_equal david_cache, @response.body
- end
-
- def test_xml_version_of_resource_is_treated_as_different_cache
- @mock_controller.mock_url_for = 'http://example.org/posts/'
- @mock_controller.mock_path = '/posts/index.xml'
- path_object = @path_class.new(@mock_controller)
- assert_equal 'xml', path_object.extension
- assert_equal 'example.org/posts/index.xml', path_object.path
- end
-
- def test_empty_path_is_normalized
- @mock_controller.mock_url_for = 'http://example.org/'
- @mock_controller.mock_path = '/'
-
- assert_equal 'example.org/index', @path_class.path_for(@mock_controller)
- end
-
- def test_file_extensions
- get :index, :id => 'kitten.jpg'
- get :index, :id => 'kitten.jpg'
-
- assert_response :success
- end
-
- private
- def content_to_cache
- assigns(:cache_this)
- end
-
- def reset!
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @controller = ActionCachingTestController.new
- @request.host = 'hostname.com'
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/capture_test.rb b/tracks/vendor/rails/actionpack/test/controller/capture_test.rb
deleted file mode 100644
index 43bf346e..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/capture_test.rb
+++ /dev/null
@@ -1,82 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class CaptureController < ActionController::Base
- def self.controller_name; "test"; end
- def self.controller_path; "test"; end
-
- def content_for
- render :layout => "talk_from_action"
- end
-
- def erb_content_for
- render :layout => "talk_from_action"
- end
-
- def block_content_for
- render :layout => "talk_from_action"
- end
-
- def non_erb_block_content_for
- render :layout => "talk_from_action"
- end
-
- def rescue_action(e) raise end
-end
-
-CaptureController.template_root = File.dirname(__FILE__) + "/../fixtures/"
-
-class CaptureTest < Test::Unit::TestCase
- def setup
- @controller = CaptureController.new
-
- # enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
- # a more accurate simulation of what happens in "real life".
- @controller.logger = Logger.new(nil)
-
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
-
- @request.host = "www.nextangle.com"
- end
-
- def test_simple_capture
- get :capturing
- assert_equal "Dreamy days", @response.body.strip
- end
-
- def test_content_for
- get :content_for
- assert_equal expected_content_for_output, @response.body
- end
-
- def test_erb_content_for
- get :content_for
- assert_equal expected_content_for_output, @response.body
- end
-
- def test_block_content_for
- get :block_content_for
- assert_equal expected_content_for_output, @response.body
- end
-
- def test_non_erb_block_content_for
- get :non_erb_block_content_for
- assert_equal expected_content_for_output, @response.body
- end
-
- def test_update_element_with_capture
- assert_deprecated 'update_element_function' do
- get :update_element_with_capture
- end
- assert_equal(
- "" +
- "\n\n$('status').innerHTML = '\\n You bought something!\\n';",
- @response.body.strip
- )
- end
-
- private
- def expected_content_for_output
- "Putting stuff in the title!\n\nGreat stuff!"
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/cgi_test.rb b/tracks/vendor/rails/actionpack/test/controller/cgi_test.rb
deleted file mode 100755
index 1d2888ad..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/cgi_test.rb
+++ /dev/null
@@ -1,428 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-require 'action_controller/cgi_process'
-require 'action_controller/cgi_ext/cgi_ext'
-
-
-require 'stringio'
-
-class CGITest < Test::Unit::TestCase
- def setup
- @query_string = "action=create_customer&full_name=David%20Heinemeier%20Hansson&customerId=1"
- @query_string_with_nil = "action=create_customer&full_name="
- @query_string_with_array = "action=create_customer&selected[]=1&selected[]=2&selected[]=3"
- @query_string_with_amps = "action=create_customer&name=Don%27t+%26+Does"
- @query_string_with_multiple_of_same_name =
- "action=update_order&full_name=Lau%20Taarnskov&products=4&products=2&products=3"
- @query_string_with_many_equal = "action=create_customer&full_name=abc=def=ghi"
- @query_string_without_equal = "action"
- @query_string_with_many_ampersands =
- "&action=create_customer&&&full_name=David%20Heinemeier%20Hansson"
- @query_string_with_empty_key = "action=create_customer&full_name=David%20Heinemeier%20Hansson&=Save"
- end
-
- def test_query_string
- assert_equal(
- { "action" => "create_customer", "full_name" => "David Heinemeier Hansson", "customerId" => "1"},
- CGIMethods.parse_query_parameters(@query_string)
- )
- end
-
- def test_deep_query_string
- expected = {'x' => {'y' => {'z' => '10'}}}
- assert_equal(expected, CGIMethods.parse_query_parameters('x[y][z]=10'))
- end
-
- def test_deep_query_string_with_array
- assert_equal({'x' => {'y' => {'z' => ['10']}}}, CGIMethods.parse_query_parameters('x[y][z][]=10'))
- assert_equal({'x' => {'y' => {'z' => ['10', '5']}}}, CGIMethods.parse_query_parameters('x[y][z][]=10&x[y][z][]=5'))
- end
-
- def test_deep_query_string_with_array_of_hash
- assert_equal({'x' => {'y' => [{'z' => '10'}]}}, CGIMethods.parse_query_parameters('x[y][][z]=10'))
- assert_equal({'x' => {'y' => [{'z' => '10', 'w' => '10'}]}}, CGIMethods.parse_query_parameters('x[y][][z]=10&x[y][][w]=10'))
- end
-
- def test_deep_query_string_with_array_of_hashes_with_one_pair
- assert_equal({'x' => {'y' => [{'z' => '10'}, {'z' => '20'}]}}, CGIMethods.parse_query_parameters('x[y][][z]=10&x[y][][z]=20'))
- assert_equal("10", CGIMethods.parse_query_parameters('x[y][][z]=10&x[y][][z]=20')["x"]["y"].first["z"])
- assert_equal("10", CGIMethods.parse_query_parameters('x[y][][z]=10&x[y][][z]=20').with_indifferent_access[:x][:y].first[:z])
- end
-
- def test_request_hash_parsing
- query = {
- "note[viewers][viewer][][type]" => ["User", "Group"],
- "note[viewers][viewer][][id]" => ["1", "2"]
- }
-
- expected = { "note" => { "viewers"=>{"viewer"=>[{ "id"=>"1", "type"=>"User"}, {"type"=>"Group", "id"=>"2"} ]} } }
-
- assert_equal(expected, CGIMethods.parse_request_parameters(query))
- end
-
- def test_deep_query_string_with_array_of_hashes_with_multiple_pairs
- assert_equal(
- {'x' => {'y' => [{'z' => '10', 'w' => 'a'}, {'z' => '20', 'w' => 'b'}]}},
- CGIMethods.parse_query_parameters('x[y][][z]=10&x[y][][w]=a&x[y][][z]=20&x[y][][w]=b')
- )
- end
-
- def test_query_string_with_nil
- assert_equal(
- { "action" => "create_customer", "full_name" => nil},
- CGIMethods.parse_query_parameters(@query_string_with_nil)
- )
- end
-
- def test_query_string_with_array
- assert_equal(
- { "action" => "create_customer", "selected" => ["1", "2", "3"]},
- CGIMethods.parse_query_parameters(@query_string_with_array)
- )
- end
-
- def test_query_string_with_amps
- assert_equal(
- { "action" => "create_customer", "name" => "Don't & Does"},
- CGIMethods.parse_query_parameters(@query_string_with_amps)
- )
- end
-
- def test_query_string_with_many_equal
- assert_equal(
- { "action" => "create_customer", "full_name" => "abc=def=ghi"},
- CGIMethods.parse_query_parameters(@query_string_with_many_equal)
- )
- end
-
- def test_query_string_without_equal
- assert_equal(
- { "action" => nil },
- CGIMethods.parse_query_parameters(@query_string_without_equal)
- )
- end
-
- def test_query_string_with_empty_key
- assert_equal(
- { "action" => "create_customer", "full_name" => "David Heinemeier Hansson" },
- CGIMethods.parse_query_parameters(@query_string_with_empty_key)
- )
- end
-
- def test_query_string_with_many_ampersands
- assert_equal(
- { "action" => "create_customer", "full_name" => "David Heinemeier Hansson"},
- CGIMethods.parse_query_parameters(@query_string_with_many_ampersands)
- )
- end
-
- def test_parse_params
- input = {
- "customers[boston][first][name]" => [ "David" ],
- "customers[boston][first][url]" => [ "http://David" ],
- "customers[boston][second][name]" => [ "Allan" ],
- "customers[boston][second][url]" => [ "http://Allan" ],
- "something_else" => [ "blah" ],
- "something_nil" => [ nil ],
- "something_empty" => [ "" ],
- "products[first]" => [ "Apple Computer" ],
- "products[second]" => [ "Pc" ],
- "" => [ 'Save' ]
- }
-
- expected_output = {
- "customers" => {
- "boston" => {
- "first" => {
- "name" => "David",
- "url" => "http://David"
- },
- "second" => {
- "name" => "Allan",
- "url" => "http://Allan"
- }
- }
- },
- "something_else" => "blah",
- "something_empty" => "",
- "something_nil" => "",
- "products" => {
- "first" => "Apple Computer",
- "second" => "Pc"
- }
- }
-
- assert_equal expected_output, CGIMethods.parse_request_parameters(input)
- end
-
- def test_parse_params_from_multipart_upload
- mockup = Struct.new(:content_type, :original_filename, :read, :rewind)
- file = mockup.new('img/jpeg', 'foo.jpg')
- ie_file = mockup.new('img/jpeg', 'c:\\Documents and Settings\\foo\\Desktop\\bar.jpg')
- non_file_text_part = mockup.new('text/plain', '', 'abc')
-
- input = {
- "something" => [ StringIO.new("") ],
- "array_of_stringios" => [[ StringIO.new("One"), StringIO.new("Two") ]],
- "mixed_types_array" => [[ StringIO.new("Three"), "NotStringIO" ]],
- "mixed_types_as_checkboxes[strings][nested]" => [[ file, "String", StringIO.new("StringIO")]],
- "ie_mixed_types_as_checkboxes[strings][nested]" => [[ ie_file, "String", StringIO.new("StringIO")]],
- "products[string]" => [ StringIO.new("Apple Computer") ],
- "products[file]" => [ file ],
- "ie_products[string]" => [ StringIO.new("Microsoft") ],
- "ie_products[file]" => [ ie_file ],
- "text_part" => [non_file_text_part]
- }
-
- expected_output = {
- "something" => "",
- "array_of_stringios" => ["One", "Two"],
- "mixed_types_array" => [ "Three", "NotStringIO" ],
- "mixed_types_as_checkboxes" => {
- "strings" => {
- "nested" => [ file, "String", "StringIO" ]
- },
- },
- "ie_mixed_types_as_checkboxes" => {
- "strings" => {
- "nested" => [ ie_file, "String", "StringIO" ]
- },
- },
- "products" => {
- "string" => "Apple Computer",
- "file" => file
- },
- "ie_products" => {
- "string" => "Microsoft",
- "file" => ie_file
- },
- "text_part" => "abc"
- }
-
- params = CGIMethods.parse_request_parameters(input)
- assert_equal expected_output, params
-
- # Lone filenames are preserved.
- assert_equal 'foo.jpg', params['mixed_types_as_checkboxes']['strings']['nested'].first.original_filename
- assert_equal 'foo.jpg', params['products']['file'].original_filename
-
- # But full Windows paths are reduced to their basename.
- assert_equal 'bar.jpg', params['ie_mixed_types_as_checkboxes']['strings']['nested'].first.original_filename
- assert_equal 'bar.jpg', params['ie_products']['file'].original_filename
- end
-
- def test_parse_params_with_file
- input = {
- "customers[boston][first][name]" => [ "David" ],
- "something_else" => [ "blah" ],
- "logo" => [ File.new(File.dirname(__FILE__) + "/cgi_test.rb").path ]
- }
-
- expected_output = {
- "customers" => {
- "boston" => {
- "first" => {
- "name" => "David"
- }
- }
- },
- "something_else" => "blah",
- "logo" => File.new(File.dirname(__FILE__) + "/cgi_test.rb").path,
- }
-
- assert_equal expected_output, CGIMethods.parse_request_parameters(input)
- end
-
- def test_parse_params_with_array
- input = { "selected[]" => [ "1", "2", "3" ] }
-
- expected_output = { "selected" => [ "1", "2", "3" ] }
-
- assert_equal expected_output, CGIMethods.parse_request_parameters(input)
- end
-
- def test_parse_params_with_non_alphanumeric_name
- input = { "a/b[c]" => %w(d) }
- expected = { "a/b" => { "c" => "d" }}
- assert_equal expected, CGIMethods.parse_request_parameters(input)
- end
-
- def test_parse_params_with_single_brackets_in_middle
- input = { "a/b[c]d" => %w(e) }
- expected = { "a/b" => {} }
- assert_equal expected, CGIMethods.parse_request_parameters(input)
- end
-
- def test_parse_params_with_separated_brackets
- input = { "a/b@[c]d[e]" => %w(f) }
- expected = { "a/b@" => { }}
- assert_equal expected, CGIMethods.parse_request_parameters(input)
- end
-
- def test_parse_params_with_separated_brackets_and_array
- input = { "a/b@[c]d[e][]" => %w(f) }
- expected = { "a/b@" => { }}
- assert_equal expected , CGIMethods.parse_request_parameters(input)
- end
-
- def test_parse_params_with_unmatched_brackets_and_array
- input = { "a/b@[c][d[e][]" => %w(f) }
- expected = { "a/b@" => { "c" => { }}}
- assert_equal expected, CGIMethods.parse_request_parameters(input)
- end
-
- def test_parse_params_with_nil_key
- input = { nil => nil, "test2" => %w(value1) }
- expected = { "test2" => "value1" }
- assert_equal expected, CGIMethods.parse_request_parameters(input)
- end
-end
-
-
-class MultipartCGITest < Test::Unit::TestCase
- FIXTURE_PATH = File.dirname(__FILE__) + '/../fixtures/multipart'
-
- def setup
- ENV['REQUEST_METHOD'] = 'POST'
- ENV['CONTENT_LENGTH'] = '0'
- ENV['CONTENT_TYPE'] = 'multipart/form-data, boundary=AaB03x'
- end
-
- def test_single_parameter
- params = process('single_parameter')
- assert_equal({ 'foo' => 'bar' }, params)
- end
-
- def test_text_file
- params = process('text_file')
- assert_equal %w(file foo), params.keys.sort
- assert_equal 'bar', params['foo']
-
- file = params['file']
- assert_kind_of StringIO, file
- assert_equal 'file.txt', file.original_filename
- assert_equal "text/plain\r", file.content_type
- assert_equal 'contents', file.read
- end
-
- def test_large_text_file
- params = process('large_text_file')
- assert_equal %w(file foo), params.keys.sort
- assert_equal 'bar', params['foo']
-
- file = params['file']
- assert_kind_of Tempfile, file
- assert_equal 'file.txt', file.original_filename
- assert_equal "text/plain\r", file.content_type
- assert ('a' * 20480) == file.read
- end
-
- def test_binary_file
- params = process('binary_file')
- assert_equal %w(file flowers foo), params.keys.sort
- assert_equal 'bar', params['foo']
-
- file = params['file']
- assert_kind_of StringIO, file
- assert_equal 'file.txt', file.original_filename
- assert_equal "text/plain\r", file.content_type
- assert_equal 'contents', file.read
-
- file = params['flowers']
- assert_kind_of StringIO, file
- assert_equal 'flowers.jpg', file.original_filename
- assert_equal "image/jpeg\r", file.content_type
- assert_equal 19512, file.size
- #assert_equal File.read(File.dirname(__FILE__) + '/../../../activerecord/test/fixtures/flowers.jpg'), file.read
- end
-
- def test_mixed_files
- params = process('mixed_files')
- assert_equal %w(files foo), params.keys.sort
- assert_equal 'bar', params['foo']
-
- # Ruby CGI doesn't handle multipart/mixed for us.
- assert_kind_of String, params['files']
- assert_equal 19756, params['files'].size
- end
-
- # Rewind readable cgi params so others may reread them (such as CGI::Session
- # when passing the session id in a multipart form).
- def test_multipart_param_rewound
- params = process('text_file')
- assert_equal 'bar', @cgi.params['foo'][0].read
- end
-
- private
- def process(name)
- old_stdin = $stdin
- File.open(File.join(FIXTURE_PATH, name), 'rb') do |file|
- ENV['CONTENT_LENGTH'] = file.stat.size.to_s
- $stdin = file
- @cgi = CGI.new
- CGIMethods.parse_request_parameters @cgi.params
- end
- ensure
- $stdin = old_stdin
- end
-end
-
-# Ensures that PUT works with multipart as well as POST.
-class PutMultipartCGITest < MultipartCGITest
- def setup
- super
- ENV['REQUEST_METHOD'] = 'PUT'
- end
-end
-
-
-class CGIRequestTest < Test::Unit::TestCase
- def setup
- @request_hash = {"HTTP_MAX_FORWARDS"=>"10", "SERVER_NAME"=>"glu.ttono.us:8007", "FCGI_ROLE"=>"RESPONDER", "HTTP_X_FORWARDED_HOST"=>"glu.ttono.us", "HTTP_ACCEPT_ENCODING"=>"gzip, deflate", "HTTP_USER_AGENT"=>"Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.5.1 (KHTML, like Gecko) Safari/312.3.1", "PATH_INFO"=>"", "HTTP_ACCEPT_LANGUAGE"=>"en", "HTTP_HOST"=>"glu.ttono.us:8007", "SERVER_PROTOCOL"=>"HTTP/1.1", "REDIRECT_URI"=>"/dispatch.fcgi", "SCRIPT_NAME"=>"/dispatch.fcgi", "SERVER_ADDR"=>"207.7.108.53", "REMOTE_ADDR"=>"207.7.108.53", "SERVER_SOFTWARE"=>"lighttpd/1.4.5", "HTTP_COOKIE"=>"_session_id=c84ace84796670c052c6ceb2451fb0f2; is_admin=yes", "HTTP_X_FORWARDED_SERVER"=>"glu.ttono.us", "REQUEST_URI"=>"/admin", "DOCUMENT_ROOT"=>"/home/kevinc/sites/typo/public", "SERVER_PORT"=>"8007", "QUERY_STRING"=>"", "REMOTE_PORT"=>"63137", "GATEWAY_INTERFACE"=>"CGI/1.1", "HTTP_X_FORWARDED_FOR"=>"65.88.180.234", "HTTP_ACCEPT"=>"*/*", "SCRIPT_FILENAME"=>"/home/kevinc/sites/typo/public/dispatch.fcgi", "REDIRECT_STATUS"=>"200", "REQUEST_METHOD"=>"GET"}
- # cookie as returned by some Nokia phone browsers (no space after semicolon separator)
- @alt_cookie_fmt_request_hash = {"HTTP_COOKIE"=>"_session_id=c84ace84796670c052c6ceb2451fb0f2;is_admin=yes"}
- @fake_cgi = Struct.new(:env_table).new(@request_hash)
- @request = ActionController::CgiRequest.new(@fake_cgi)
- end
-
- def test_proxy_request
- assert_equal 'glu.ttono.us', @request.host_with_port
- end
-
- def test_http_host
- @request_hash.delete "HTTP_X_FORWARDED_HOST"
- @request_hash['HTTP_HOST'] = "rubyonrails.org:8080"
- assert_equal "rubyonrails.org:8080", @request.host_with_port
-
- @request_hash['HTTP_X_FORWARDED_HOST'] = "www.firsthost.org, www.secondhost.org"
- assert_equal "www.secondhost.org", @request.host
- end
-
- def test_http_host_with_default_port_overrides_server_port
- @request_hash.delete "HTTP_X_FORWARDED_HOST"
- @request_hash['HTTP_HOST'] = "rubyonrails.org"
- assert_equal "rubyonrails.org", @request.host_with_port
- end
-
- def test_host_with_port_defaults_to_server_name_if_no_host_headers
- @request_hash.delete "HTTP_X_FORWARDED_HOST"
- @request_hash.delete "HTTP_HOST"
- assert_equal "glu.ttono.us:8007", @request.host_with_port
- end
-
- def test_host_with_port_falls_back_to_server_addr_if_necessary
- @request_hash.delete "HTTP_X_FORWARDED_HOST"
- @request_hash.delete "HTTP_HOST"
- @request_hash.delete "SERVER_NAME"
- assert_equal "207.7.108.53:8007", @request.host_with_port
- end
-
- def test_cookie_syntax_resilience
- cookies = CGI::Cookie::parse(@request_hash["HTTP_COOKIE"]);
- assert_equal ["c84ace84796670c052c6ceb2451fb0f2"], cookies["_session_id"]
- assert_equal ["yes"], cookies["is_admin"]
-
- alt_cookies = CGI::Cookie::parse(@alt_cookie_fmt_request_hash["HTTP_COOKIE"]);
- assert_equal ["c84ace84796670c052c6ceb2451fb0f2"], alt_cookies["_session_id"]
- assert_equal ["yes"], alt_cookies["is_admin"]
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/components_test.rb b/tracks/vendor/rails/actionpack/test/controller/components_test.rb
deleted file mode 100644
index fbe46375..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/components_test.rb
+++ /dev/null
@@ -1,151 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class CallerController < ActionController::Base
- def calling_from_controller
- render_component(:controller => "callee", :action => "being_called")
- end
-
- def calling_from_controller_with_params
- render_component(:controller => "callee", :action => "being_called", :params => { "name" => "David" })
- end
-
- def calling_from_controller_with_different_status_code
- render_component(:controller => "callee", :action => "blowing_up")
- end
-
- def calling_from_template
- render_template "Ring, ring: <%= render_component(:controller => 'callee', :action => 'being_called') %>"
- end
-
- def internal_caller
- render_template "Are you there? <%= render_component(:action => 'internal_callee') %>"
- end
-
- def internal_callee
- render_text "Yes, ma'am"
- end
-
- def set_flash
- render_component(:controller => "callee", :action => "set_flash")
- end
-
- def use_flash
- render_component(:controller => "callee", :action => "use_flash")
- end
-
- def calling_redirected
- render_component(:controller => "callee", :action => "redirected")
- end
-
- def calling_redirected_as_string
- render_template "<%= render_component(:controller => 'callee', :action => 'redirected') %>"
- end
-
- def rescue_action(e) raise end
-end
-
-class CalleeController < ActionController::Base
- def being_called
- render_text "#{params[:name] || "Lady"} of the House, speaking"
- end
-
- def blowing_up
- render_text "It's game over, man, just game over, man!", "500 Internal Server Error"
- end
-
- def set_flash
- flash[:notice] = 'My stoney baby'
- render :text => 'flash is set'
- end
-
- def use_flash
- render :text => flash[:notice] || 'no flash'
- end
-
- def redirected
- redirect_to :controller => "callee", :action => "being_called"
- end
-
- def rescue_action(e) raise end
-end
-
-class ComponentsTest < Test::Unit::TestCase
- def setup
- @controller = CallerController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- end
-
- def test_calling_from_controller
- get :calling_from_controller
- assert_equal "Lady of the House, speaking", @response.body
- end
-
- def test_calling_from_controller_with_params
- get :calling_from_controller_with_params
- assert_equal "David of the House, speaking", @response.body
- end
-
- def test_calling_from_controller_with_different_status_code
- get :calling_from_controller_with_different_status_code
- assert_equal 500, @response.response_code
- end
-
- def test_calling_from_template
- get :calling_from_template
- assert_equal "Ring, ring: Lady of the House, speaking", @response.body
- end
-
- def test_internal_calling
- get :internal_caller
- assert_equal "Are you there? Yes, ma'am", @response.body
- end
-
- def test_flash
- get :set_flash
- assert_equal 'My stoney baby', flash[:notice]
- get :use_flash
- assert_equal 'My stoney baby', @response.body
- get :use_flash
- assert_equal 'no flash', @response.body
- end
-
- def test_component_redirect_redirects
- get :calling_redirected
-
- assert_redirected_to :action => "being_called"
- end
-
- def test_component_multiple_redirect_redirects
- test_component_redirect_redirects
- test_internal_calling
- end
-
- def test_component_as_string_redirect_renders_redirecte_action
- get :calling_redirected_as_string
-
- assert_equal "Lady of the House, speaking", @response.body
- end
-end
-
-module A
- module B
- module C
- class NestedController < ActionController::Base
- # Stub for uses_component_template_root
- def self.caller
- [ '/path/to/active_support/deprecation.rb:93:in `uses_component_template_root',
- './test/fixtures/a/b/c/nested_controller.rb' ]
- end
- end
- end
- end
-end
-
-class UsesComponentTemplateRootTest < Test::Unit::TestCase
- def test_uses_component_template_root
- assert_deprecated 'uses_component_template_root' do
- assert_equal './test/fixtures/', A::B::C::NestedController.uses_component_template_root
- end
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/content_type_test.rb b/tracks/vendor/rails/actionpack/test/controller/content_type_test.rb
deleted file mode 100644
index 6f0618da..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/content_type_test.rb
+++ /dev/null
@@ -1,139 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class ContentTypeController < ActionController::Base
- def render_content_type_from_body
- response.content_type = Mime::RSS
- render :text => "hello world!"
- end
-
- def render_defaults
- render :text => "hello world!"
- end
-
- def render_content_type_from_render
- render :text => "hello world!", :content_type => Mime::RSS
- end
-
- def render_charset_from_body
- response.charset = "utf-16"
- render :text => "hello world!"
- end
-
- def render_default_for_rhtml
- end
-
- def render_default_for_rxml
- end
-
- def render_default_for_rjs
- end
-
- def render_change_for_rxml
- response.content_type = Mime::HTML
- render :action => "render_default_for_rxml"
- end
-
- def render_default_content_types_for_respond_to
- respond_to do |format|
- format.html { render :text => "hello world!" }
- format.xml { render :action => "render_default_content_types_for_respond_to.rhtml" }
- format.js { render :text => "hello world!" }
- format.rss { render :text => "hello world!", :content_type => Mime::XML }
- end
- end
-
- def rescue_action(e) raise end
-end
-
-ContentTypeController.template_root = File.dirname(__FILE__) + "/../fixtures/"
-
-class ContentTypeTest < Test::Unit::TestCase
- def setup
- @controller = ContentTypeController.new
-
- # enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
- # a more accurate simulation of what happens in "real life".
- @controller.logger = Logger.new(nil)
-
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- end
-
- def test_render_defaults
- get :render_defaults
- assert_equal "utf-8", @response.charset
- assert_equal Mime::HTML, @response.content_type
- end
-
- def test_render_changed_charset_default
- ContentTypeController.default_charset = "utf-16"
- get :render_defaults
- assert_equal "utf-16", @response.charset
- assert_equal Mime::HTML, @response.content_type
- ContentTypeController.default_charset = "utf-8"
- end
-
- def test_content_type_from_body
- get :render_content_type_from_body
- assert_equal "application/rss+xml", @response.content_type
- assert_equal "utf-8", @response.charset
- end
-
- def test_content_type_from_render
- get :render_content_type_from_render
- assert_equal "application/rss+xml", @response.content_type
- assert_equal "utf-8", @response.charset
- end
-
- def test_charset_from_body
- get :render_charset_from_body
- assert_equal "utf-16", @response.charset
- assert_equal Mime::HTML, @response.content_type
- end
-
- def test_default_for_rhtml
- get :render_default_for_rhtml
- assert_equal Mime::HTML, @response.content_type
- assert_equal "utf-8", @response.charset
- end
-
- def test_default_for_rxml
- get :render_default_for_rxml
- assert_equal Mime::XML, @response.content_type
- assert_equal "utf-8", @response.charset
- end
-
- def test_default_for_rjs
- xhr :post, :render_default_for_rjs
- assert_equal Mime::JS, @response.content_type
- assert_equal "utf-8", @response.charset
- end
-
- def test_change_for_rxml
- get :render_change_for_rxml
- assert_equal Mime::HTML, @response.content_type
- assert_equal "utf-8", @response.charset
- end
-
- def test_render_default_content_types_for_respond_to
- @request.env["HTTP_ACCEPT"] = Mime::HTML.to_s
- get :render_default_content_types_for_respond_to
- assert_equal Mime::HTML, @response.content_type
-
- @request.env["HTTP_ACCEPT"] = Mime::JS.to_s
- get :render_default_content_types_for_respond_to
- assert_equal Mime::JS, @response.content_type
- end
-
- def test_render_default_content_types_for_respond_to_with_template
- @request.env["HTTP_ACCEPT"] = Mime::XML.to_s
- get :render_default_content_types_for_respond_to
- assert_equal Mime::XML, @response.content_type
- end
-
- def test_render_default_content_types_for_respond_to_with_overwrite
- @request.env["HTTP_ACCEPT"] = Mime::RSS.to_s
- get :render_default_content_types_for_respond_to
- assert_equal Mime::XML, @response.content_type
- end
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb b/tracks/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb
deleted file mode 100644
index e69de29b..00000000
diff --git a/tracks/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb b/tracks/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb
deleted file mode 100644
index e69de29b..00000000
diff --git a/tracks/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb b/tracks/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb
deleted file mode 100644
index e69de29b..00000000
diff --git a/tracks/vendor/rails/actionpack/test/controller/cookie_test.rb b/tracks/vendor/rails/actionpack/test/controller/cookie_test.rb
deleted file mode 100644
index 2e1c7f0e..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/cookie_test.rb
+++ /dev/null
@@ -1,80 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class CookieTest < Test::Unit::TestCase
- class TestController < ActionController::Base
- def authenticate_with_deprecated_writer
- cookie "name" => "user_name", "value" => "david"
- render_text "hello world"
- end
-
- def authenticate
- cookies["user_name"] = "david"
- render_text "hello world"
- end
-
- def authenticate_for_fourten_days
- cookies["user_name"] = { "value" => "david", "expires" => Time.local(2005, 10, 10) }
- render_text "hello world"
- end
-
- def authenticate_for_fourten_days_with_symbols
- cookies[:user_name] = { :value => "david", :expires => Time.local(2005, 10, 10) }
- render_text "hello world"
- end
-
- def set_multiple_cookies
- cookies["user_name"] = { "value" => "david", "expires" => Time.local(2005, 10, 10) }
- cookies["login"] = "XJ-122"
- render_text "hello world"
- end
-
- def access_frozen_cookies
- cookies["will"] = "work"
- render_text "hello world"
- end
-
- def rescue_action(e) raise end
- end
-
- def setup
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
-
- @request.host = "www.nextangle.com"
- end
-
- def test_setting_cookie_with_deprecated_writer
- @request.action = "authenticate_with_deprecated_writer"
- assert_equal [ CGI::Cookie::new("name" => "user_name", "value" => "david") ], process_request.headers["cookie"]
- end
-
- def test_setting_cookie
- @request.action = "authenticate"
- assert_equal [ CGI::Cookie::new("name" => "user_name", "value" => "david") ], process_request.headers["cookie"]
- end
-
- def test_setting_cookie_for_fourteen_days
- @request.action = "authenticate_for_fourten_days"
- assert_equal [ CGI::Cookie::new("name" => "user_name", "value" => "david", "expires" => Time.local(2005, 10, 10)) ], process_request.headers["cookie"]
- end
-
- def test_setting_cookie_for_fourteen_days_with_symbols
- @request.action = "authenticate_for_fourten_days"
- assert_equal [ CGI::Cookie::new("name" => "user_name", "value" => "david", "expires" => Time.local(2005, 10, 10)) ], process_request.headers["cookie"]
- end
-
- def test_multiple_cookies
- @request.action = "set_multiple_cookies"
- assert_equal 2, process_request.headers["cookie"].size
- end
-
- def test_setting_test_cookie
- @request.action = "access_frozen_cookies"
- assert_nothing_raised { process_request }
- end
-
- private
- def process_request
- TestController.process(@request, @response)
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/custom_handler_test.rb b/tracks/vendor/rails/actionpack/test/controller/custom_handler_test.rb
deleted file mode 100644
index 2747a0f3..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/custom_handler_test.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class CustomHandler
- def initialize( view )
- @view = view
- end
-
- def render( template, local_assigns )
- [ template,
- local_assigns,
- @view ]
- end
-end
-
-class CustomHandlerTest < Test::Unit::TestCase
- def setup
- ActionView::Base.register_template_handler "foo", CustomHandler
- ActionView::Base.register_template_handler :foo2, CustomHandler
- @view = ActionView::Base.new
- end
-
- def test_custom_render
- result = @view.render_template( "foo", "hello <%= one %>", nil, :one => "two" )
- assert_equal(
- [ "hello <%= one %>", { :one => "two" }, @view ],
- result )
- end
-
- def test_custom_render2
- result = @view.render_template( "foo2", "hello <%= one %>", nil, :one => "two" )
- assert_equal(
- [ "hello <%= one %>", { :one => "two" }, @view ],
- result )
- end
-
- def test_unhandled_extension
- # uses the ERb handler by default if the extension isn't recognized
- result = @view.render_template( "bar", "hello <%= one %>", nil, :one => "two" )
- assert_equal "hello two", result
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/deprecated_instance_variables_test.rb b/tracks/vendor/rails/actionpack/test/controller/deprecated_instance_variables_test.rb
deleted file mode 100644
index 7865a69e..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/deprecated_instance_variables_test.rb
+++ /dev/null
@@ -1,48 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class DeprecatedControllerInstanceVariablesTest < Test::Unit::TestCase
- class Target < ActionController::Base
- def initialize(run = nil)
- instance_eval(run) if run
- super()
- end
-
- def noop
- render :nothing => true
- end
-
- ActionController::Base::DEPRECATED_INSTANCE_VARIABLES.each do |var|
- class_eval "def old_#{var}; render :text => @#{var}.to_s end"
- class_eval "def new_#{var}; render :text => #{var}.to_s end"
- class_eval "def internal_#{var}; render :text => @_#{var}.to_s end"
- end
-
- def rescue_action(e) raise e end
- end
-
- def setup
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @controller = Target.new
- end
-
- ActionController::Base::DEPRECATED_INSTANCE_VARIABLES.each do |var|
- class_eval <<-end_eval, __FILE__, __LINE__
- def test_old_#{var}_is_deprecated
- assert_deprecated('@#{var}') { get :old_#{var} }
- end
- def test_new_#{var}_isnt_deprecated
- assert_not_deprecated { get :new_#{var} }
- end
- def test_internal_#{var}_isnt_deprecated
- assert_not_deprecated { get :internal_#{var} }
- end
- def test_#{var}_raises_if_already_set
- assert_raise(RuntimeError) do
- @controller = Target.new '@#{var} = Object.new'
- get :noop
- end
- end
- end_eval
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb b/tracks/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb
deleted file mode 100644
index d8da676f..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb
+++ /dev/null
@@ -1,60 +0,0 @@
-require File.dirname(__FILE__) + '/../../abstract_unit'
-
-class DeprecatedBaseMethodsTest < Test::Unit::TestCase
- class Target < ActionController::Base
- def deprecated_symbol_parameter_to_url_for
- redirect_to(url_for(:home_url, "superstars"))
- end
-
- def deprecated_render_parameters
- render "fun/games/hello_world"
- end
-
- def home_url(greeting)
- "http://example.com/#{greeting}"
- end
-
- def raises_name_error
- this_method_doesnt_exist
- end
-
- def rescue_action(e) raise e end
- end
-
- Target.template_root = File.dirname(__FILE__) + "/../../fixtures"
-
- def setup
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @controller = Target.new
- end
-
- def test_deprecated_symbol_parameter_to_url_for
- assert_deprecated("url_for(:home_url)") do
- get :deprecated_symbol_parameter_to_url_for
- end
-
- assert_redirected_to "http://example.com/superstars"
- end
-
- def test_deprecated_render_parameters
- assert_deprecated("render('fun/games/hello_world')") do
- get :deprecated_render_parameters
- end
-
- assert_equal "Living in a nested world", @response.body
- end
-
- def test_log_error_silences_deprecation_warnings
- get :raises_name_error
- rescue => e
- assert_not_deprecated { @controller.send :log_error, e }
- end
-
- def test_assertion_failed_error_silences_deprecation_warnings
- get :raises_name_error
- rescue => e
- error = Test::Unit::Error.new('testing ur doodz', e)
- assert_not_deprecated { error.message }
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/fake_controllers.rb b/tracks/vendor/rails/actionpack/test/controller/fake_controllers.rb
deleted file mode 100644
index 5f958b28..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/fake_controllers.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-class << Object; alias_method :const_available?, :const_defined?; end
-
-class ContentController < Class.new(ActionController::Base)
-end
-class NotAController
-end
-module Admin
- class << self; alias_method :const_available?, :const_defined?; end
- class UserController < Class.new(ActionController::Base); end
- class NewsFeedController < Class.new(ActionController::Base); end
-end
-
-ActionController::Routing::Routes.draw do |map|
- map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
- map.connect ':controller/:action/:id'
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/filter_params_test.rb b/tracks/vendor/rails/actionpack/test/controller/filter_params_test.rb
deleted file mode 100644
index 5ad0d7f8..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/filter_params_test.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class FilterParamController < ActionController::Base
-end
-
-class FilterParamTest < Test::Unit::TestCase
- def setup
- @controller = FilterParamController.new
- end
-
- def test_filter_parameters
- assert FilterParamController.respond_to?(:filter_parameter_logging)
- assert !@controller.respond_to?(:filter_parameters)
-
- FilterParamController.filter_parameter_logging
- assert @controller.respond_to?(:filter_parameters)
-
- test_hashes = [[{},{},[]],
- [{'foo'=>'bar'},{'foo'=>'bar'},[]],
- [{'foo'=>'bar'},{'foo'=>'bar'},%w'food'],
- [{'foo'=>'bar'},{'foo'=>'[FILTERED]'},%w'foo'],
- [{'foo'=>'bar', 'bar'=>'foo'},{'foo'=>'[FILTERED]', 'bar'=>'foo'},%w'foo baz'],
- [{'foo'=>'bar', 'baz'=>'foo'},{'foo'=>'[FILTERED]', 'baz'=>'[FILTERED]'},%w'foo baz'],
- [{'bar'=>{'foo'=>'bar','bar'=>'foo'}},{'bar'=>{'foo'=>'[FILTERED]','bar'=>'foo'}},%w'fo'],
- [{'foo'=>{'foo'=>'bar','bar'=>'foo'}},{'foo'=>'[FILTERED]'},%w'f banana']]
-
- test_hashes.each do |before_filter, after_filter, filter_words|
- FilterParamController.filter_parameter_logging(*filter_words)
- assert_equal after_filter, @controller.filter_parameters(before_filter)
-
- filter_words.push('blah')
- FilterParamController.filter_parameter_logging(*filter_words) do |key, value|
- value.reverse! if key =~ /bargain/
- end
-
- before_filter['barg'] = {'bargain'=>'gain', 'blah'=>'bar', 'bar'=>{'bargain'=>{'blah'=>'foo'}}}
- after_filter['barg'] = {'bargain'=>'niag', 'blah'=>'[FILTERED]', 'bar'=>{'bargain'=>{'blah'=>'[FILTERED]'}}}
-
- assert_equal after_filter, @controller.filter_parameters(before_filter)
- end
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/filters_test.rb b/tracks/vendor/rails/actionpack/test/controller/filters_test.rb
deleted file mode 100644
index 3a74eba0..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/filters_test.rb
+++ /dev/null
@@ -1,695 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class FilterTest < Test::Unit::TestCase
- class TestController < ActionController::Base
- before_filter :ensure_login
- after_filter :clean_up
-
- def show
- render :inline => "ran action"
- end
-
- private
- def ensure_login
- @ran_filter ||= []
- @ran_filter << "ensure_login"
- end
-
- def clean_up
- @ran_after_filter ||= []
- @ran_after_filter << "clean_up"
- end
- end
-
- class ChangingTheRequirementsController < TestController
- before_filter :ensure_login, :except => [:go_wild]
-
- def go_wild
- render :text => "gobble"
- end
- end
-
- class TestMultipleFiltersController < ActionController::Base
- before_filter :try_1
- before_filter :try_2
- before_filter :try_3
-
- (1..3).each do |i|
- define_method "fail_#{i}" do
- render :text => i.to_s
- end
- end
-
- protected
- (1..3).each do |i|
- define_method "try_#{i}" do
- instance_variable_set :@try, i
- action_name != "fail_#{i}"
- end
- end
- end
-
- class RenderingController < ActionController::Base
- before_filter :render_something_else
-
- def show
- @ran_action = true
- render :inline => "ran action"
- end
-
- private
- def render_something_else
- render :inline => "something else"
- end
- end
-
- class ConditionalFilterController < ActionController::Base
- def show
- render :inline => "ran action"
- end
-
- def another_action
- render :inline => "ran action"
- end
-
- def show_without_filter
- render :inline => "ran action without filter"
- end
-
- private
- def ensure_login
- @ran_filter ||= []
- @ran_filter << "ensure_login"
- end
-
- def clean_up_tmp
- @ran_filter ||= []
- @ran_filter << "clean_up_tmp"
- end
-
- def rescue_action(e) raise(e) end
- end
-
- class ConditionalCollectionFilterController < ConditionalFilterController
- before_filter :ensure_login, :except => [ :show_without_filter, :another_action ]
- end
-
- class OnlyConditionSymController < ConditionalFilterController
- before_filter :ensure_login, :only => :show
- end
-
- class ExceptConditionSymController < ConditionalFilterController
- before_filter :ensure_login, :except => :show_without_filter
- end
-
- class BeforeAndAfterConditionController < ConditionalFilterController
- before_filter :ensure_login, :only => :show
- after_filter :clean_up_tmp, :only => :show
- end
-
- class OnlyConditionProcController < ConditionalFilterController
- before_filter(:only => :show) {|c| c.assigns["ran_proc_filter"] = true }
- end
-
- class ExceptConditionProcController < ConditionalFilterController
- before_filter(:except => :show_without_filter) {|c| c.assigns["ran_proc_filter"] = true }
- end
-
- class ConditionalClassFilter
- def self.filter(controller) controller.assigns["ran_class_filter"] = true end
- end
-
- class OnlyConditionClassController < ConditionalFilterController
- before_filter ConditionalClassFilter, :only => :show
- end
-
- class ExceptConditionClassController < ConditionalFilterController
- before_filter ConditionalClassFilter, :except => :show_without_filter
- end
-
- class AnomolousYetValidConditionController < ConditionalFilterController
- before_filter(ConditionalClassFilter, :ensure_login, Proc.new {|c| c.assigns["ran_proc_filter1"] = true }, :except => :show_without_filter) { |c| c.assigns["ran_proc_filter2"] = true}
- end
-
- class PrependingController < TestController
- prepend_before_filter :wonderful_life
- # skip_before_filter :fire_flash
-
- private
- def wonderful_life
- @ran_filter ||= []
- @ran_filter << "wonderful_life"
- end
- end
-
- class ConditionalSkippingController < TestController
- skip_before_filter :ensure_login, :only => [ :login ]
- skip_after_filter :clean_up, :only => [ :login ]
-
- before_filter :find_user, :only => [ :change_password ]
-
- def login
- render :inline => "ran action"
- end
-
- def change_password
- render :inline => "ran action"
- end
-
- protected
- def find_user
- @ran_filter ||= []
- @ran_filter << "find_user"
- end
- end
-
- class ConditionalParentOfConditionalSkippingController < ConditionalFilterController
- before_filter :conditional_in_parent, :only => [:show, :another_action]
- after_filter :conditional_in_parent, :only => [:show, :another_action]
-
- private
-
- def conditional_in_parent
- @ran_filter ||= []
- @ran_filter << 'conditional_in_parent'
- end
- end
-
- class ChildOfConditionalParentController < ConditionalParentOfConditionalSkippingController
- skip_before_filter :conditional_in_parent, :only => :another_action
- skip_after_filter :conditional_in_parent, :only => :another_action
- end
-
- class AnotherChildOfConditionalParentController < ConditionalParentOfConditionalSkippingController
- skip_before_filter :conditional_in_parent, :only => :show
- end
-
- class ProcController < PrependingController
- before_filter(proc { |c| c.assigns["ran_proc_filter"] = true })
- end
-
- class ImplicitProcController < PrependingController
- before_filter { |c| c.assigns["ran_proc_filter"] = true }
- end
-
- class AuditFilter
- def self.filter(controller)
- controller.assigns["was_audited"] = true
- end
- end
-
- class AroundFilter
- def before(controller)
- @execution_log = "before"
- controller.class.execution_log << " before aroundfilter " if controller.respond_to? :execution_log
- controller.assigns["before_ran"] = true
- end
-
- def after(controller)
- controller.assigns["execution_log"] = @execution_log + " and after"
- controller.assigns["after_ran"] = true
- controller.class.execution_log << " after aroundfilter " if controller.respond_to? :execution_log
- end
- end
-
- class AppendedAroundFilter
- def before(controller)
- controller.class.execution_log << " before appended aroundfilter "
- end
-
- def after(controller)
- controller.class.execution_log << " after appended aroundfilter "
- end
- end
-
- class AuditController < ActionController::Base
- before_filter(AuditFilter)
-
- def show
- render_text "hello"
- end
- end
-
- class AroundFilterController < PrependingController
- around_filter AroundFilter.new
- end
-
- class MixedFilterController < PrependingController
- cattr_accessor :execution_log
-
- def initialize
- @@execution_log = ""
- end
-
- before_filter { |c| c.class.execution_log << " before procfilter " }
- prepend_around_filter AroundFilter.new
-
- after_filter { |c| c.class.execution_log << " after procfilter " }
- append_around_filter AppendedAroundFilter.new
- end
-
- class MixedSpecializationController < ActionController::Base
- class OutOfOrder < StandardError; end
-
- before_filter :first
- before_filter :second, :only => :foo
-
- def foo
- render_text 'foo'
- end
-
- def bar
- render_text 'bar'
- end
-
- protected
- def first
- @first = true
- end
-
- def second
- raise OutOfOrder unless @first
- end
- end
-
- class DynamicDispatchController < ActionController::Base
- before_filter :choose
-
- %w(foo bar baz).each do |action|
- define_method(action) { render :text => action }
- end
-
- private
- def choose
- self.action_name = params[:choose]
- end
- end
-
- def test_added_filter_to_inheritance_graph
- assert_equal [ :ensure_login ], TestController.before_filters
- end
-
- def test_base_class_in_isolation
- assert_equal [ ], ActionController::Base.before_filters
- end
-
- def test_prepending_filter
- assert_equal [ :wonderful_life, :ensure_login ], PrependingController.before_filters
- end
-
- def test_running_filters
- assert_equal %w( wonderful_life ensure_login ), test_process(PrependingController).template.assigns["ran_filter"]
- end
-
- def test_running_filters_with_proc
- assert test_process(ProcController).template.assigns["ran_proc_filter"]
- end
-
- def test_running_filters_with_implicit_proc
- assert test_process(ImplicitProcController).template.assigns["ran_proc_filter"]
- end
-
- def test_running_filters_with_class
- assert test_process(AuditController).template.assigns["was_audited"]
- end
-
- def test_running_anomolous_yet_valid_condition_filters
- response = test_process(AnomolousYetValidConditionController)
- assert_equal %w( ensure_login ), response.template.assigns["ran_filter"]
- assert response.template.assigns["ran_class_filter"]
- assert response.template.assigns["ran_proc_filter1"]
- assert response.template.assigns["ran_proc_filter2"]
-
- response = test_process(AnomolousYetValidConditionController, "show_without_filter")
- assert_equal nil, response.template.assigns["ran_filter"]
- assert !response.template.assigns["ran_class_filter"]
- assert !response.template.assigns["ran_proc_filter1"]
- assert !response.template.assigns["ran_proc_filter2"]
- end
-
- def test_running_collection_condition_filters
- assert_equal %w( ensure_login ), test_process(ConditionalCollectionFilterController).template.assigns["ran_filter"]
- assert_equal nil, test_process(ConditionalCollectionFilterController, "show_without_filter").template.assigns["ran_filter"]
- assert_equal nil, test_process(ConditionalCollectionFilterController, "another_action").template.assigns["ran_filter"]
- end
-
- def test_running_only_condition_filters
- assert_equal %w( ensure_login ), test_process(OnlyConditionSymController).template.assigns["ran_filter"]
- assert_equal nil, test_process(OnlyConditionSymController, "show_without_filter").template.assigns["ran_filter"]
-
- assert test_process(OnlyConditionProcController).template.assigns["ran_proc_filter"]
- assert !test_process(OnlyConditionProcController, "show_without_filter").template.assigns["ran_proc_filter"]
-
- assert test_process(OnlyConditionClassController).template.assigns["ran_class_filter"]
- assert !test_process(OnlyConditionClassController, "show_without_filter").template.assigns["ran_class_filter"]
- end
-
- def test_running_except_condition_filters
- assert_equal %w( ensure_login ), test_process(ExceptConditionSymController).template.assigns["ran_filter"]
- assert_equal nil, test_process(ExceptConditionSymController, "show_without_filter").template.assigns["ran_filter"]
-
- assert test_process(ExceptConditionProcController).template.assigns["ran_proc_filter"]
- assert !test_process(ExceptConditionProcController, "show_without_filter").template.assigns["ran_proc_filter"]
-
- assert test_process(ExceptConditionClassController).template.assigns["ran_class_filter"]
- assert !test_process(ExceptConditionClassController, "show_without_filter").template.assigns["ran_class_filter"]
- end
-
- def test_running_before_and_after_condition_filters
- assert_equal %w( ensure_login clean_up_tmp), test_process(BeforeAndAfterConditionController).template.assigns["ran_filter"]
- assert_equal nil, test_process(BeforeAndAfterConditionController, "show_without_filter").template.assigns["ran_filter"]
- end
-
- def test_bad_filter
- bad_filter_controller = Class.new(ActionController::Base)
- assert_raises(ActionController::ActionControllerError) do
- bad_filter_controller.before_filter 2
- end
- end
-
- def test_around_filter
- controller = test_process(AroundFilterController)
- assert controller.template.assigns["before_ran"]
- assert controller.template.assigns["after_ran"]
- end
-
- def test_having_properties_in_around_filter
- controller = test_process(AroundFilterController)
- assert_equal "before and after", controller.template.assigns["execution_log"]
- end
-
- def test_prepending_and_appending_around_filter
- controller = test_process(MixedFilterController)
- assert_equal " before aroundfilter before procfilter before appended aroundfilter " +
- " after appended aroundfilter after aroundfilter after procfilter ",
- MixedFilterController.execution_log
- end
-
- def test_rendering_breaks_filtering_chain
- response = test_process(RenderingController)
- assert_equal "something else", response.body
- assert !response.template.assigns["ran_action"]
- end
-
- def test_filters_with_mixed_specialization_run_in_order
- assert_nothing_raised do
- response = test_process(MixedSpecializationController, 'bar')
- assert_equal 'bar', response.body
- end
-
- assert_nothing_raised do
- response = test_process(MixedSpecializationController, 'foo')
- assert_equal 'foo', response.body
- end
- end
-
- def test_dynamic_dispatch
- %w(foo bar baz).each do |action|
- request = ActionController::TestRequest.new
- request.query_parameters[:choose] = action
- response = DynamicDispatchController.process(request, ActionController::TestResponse.new)
- assert_equal action, response.body
- end
- end
-
- def test_conditional_skipping_of_filters
- assert_nil test_process(ConditionalSkippingController, "login").template.assigns["ran_filter"]
- assert_equal %w( ensure_login find_user ), test_process(ConditionalSkippingController, "change_password").template.assigns["ran_filter"]
-
- assert_nil test_process(ConditionalSkippingController, "login").template.controller.instance_variable_get("@ran_after_filter")
- assert_equal %w( clean_up ), test_process(ConditionalSkippingController, "change_password").template.controller.instance_variable_get("@ran_after_filter")
- end
-
- def test_conditional_skipping_of_filters_when_parent_filter_is_also_conditional
- assert_equal %w( conditional_in_parent conditional_in_parent ), test_process(ChildOfConditionalParentController).template.assigns['ran_filter']
- assert_nil test_process(ChildOfConditionalParentController, 'another_action').template.assigns['ran_filter']
- end
-
- def test_condition_skipping_of_filters_when_siblings_also_have_conditions
- assert_equal %w( conditional_in_parent conditional_in_parent ), test_process(ChildOfConditionalParentController).template.assigns['ran_filter'], "1"
- assert_equal nil, test_process(AnotherChildOfConditionalParentController).template.assigns['ran_filter']
- assert_equal %w( conditional_in_parent conditional_in_parent ), test_process(ChildOfConditionalParentController).template.assigns['ran_filter']
- end
-
- def test_changing_the_requirements
- assert_equal nil, test_process(ChangingTheRequirementsController, "go_wild").template.assigns['ran_filter']
- end
-
- private
- def test_process(controller, action = "show")
- request = ActionController::TestRequest.new
- request.action = action
- controller.process(request, ActionController::TestResponse.new)
- end
-end
-
-
-
-class PostsController < ActionController::Base
- def rescue_action(e); raise e; end
-
- module AroundExceptions
- class Error < StandardError ; end
- class Before < Error ; end
- class After < Error ; end
- end
- include AroundExceptions
-
- class DefaultFilter
- include AroundExceptions
- end
-
- module_eval %w(raises_before raises_after raises_both no_raise no_filter).map { |action| "def #{action}; default_action end" }.join("\n")
-
- private
- def default_action
- render :inline => "#{action_name} called"
- end
-end
-
-class ControllerWithSymbolAsFilter < PostsController
- around_filter :raise_before, :only => :raises_before
- around_filter :raise_after, :only => :raises_after
- around_filter :without_exception, :only => :no_raise
-
- private
- def raise_before
- raise Before
- yield
- end
-
- def raise_after
- yield
- raise After
- end
-
- def without_exception
- # Do stuff...
- 1 + 1
-
- yield
-
- # Do stuff...
- 1 + 1
- end
-end
-
-class ControllerWithFilterClass < PostsController
- class YieldingFilter < DefaultFilter
- def self.filter(controller)
- yield
- raise After
- end
- end
-
- around_filter YieldingFilter, :only => :raises_after
-end
-
-class ControllerWithFilterInstance < PostsController
- class YieldingFilter < DefaultFilter
- def filter(controller)
- yield
- raise After
- end
- end
-
- around_filter YieldingFilter.new, :only => :raises_after
-end
-
-class ControllerWithFilterMethod < PostsController
- class YieldingFilter < DefaultFilter
- def filter(controller)
- yield
- raise After
- end
- end
-
- around_filter YieldingFilter.new.method(:filter), :only => :raises_after
-end
-
-class ControllerWithProcFilter < PostsController
- around_filter(:only => :no_raise) do |c,b|
- c.assigns['before'] = true
- b.call
- c.assigns['after'] = true
- end
-end
-
-class ControllerWithWrongFilterType < PostsController
- around_filter lambda { yield }, :only => :no_raise
-end
-
-class ControllerWithNestedFilters < ControllerWithSymbolAsFilter
- around_filter :raise_before, :raise_after, :without_exception, :only => :raises_both
-end
-
-class ControllerWithAllTypesOfFilters < PostsController
- before_filter :before
- around_filter :around
- after_filter :after
- around_filter :around_again
-
- private
- def before
- @ran_filter ||= []
- @ran_filter << 'before'
- end
-
- def around
- @ran_filter << 'around (before yield)'
- yield
- @ran_filter << 'around (after yield)'
- end
-
- def after
- @ran_filter << 'after'
- end
-
- def around_again
- @ran_filter << 'around_again (before yield)'
- yield
- @ran_filter << 'around_again (after yield)'
- end
-end
-
-class ControllerWithTwoLessFilters < ControllerWithAllTypesOfFilters
- skip_filter :around_again
- skip_filter :after
-end
-
-class YieldingAroundFiltersTest < Test::Unit::TestCase
- include PostsController::AroundExceptions
-
- def test_filters_registering
- assert_equal 1, ControllerWithFilterMethod.filter_chain.size
- assert_equal 1, ControllerWithFilterClass.filter_chain.size
- assert_equal 1, ControllerWithFilterInstance.filter_chain.size
- assert_equal 3, ControllerWithSymbolAsFilter.filter_chain.size
- assert_equal 1, ControllerWithWrongFilterType.filter_chain.size
- assert_equal 6, ControllerWithNestedFilters.filter_chain.size
- assert_equal 4, ControllerWithAllTypesOfFilters.filter_chain.size
- end
-
- def test_wrong_filter_type
- assert_raise(ActionController::ActionControllerError) do
- test_process(ControllerWithWrongFilterType,'no_raise')
- end
- end
-
- def test_base
- controller = PostsController
- assert_nothing_raised { test_process(controller,'no_raise') }
- assert_nothing_raised { test_process(controller,'raises_before') }
- assert_nothing_raised { test_process(controller,'raises_after') }
- assert_nothing_raised { test_process(controller,'no_filter') }
- end
-
- def test_with_symbol
- controller = ControllerWithSymbolAsFilter
- assert_nothing_raised { test_process(controller,'no_raise') }
- assert_raise(Before) { test_process(controller,'raises_before') }
- assert_raise(After) { test_process(controller,'raises_after') }
- assert_nothing_raised { test_process(controller,'no_raise') }
- end
-
- def test_with_class
- controller = ControllerWithFilterClass
- assert_nothing_raised { test_process(controller,'no_raise') }
- assert_raise(After) { test_process(controller,'raises_after') }
- end
-
- def test_with_instance
- controller = ControllerWithFilterInstance
- assert_nothing_raised { test_process(controller,'no_raise') }
- assert_raise(After) { test_process(controller,'raises_after') }
- end
-
- def test_with_method
- controller = ControllerWithFilterMethod
- assert_nothing_raised { test_process(controller,'no_raise') }
- assert_raise(After) { test_process(controller,'raises_after') }
- end
-
- def test_with_proc
- controller = test_process(ControllerWithProcFilter,'no_raise')
- assert controller.template.assigns['before']
- assert controller.template.assigns['after']
- end
-
- def test_nested_filters
- controller = ControllerWithNestedFilters
- assert_nothing_raised do
- begin
- test_process(controller,'raises_both')
- rescue Before, After
- end
- end
- assert_raise Before do
- begin
- test_process(controller,'raises_both')
- rescue After
- end
- end
- end
-
- def test_filter_order_with_all_filter_types
- controller = test_process(ControllerWithAllTypesOfFilters,'no_raise')
- assert_equal 'before around (before yield) around_again (before yield) around_again (after yield) around (after yield) after',controller.template.assigns['ran_filter'].join(' ')
- end
-
- def test_filter_order_with_skip_filter_method
- controller = test_process(ControllerWithTwoLessFilters,'no_raise')
- assert_equal 'before around (before yield) around (after yield)',controller.template.assigns['ran_filter'].join(' ')
- end
-
- def test_first_filter_in_multiple_before_filter_chain_halts
- controller = ::FilterTest::TestMultipleFiltersController.new
- response = test_process(controller, 'fail_1')
- assert_equal '', response.body
- assert_equal 1, controller.instance_variable_get(:@try)
- assert controller.instance_variable_get(:@before_filter_chain_aborted)
- end
-
- def test_second_filter_in_multiple_before_filter_chain_halts
- controller = ::FilterTest::TestMultipleFiltersController.new
- response = test_process(controller, 'fail_2')
- assert_equal '', response.body
- assert_equal 2, controller.instance_variable_get(:@try)
- assert controller.instance_variable_get(:@before_filter_chain_aborted)
- end
-
- def test_last_filter_in_multiple_before_filter_chain_halts
- controller = ::FilterTest::TestMultipleFiltersController.new
- response = test_process(controller, 'fail_3')
- assert_equal '', response.body
- assert_equal 3, controller.instance_variable_get(:@try)
- assert controller.instance_variable_get(:@before_filter_chain_aborted)
- end
-
- protected
- def test_process(controller, action = "show")
- request = ActionController::TestRequest.new
- request.action = action
- controller.process(request, ActionController::TestResponse.new)
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/flash_test.rb b/tracks/vendor/rails/actionpack/test/controller/flash_test.rb
deleted file mode 100644
index d12ced85..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/flash_test.rb
+++ /dev/null
@@ -1,102 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class FlashTest < Test::Unit::TestCase
- class TestController < ActionController::Base
- def set_flash
- flash["that"] = "hello"
- render :inline => "hello"
- end
-
- def set_flash_now
- flash.now["that"] = "hello"
- flash.now["foo"] ||= "bar"
- flash.now["foo"] ||= "err"
- @flashy = flash.now["that"]
- @flash_copy = {}.update flash
- render :inline => "hello"
- end
-
- def attempt_to_use_flash_now
- @flash_copy = {}.update flash
- @flashy = flash["that"]
- render :inline => "hello"
- end
-
- def use_flash
- @flash_copy = {}.update flash
- @flashy = flash["that"]
- render :inline => "hello"
- end
-
- def use_flash_and_keep_it
- @flash_copy = {}.update flash
- @flashy = flash["that"]
- silence_warnings { keep_flash }
- render :inline => "hello"
- end
-
- def use_flash_after_reset_session
- flash["that"] = "hello"
- @flashy_that = flash["that"]
- reset_session
- @flashy_that_reset = flash["that"]
- flash["this"] = "good-bye"
- @flashy_this = flash["this"]
- render :inline => "hello"
- end
-
- def rescue_action(e)
- raise unless ActionController::MissingTemplate === e
- end
- end
-
- def setup
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @controller = TestController.new
- end
-
- def test_flash
- get :set_flash
-
- get :use_flash
- assert_equal "hello", @response.template.assigns["flash_copy"]["that"]
- assert_equal "hello", @response.template.assigns["flashy"]
-
- get :use_flash
- assert_nil @response.template.assigns["flash_copy"]["that"], "On second flash"
- end
-
- def test_keep_flash
- get :set_flash
-
- assert_deprecated(/keep_flash/) { get :use_flash_and_keep_it }
- assert_equal "hello", @response.template.assigns["flash_copy"]["that"]
- assert_equal "hello", @response.template.assigns["flashy"]
-
- get :use_flash
- assert_equal "hello", @response.template.assigns["flash_copy"]["that"], "On second flash"
-
- get :use_flash
- assert_nil @response.template.assigns["flash_copy"]["that"], "On third flash"
- end
-
- def test_flash_now
- get :set_flash_now
- assert_equal "hello", @response.template.assigns["flash_copy"]["that"]
- assert_equal "bar" , @response.template.assigns["flash_copy"]["foo"]
- assert_equal "hello", @response.template.assigns["flashy"]
-
- get :attempt_to_use_flash_now
- assert_nil @response.template.assigns["flash_copy"]["that"]
- assert_nil @response.template.assigns["flash_copy"]["foo"]
- assert_nil @response.template.assigns["flashy"]
- end
-
- def test_flash_after_reset_session
- get :use_flash_after_reset_session
- assert_equal "hello", @response.template.assigns["flashy_that"]
- assert_equal "good-bye", @response.template.assigns["flashy_this"]
- assert_nil @response.template.assigns["flashy_that_reset"]
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/fragment_store_setting_test.rb b/tracks/vendor/rails/actionpack/test/controller/fragment_store_setting_test.rb
deleted file mode 100644
index cb872f65..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/fragment_store_setting_test.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-MemCache = Struct.new(:MemCache, :address) unless Object.const_defined?(:MemCache)
-
-class FragmentCacheStoreSettingTest < Test::Unit::TestCase
- def teardown
- ActionController::Base.fragment_cache_store = ActionController::Caching::Fragments::MemoryStore.new
- end
-
- def test_file_fragment_cache_store
- ActionController::Base.fragment_cache_store = :file_store, "/path/to/cache/directory"
- assert_kind_of(
- ActionController::Caching::Fragments::FileStore,
- ActionController::Base.fragment_cache_store
- )
- assert_equal "/path/to/cache/directory", ActionController::Base.fragment_cache_store.cache_path
- end
-
- def test_drb_fragment_cache_store
- ActionController::Base.fragment_cache_store = :drb_store, "druby://localhost:9192"
- assert_kind_of(
- ActionController::Caching::Fragments::DRbStore,
- ActionController::Base.fragment_cache_store
- )
- assert_equal "druby://localhost:9192", ActionController::Base.fragment_cache_store.address
- end
-
- def test_mem_cache_fragment_cache_store
- ActionController::Base.fragment_cache_store = :mem_cache_store, "localhost"
- assert_kind_of(
- ActionController::Caching::Fragments::MemCacheStore,
- ActionController::Base.fragment_cache_store
- )
- assert_equal %w(localhost), ActionController::Base.fragment_cache_store.addresses
- end
-
- def test_object_assigned_fragment_cache_store
- ActionController::Base.fragment_cache_store = ActionController::Caching::Fragments::FileStore.new("/path/to/cache/directory")
- assert_kind_of(
- ActionController::Caching::Fragments::FileStore,
- ActionController::Base.fragment_cache_store
- )
- assert_equal "/path/to/cache/directory", ActionController::Base.fragment_cache_store.cache_path
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/helper_test.rb b/tracks/vendor/rails/actionpack/test/controller/helper_test.rb
deleted file mode 100644
index 98c8f7e7..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/helper_test.rb
+++ /dev/null
@@ -1,187 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class TestController < ActionController::Base
- attr_accessor :delegate_attr
- def delegate_method() end
- def rescue_action(e) raise end
-end
-
-module Fun
- class GamesController < ActionController::Base
- def render_hello_world
- render :inline => "hello: <%= stratego %>"
- end
-
- def rescue_action(e) raise end
- end
-
- class PDFController < ActionController::Base
- def test
- render :inline => "test: <%= foobar %>"
- end
-
- def rescue_action(e) raise end
- end
-end
-
-module LocalAbcHelper
- def a() end
- def b() end
- def c() end
-end
-
-class HelperTest < Test::Unit::TestCase
- def setup
- # Increment symbol counter.
- @symbol = (@@counter ||= 'A0').succ!.dup
-
- # Generate new controller class.
- controller_class_name = "Helper#{@symbol}Controller"
- eval("class #{controller_class_name} < TestController; end")
- @controller_class = self.class.const_get(controller_class_name)
-
- # Generate new template class and assign to controller.
- template_class_name = "Test#{@symbol}View"
- eval("class #{template_class_name} < ActionView::Base; end")
- @template_class = self.class.const_get(template_class_name)
- @controller_class.template_class = @template_class
-
- # Set default test helper.
- self.test_helper = LocalAbcHelper
- end
-
- def teardown
- # Reset template class.
- #ActionController::Base.template_class = ActionView::Base
- end
-
-
- def test_deprecated_helper
- assert_equal expected_helper_methods, missing_methods
- assert_nothing_raised { @controller_class.helper TestHelper }
- assert_equal [], missing_methods
- end
-
- def test_declare_helper
- require 'abc_helper'
- self.test_helper = AbcHelper
- assert_equal expected_helper_methods, missing_methods
- assert_nothing_raised { @controller_class.helper :abc }
- assert_equal [], missing_methods
- end
-
- def test_declare_missing_helper
- assert_equal expected_helper_methods, missing_methods
- assert_raise(MissingSourceFile) { @controller_class.helper :missing }
- end
-
- def test_declare_missing_file_from_helper
- require 'broken_helper'
- rescue LoadError => e
- assert_nil(/\bbroken_helper\b/.match(e.to_s)[1])
- end
-
- def test_helper_block
- assert_nothing_raised {
- @controller_class.helper { def block_helper_method; end }
- }
- assert master_helper_methods.include?('block_helper_method')
- end
-
- def test_helper_block_include
- assert_equal expected_helper_methods, missing_methods
- assert_nothing_raised {
- @controller_class.helper { include TestHelper }
- }
- assert [], missing_methods
- end
-
- def test_helper_method
- assert_nothing_raised { @controller_class.helper_method :delegate_method }
- assert master_helper_methods.include?('delegate_method')
- end
-
- def test_helper_attr
- assert_nothing_raised { @controller_class.helper_attr :delegate_attr }
- assert master_helper_methods.include?('delegate_attr')
- assert master_helper_methods.include?('delegate_attr=')
- end
-
- def test_helper_for_nested_controller
- request = ActionController::TestRequest.new
- response = ActionController::TestResponse.new
- request.action = 'render_hello_world'
-
- assert_equal 'hello: Iz guuut!', Fun::GamesController.process(request, response).body
- end
-
- def test_helper_for_acronym_controller
- request = ActionController::TestRequest.new
- response = ActionController::TestResponse.new
- request.action = 'test'
-
- assert_equal 'test: baz', Fun::PDFController.process(request, response).body
- end
-
- private
- def expected_helper_methods
- TestHelper.instance_methods
- end
-
- def master_helper_methods
- @controller_class.master_helper_module.instance_methods
- end
-
- def missing_methods
- expected_helper_methods - master_helper_methods
- end
-
- def test_helper=(helper_module)
- silence_warnings { self.class.const_set('TestHelper', helper_module) }
- end
-end
-
-
-class IsolatedHelpersTest < Test::Unit::TestCase
- class A < ActionController::Base
- def index
- render :inline => '<%= shout %>'
- end
-
- def rescue_action(e) raise end
- end
-
- class B < A
- helper { def shout; 'B' end }
-
- def index
- render :inline => '<%= shout %>'
- end
- end
-
- class C < A
- helper { def shout; 'C' end }
-
- def index
- render :inline => '<%= shout %>'
- end
- end
-
- def setup
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- @request.action = 'index'
- end
-
- def test_helper_in_a
- assert_raise(NameError) { A.process(@request, @response) }
- end
-
- def test_helper_in_b
- assert_equal 'B', B.process(@request, @response).body
- end
-
- def test_helper_in_c
- assert_equal 'C', C.process(@request, @response).body
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/integration_test.rb b/tracks/vendor/rails/actionpack/test/controller/integration_test.rb
deleted file mode 100644
index 665c5901..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/integration_test.rb
+++ /dev/null
@@ -1,154 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-$:.unshift File.dirname(__FILE__) + '/../../../railties/lib'
-require 'action_controller/integration'
-
-begin # rescue LoadError
-require 'mocha'
-require 'stubba'
-
-# Stub process for testing.
-module ActionController
- module Integration
- class Session
- def process
- end
-
- def generic_url_rewriter
- end
- end
- end
-end
-
-class SessionTest < Test::Unit::TestCase
- def setup
- @session = ActionController::Integration::Session.new
- end
- def test_https_bang_works_and_sets_truth_by_default
- assert !@session.https?
- @session.https!
- assert @session.https?
- @session.https! false
- assert !@session.https?
- end
-
- def test_host!
- assert_not_equal "glu.ttono.us", @session.host
- @session.host! "rubyonrails.com"
- assert_equal "rubyonrails.com", @session.host
- end
-
- def test_follow_redirect_raises_when_no_redirect
- @session.stubs(:redirect?).returns(false)
- assert_raise(RuntimeError) { @session.follow_redirect! }
- end
-
- def test_follow_redirect_calls_get_and_returns_status
- @session.stubs(:redirect?).returns(true)
- @session.stubs(:headers).returns({"location" => ["www.google.com"]})
- @session.stubs(:status).returns(200)
- @session.expects(:get)
- assert_equal 200, @session.follow_redirect!
- end
-
- def test_get_via_redirect
- path = "/somepath"; args = {:id => '1'}
-
- @session.expects(:get).with(path,args)
-
- redirects = [true, true, false]
- @session.stubs(:redirect?).returns(lambda { redirects.shift })
- @session.expects(:follow_redirect!).times(2)
-
- @session.stubs(:status).returns(200)
- assert_equal 200, @session.get_via_redirect(path, args)
- end
-
- def test_post_via_redirect
- path = "/somepath"; args = {:id => '1'}
-
- @session.expects(:post).with(path,args)
-
- redirects = [true, true, false]
- @session.stubs(:redirect?).returns(lambda { redirects.shift })
- @session.expects(:follow_redirect!).times(2)
-
- @session.stubs(:status).returns(200)
- assert_equal 200, @session.post_via_redirect(path, args)
- end
-
- def test_url_for_with_controller
- options = {:action => 'show'}
- mock_controller = mock()
- mock_controller.expects(:url_for).with(options).returns('/show')
- @session.stubs(:controller).returns(mock_controller)
- assert_equal '/show', @session.url_for(options)
- end
-
- def test_url_for_without_controller
- options = {:action => 'show'}
- mock_rewriter = mock()
- mock_rewriter.expects(:rewrite).with(options).returns('/show')
- @session.stubs(:generic_url_rewriter).returns(mock_rewriter)
- @session.stubs(:controller).returns(nil)
- assert_equal '/show', @session.url_for(options)
- end
-
- def test_redirect_bool_with_status_in_300s
- @session.stubs(:status).returns 301
- assert @session.redirect?
- end
-
- def test_redirect_bool_with_status_in_200s
- @session.stubs(:status).returns 200
- assert !@session.redirect?
- end
-
- def test_get
- path = "/index"; params = "blah"; headers = {:location => 'blah'}
- @session.expects(:process).with(:get,path,params,headers)
- @session.get(path,params,headers)
- end
-
- def test_post
- path = "/index"; params = "blah"; headers = {:location => 'blah'}
- @session.expects(:process).with(:post,path,params,headers)
- @session.post(path,params,headers)
- end
-
- def test_put
- path = "/index"; params = "blah"; headers = {:location => 'blah'}
- @session.expects(:process).with(:put,path,params,headers)
- @session.put(path,params,headers)
- end
-
- def test_delete
- path = "/index"; params = "blah"; headers = {:location => 'blah'}
- @session.expects(:process).with(:delete,path,params,headers)
- @session.delete(path,params,headers)
- end
-
- def test_head
- path = "/index"; params = "blah"; headers = {:location => 'blah'}
- @session.expects(:process).with(:head,path,params,headers)
- @session.head(path,params,headers)
- end
-
- def test_xml_http_request
- path = "/index"; params = "blah"; headers = {:location => 'blah'}
- headers_after_xhr = headers.merge(
- "X-Requested-With" => "XMLHttpRequest",
- "Accept" => "text/javascript, text/html, application/xml, text/xml, */*"
- )
- @session.expects(:post).with(path,params,headers_after_xhr)
- @session.xml_http_request(path,params,headers)
- end
-end
-
-# TODO
-# class MockCGITest < Test::Unit::TestCase
-# end
-
-rescue LoadError
- $stderr.puts "Skipping integration tests. `gem install mocha` and try again."
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/layout_test.rb b/tracks/vendor/rails/actionpack/test/controller/layout_test.rb
deleted file mode 100644
index 3e1d3d96..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/layout_test.rb
+++ /dev/null
@@ -1,176 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-# The template_root must be set on Base and not LayoutTest so that LayoutTest's inherited method has access to
-# the template_root when looking for a layout
-ActionController::Base.template_root = File.dirname(__FILE__) + '/../fixtures/layout_tests/'
-
-class LayoutTest < ActionController::Base
- def self.controller_path; 'views' end
-end
-
-# Restore template root to be unset
-ActionController::Base.template_root = nil
-
-class ProductController < LayoutTest
-end
-
-class ItemController < LayoutTest
-end
-
-class ThirdPartyTemplateLibraryController < LayoutTest
-end
-
-module ControllerNameSpace
-end
-
-class ControllerNameSpace::NestedController < LayoutTest
-end
-
-class MabView
- def initialize(view)
- end
-
- def render(text, locals = {})
- text
- end
-end
-
-ActionView::Base::register_template_handler :mab, MabView
-
-class LayoutAutoDiscoveryTest < Test::Unit::TestCase
- def setup
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
-
- @request.host = "www.nextangle.com"
- end
-
- def test_application_layout_is_default_when_no_controller_match
- @controller = ProductController.new
- get :hello
- assert_equal 'layout_test.rhtml hello.rhtml', @response.body
- end
-
- def test_controller_name_layout_name_match
- @controller = ItemController.new
- get :hello
- assert_equal 'item.rhtml hello.rhtml', @response.body
- end
-
- def test_third_party_template_library_auto_discovers_layout
- @controller = ThirdPartyTemplateLibraryController.new
- get :hello
- assert_equal 'layouts/third_party_template_library', @controller.active_layout
- assert_equal 'Mab', @response.body
- end
-
- def test_namespaced_controllers_auto_detect_layouts
- @controller = ControllerNameSpace::NestedController.new
- get :hello
- assert_equal 'layouts/controller_name_space/nested', @controller.active_layout
- assert_equal 'controller_name_space/nested.rhtml hello.rhtml', @response.body
- end
-end
-
-class ExemptFromLayoutTest < Test::Unit::TestCase
- def setup
- @controller = LayoutTest.new
- end
-
- def test_rjs_exempt_from_layout
- assert @controller.send(:template_exempt_from_layout?, 'test.rjs')
- end
-
- def test_rhtml_and_rxml_not_exempt_from_layout
- assert !@controller.send(:template_exempt_from_layout?, 'test.rhtml')
- assert !@controller.send(:template_exempt_from_layout?, 'test.rxml')
- end
-
- def test_other_extension_not_exempt_from_layout
- assert !@controller.send(:template_exempt_from_layout?, 'test.random')
- end
-
- def test_add_extension_to_exempt_from_layout
- ['rpdf', :rpdf].each do |ext|
- assert_nothing_raised do
- ActionController::Base.exempt_from_layout ext
- end
- assert @controller.send(:template_exempt_from_layout?, "test.#{ext}")
- end
- end
-
- def test_add_regexp_to_exempt_from_layout
- ActionController::Base.exempt_from_layout /\.rdoc/
- assert @controller.send(:template_exempt_from_layout?, 'test.rdoc')
- end
-end
-
-
-class DefaultLayoutController < LayoutTest
-end
-
-class HasOwnLayoutController < LayoutTest
- layout 'item'
-end
-
-class SetsLayoutInRenderController < LayoutTest
- def hello
- render :layout => 'third_party_template_library'
- end
-end
-
-class RendersNoLayoutController < LayoutTest
- def hello
- render :layout => false
- end
-end
-
-class LayoutSetInResponseTest < Test::Unit::TestCase
- def setup
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- end
-
- def test_layout_set_when_using_default_layout
- @controller = DefaultLayoutController.new
- get :hello
- assert_equal 'layouts/layout_test', @response.layout
- end
-
- def test_layout_set_when_set_in_controller
- @controller = HasOwnLayoutController.new
- get :hello
- assert_equal 'layouts/item', @response.layout
- end
-
- def test_layout_set_when_using_render
- @controller = SetsLayoutInRenderController.new
- get :hello
- assert_equal 'layouts/third_party_template_library', @response.layout
- end
-
- def test_layout_is_not_set_when_none_rendered
- @controller = RendersNoLayoutController.new
- get :hello
- assert_nil @response.layout
- end
-end
-
-
-class SetsNonExistentLayoutFile < LayoutTest
- layout "nofile.rhtml"
-end
-
-class LayoutExceptionRaised < Test::Unit::TestCase
- def setup
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- end
-
- def test_exception_raised_when_layout_file_not_found
- @controller = SetsNonExistentLayoutFile.new
- get :hello
- @response.template.class.module_eval { attr_accessor :exception }
- assert_equal ActionController::MissingTemplate, @response.template.exception.class
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/mime_responds_test.rb b/tracks/vendor/rails/actionpack/test/controller/mime_responds_test.rb
deleted file mode 100644
index c08062ca..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/mime_responds_test.rb
+++ /dev/null
@@ -1,351 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class RespondToController < ActionController::Base
- layout :set_layout
-
- def html_xml_or_rss
- respond_to do |type|
- type.html { render :text => "HTML" }
- type.xml { render :text => "XML" }
- type.rss { render :text => "RSS" }
- type.all { render :text => "Nothing" }
- end
- end
-
- def js_or_html
- respond_to do |type|
- type.html { render :text => "HTML" }
- type.js { render :text => "JS" }
- type.all { render :text => "Nothing" }
- end
- end
-
- def json_or_yaml
- respond_to do |type|
- type.json { render :text => "JSON" }
- type.yaml { render :text => "YAML" }
- end
- end
-
- def html_or_xml
- respond_to do |type|
- type.html { render :text => "HTML" }
- type.xml { render :text => "XML" }
- type.all { render :text => "Nothing" }
- end
- end
-
- def just_xml
- respond_to do |type|
- type.xml { render :text => "XML" }
- end
- end
-
- def using_defaults
- respond_to do |type|
- type.html
- type.js
- type.xml
- end
- end
-
- def using_defaults_with_type_list
- respond_to(:html, :js, :xml)
- end
-
- def made_for_content_type
- respond_to do |type|
- type.rss { render :text => "RSS" }
- type.atom { render :text => "ATOM" }
- type.all { render :text => "Nothing" }
- end
- end
-
- def custom_type_handling
- respond_to do |type|
- type.html { render :text => "HTML" }
- type.custom("application/crazy-xml") { render :text => "Crazy XML" }
- type.all { render :text => "Nothing" }
- end
- end
-
- def custom_constant_handling
- Mime::Type.register("text/x-mobile", :mobile)
-
- respond_to do |type|
- type.html { render :text => "HTML" }
- type.mobile { render :text => "Mobile" }
- end
-
- Mime.send :remove_const, :MOBILE
- end
-
- def custom_constant_handling_without_block
- Mime::Type.register("text/x-mobile", :mobile)
-
- respond_to do |type|
- type.html { render :text => "HTML" }
- type.mobile
- end
-
- Mime.send :remove_const, :MOBILE
- end
-
-
- def handle_any
- respond_to do |type|
- type.html { render :text => "HTML" }
- type.any(:js, :xml) { render :text => "Either JS or XML" }
- end
- end
-
- def all_types_with_layout
- respond_to do |type|
- type.html
- type.js
- end
- end
-
- def rescue_action(e)
- raise
- end
-
- protected
- def set_layout
- if action_name == "all_types_with_layout"
- "standard"
- end
- end
-end
-
-RespondToController.template_root = File.dirname(__FILE__) + "/../fixtures/"
-
-class MimeControllerTest < Test::Unit::TestCase
- def setup
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
-
- @controller = RespondToController.new
- @request.host = "www.example.com"
- end
-
- def test_html
- @request.env["HTTP_ACCEPT"] = "text/html"
- get :js_or_html
- assert_equal 'HTML', @response.body
-
- get :html_or_xml
- assert_equal 'HTML', @response.body
-
- get :just_xml
- assert_response 406
- end
-
- def test_all
- @request.env["HTTP_ACCEPT"] = "*/*"
- get :js_or_html
- assert_equal 'HTML', @response.body # js is not part of all
-
- get :html_or_xml
- assert_equal 'HTML', @response.body
-
- get :just_xml
- assert_equal 'XML', @response.body
- end
-
- def test_xml
- @request.env["HTTP_ACCEPT"] = "application/xml"
- get :html_xml_or_rss
- assert_equal 'XML', @response.body
- end
-
- def test_js_or_html
- @request.env["HTTP_ACCEPT"] = "text/javascript, text/html"
- get :js_or_html
- assert_equal 'JS', @response.body
-
- get :html_or_xml
- assert_equal 'HTML', @response.body
-
- get :just_xml
- assert_response 406
- end
-
- def test_json_or_yaml
- get :json_or_yaml
- assert_equal 'JSON', @response.body
-
- get :json_or_yaml, :format => 'json'
- assert_equal 'JSON', @response.body
-
- get :json_or_yaml, :format => 'yaml'
- assert_equal 'YAML', @response.body
-
- { 'YAML' => %w(text/yaml),
- 'JSON' => %w(application/json text/x-json)
- }.each do |body, content_types|
- content_types.each do |content_type|
- @request.env['HTTP_ACCEPT'] = content_type
- get :json_or_yaml
- assert_equal body, @response.body
- end
- end
- end
-
- def test_js_or_anything
- @request.env["HTTP_ACCEPT"] = "text/javascript, */*"
- get :js_or_html
- assert_equal 'JS', @response.body
-
- get :html_or_xml
- assert_equal 'HTML', @response.body
-
- get :just_xml
- assert_equal 'XML', @response.body
- end
-
- def test_using_defaults
- @request.env["HTTP_ACCEPT"] = "*/*"
- get :using_defaults
- assert_equal 'Hello world!', @response.body
-
- @request.env["HTTP_ACCEPT"] = "text/javascript"
- get :using_defaults
- assert_equal '$("body").visualEffect("highlight");', @response.body
-
- @request.env["HTTP_ACCEPT"] = "application/xml"
- get :using_defaults
- assert_equal "
})
- select("h1 a, h3 a")
- assert_equal 2, @matches.size
- assert_equal "foo", @matches[0].attributes["href"]
- assert_equal "baz", @matches[1].attributes["href"]
- # And now for the three selector challange.
- parse(%Q{
})
- # Test the third child.
- select("tr:nth-child(0n+3)")
- assert_equal 1, @matches.size
- assert_equal "3", @matches[0].attributes["id"]
- # Same but an can be omitted when zero.
- select("tr:nth-child(3)")
- assert_equal 1, @matches.size
- assert_equal "3", @matches[0].attributes["id"]
- # Second element (but not every second element).
- select("tr:nth-child(0n+2)")
- assert_equal 1, @matches.size
- assert_equal "2", @matches[0].attributes["id"]
- # Before first and past last returns nothing.:
- assert_raises(ArgumentError) { select("tr:nth-child(-1)") }
- select("tr:nth-child(0)")
- assert_equal 0, @matches.size
- select("tr:nth-child(5)")
- assert_equal 0, @matches.size
- end
-
-
- def test_nth_child_a_is_one
- parse(%Q{
})
- # a is group of one, pick every element in group.
- select("tr:nth-child(1n+0)")
- assert_equal 4, @matches.size
- # Same but a can be omitted when one.
- select("tr:nth-child(n+0)")
- assert_equal 4, @matches.size
- # Same but b can be omitted when zero.
- select("tr:nth-child(n)")
- assert_equal 4, @matches.size
- end
-
-
- def test_nth_child_b_is_zero
- parse(%Q{
})
- # If b is zero, pick the n-th element (here each one).
- select("tr:nth-child(n+0)")
- assert_equal 4, @matches.size
- # If b is zero, pick the n-th element (here every second).
- select("tr:nth-child(2n+0)")
- assert_equal 2, @matches.size
- assert_equal "1", @matches[0].attributes["id"]
- assert_equal "3", @matches[1].attributes["id"]
- # If a and b are both zero, no element selected.
- select("tr:nth-child(0n+0)")
- assert_equal 0, @matches.size
- select("tr:nth-child(0)")
- assert_equal 0, @matches.size
- end
-
-
- def test_nth_child_a_is_negative
- parse(%Q{
})
- # Since a is -1, picks the first three elements.
- select("tr:nth-child(-n+3)")
- assert_equal 3, @matches.size
- assert_equal "1", @matches[0].attributes["id"]
- assert_equal "2", @matches[1].attributes["id"]
- assert_equal "3", @matches[2].attributes["id"]
- # Since a is -2, picks the first in every second of first four elements.
- select("tr:nth-child(-2n+3)")
- assert_equal 2, @matches.size
- assert_equal "1", @matches[0].attributes["id"]
- assert_equal "3", @matches[1].attributes["id"]
- # Since a is -2, picks the first in every second of first three elements.
- select("tr:nth-child(-2n+2)")
- assert_equal 1, @matches.size
- assert_equal "1", @matches[0].attributes["id"]
- end
-
-
- def test_nth_child_b_is_negative
- parse(%Q{
})
- # Select last of four.
- select("tr:nth-child(4n-1)")
- assert_equal 1, @matches.size
- assert_equal "4", @matches[0].attributes["id"]
- # Select first of four.
- select("tr:nth-child(4n-4)")
- assert_equal 1, @matches.size
- assert_equal "1", @matches[0].attributes["id"]
- # Select last of every second.
- select("tr:nth-child(2n-1)")
- assert_equal 2, @matches.size
- assert_equal "2", @matches[0].attributes["id"]
- assert_equal "4", @matches[1].attributes["id"]
- # Select nothing since an+b always < 0
- select("tr:nth-child(-1n-1)")
- assert_equal 0, @matches.size
- end
-
-
- def test_nth_child_substitution_values
- parse(%Q{
})
- select("div")
- @matches = @matches[0].select("p")
- assert_equal 2, @matches.size
- assert_equal "1", @matches[0].attributes["id"]
- assert_equal "2", @matches[1].attributes["id"]
- end
-
-
-protected
-
- def parse(html)
- @html = HTML::Document.new(html).root
- end
-
- def select(*selector)
- @matches = HTML.selector(*selector).select(@html)
- end
-
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/send_file_test.rb b/tracks/vendor/rails/actionpack/test/controller/send_file_test.rb
deleted file mode 100644
index 83590fd7..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/send_file_test.rb
+++ /dev/null
@@ -1,117 +0,0 @@
-require File.join(File.dirname(__FILE__), '..', 'abstract_unit')
-
-
-module TestFileUtils
- def file_name() File.basename(__FILE__) end
- def file_path() File.expand_path(__FILE__) end
- def file_data() File.open(file_path, 'rb') { |f| f.read } end
-end
-
-
-class SendFileController < ActionController::Base
- include TestFileUtils
- layout "layouts/standard" # to make sure layouts don't interfere
-
- attr_writer :options
- def options() @options ||= {} end
-
- def file() send_file(file_path, options) end
- def data() send_data(file_data, options) end
-
- def rescue_action(e) raise end
-end
-
-SendFileController.template_root = File.dirname(__FILE__) + "/../fixtures/"
-
-class SendFileTest < Test::Unit::TestCase
- include TestFileUtils
-
- def setup
- @controller = SendFileController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- end
-
- def test_file_nostream
- @controller.options = { :stream => false }
- response = nil
- assert_nothing_raised { response = process('file') }
- assert_not_nil response
- assert_kind_of String, response.body
- assert_equal file_data, response.body
- end
-
- def test_file_stream
- response = nil
- assert_nothing_raised { response = process('file') }
- assert_not_nil response
- assert_kind_of Proc, response.body
-
- require 'stringio'
- output = StringIO.new
- output.binmode
- assert_nothing_raised { response.body.call(response, output) }
- assert_equal file_data, output.string
- end
-
- def test_data
- response = nil
- assert_nothing_raised { response = process('data') }
- assert_not_nil response
-
- assert_kind_of String, response.body
- assert_equal file_data, response.body
- end
-
- def test_headers_after_send_shouldnt_include_charset
- response = process('data')
- assert_equal "application/octet-stream", response.headers["Content-Type"]
-
- response = process('file')
- assert_equal "application/octet-stream", response.headers["Content-Type"]
- end
-
- # Test that send_file_headers! is setting the correct HTTP headers.
- def test_send_file_headers!
- options = {
- :length => 1,
- :type => 'type',
- :disposition => 'disposition',
- :filename => 'filename'
- }
-
- # Do it a few times: the resulting headers should be identical
- # no matter how many times you send with the same options.
- # Test resolving Ticket #458.
- @controller.headers = {}
- @controller.send(:send_file_headers!, options)
- @controller.send(:send_file_headers!, options)
- @controller.send(:send_file_headers!, options)
-
- h = @controller.headers
- assert_equal 1, h['Content-Length']
- assert_equal 'type', h['Content-Type']
- assert_equal 'disposition; filename="filename"', h['Content-Disposition']
- assert_equal 'binary', h['Content-Transfer-Encoding']
-
- # test overriding Cache-Control: no-cache header to fix IE open/save dialog
- @controller.headers = { 'Cache-Control' => 'no-cache' }
- @controller.send(:send_file_headers!, options)
- h = @controller.headers
- assert_equal 'private', h['Cache-Control']
- end
-
- %w(file data).each do |method|
- define_method "test_send_#{method}_status" do
- @controller.options = { :stream => false, :status => 500 }
- assert_nothing_raised { assert_not_nil process(method) }
- assert_equal '500 Internal Server Error', @controller.headers['Status']
- end
-
- define_method "test_default_send_#{method}_status" do
- @controller.options = { :stream => false }
- assert_nothing_raised { assert_not_nil process(method) }
- assert_equal ActionController::Base::DEFAULT_RENDER_STATUS_CODE, @controller.headers['Status']
- end
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/session_management_test.rb b/tracks/vendor/rails/actionpack/test/controller/session_management_test.rb
deleted file mode 100644
index 6e100c0c..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/session_management_test.rb
+++ /dev/null
@@ -1,145 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class SessionManagementTest < Test::Unit::TestCase
- class SessionOffController < ActionController::Base
- session :off
-
- def show
- render_text "done"
- end
-
- def tell
- render_text "done"
- end
- end
-
- class TestController < ActionController::Base
- session :off, :only => :show
- session :session_secure => true, :except => :show
- session :off, :only => :conditional,
- :if => Proc.new { |r| r.parameters[:ws] }
-
- def show
- render_text "done"
- end
-
- def tell
- render_text "done"
- end
-
- def conditional
- render_text ">>>#{params[:ws]}<<<"
- end
- end
-
- class SpecializedController < SessionOffController
- session :disabled => false, :only => :something
-
- def something
- render_text "done"
- end
-
- def another
- render_text "done"
- end
- end
-
- class AssociationCachingTestController < ActionController::Base
- class ObjectWithAssociationCache
- def initialize
- @cached_associations = false
- end
-
- def fetch_associations
- @cached_associations = true
- end
-
- def clear_association_cache
- @cached_associations = false
- end
-
- def has_cached_associations?
- @cached_associations
- end
- end
-
- def show
- session[:object] = ObjectWithAssociationCache.new
- session[:object].fetch_associations
- if session[:object].has_cached_associations?
- render :text => "has cached associations"
- else
- render :text => "does not have cached associations"
- end
- end
-
- def tell
- if session[:object]
- if session[:object].has_cached_associations?
- render :text => "has cached associations"
- else
- render :text => "does not have cached associations"
- end
- else
- render :text => "there is no object"
- end
- end
- end
-
-
- def setup
- @request, @response = ActionController::TestRequest.new,
- ActionController::TestResponse.new
- end
-
- def test_session_off_globally
- @controller = SessionOffController.new
- get :show
- assert_equal false, @request.session_options
- get :tell
- assert_equal false, @request.session_options
- end
-
- def test_session_off_conditionally
- @controller = TestController.new
- get :show
- assert_equal false, @request.session_options
- get :tell
- assert_instance_of Hash, @request.session_options
- assert @request.session_options[:session_secure]
- end
-
- def test_controller_specialization_overrides_settings
- @controller = SpecializedController.new
- get :something
- assert_instance_of Hash, @request.session_options
- get :another
- assert_equal false, @request.session_options
- end
-
- def test_session_off_with_if
- @controller = TestController.new
- get :conditional
- assert_instance_of Hash, @request.session_options
- get :conditional, :ws => "ws"
- assert_equal false, @request.session_options
- end
-
- def test_session_store_setting
- ActionController::Base.session_store = :drb_store
- assert_equal CGI::Session::DRbStore, ActionController::Base.session_store
-
- if Object.const_defined?(:ActiveRecord)
- ActionController::Base.session_store = :active_record_store
- assert_equal CGI::Session::ActiveRecordStore, ActionController::Base.session_store
- end
- end
-
- def test_process_cleanup_with_session_management_support
- @controller = AssociationCachingTestController.new
- get :show
- assert_equal "has cached associations", @response.body
- get :tell
- assert_equal "does not have cached associations", @response.body
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/test_test.rb b/tracks/vendor/rails/actionpack/test/controller/test_test.rb
deleted file mode 100644
index 2b0086c5..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/test_test.rb
+++ /dev/null
@@ -1,495 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-require File.dirname(__FILE__) + '/fake_controllers'
-
-class TestTest < Test::Unit::TestCase
- class TestController < ActionController::Base
- def set_flash
- flash["test"] = ">#{flash["test"]}<"
- render :text => 'ignore me'
- end
-
- def render_raw_post
- raise Test::Unit::AssertionFailedError, "#raw_post is blank" if request.raw_post.blank?
- render :text => request.raw_post
- end
-
- def test_params
- render :text => params.inspect
- end
-
- def test_uri
- render :text => request.request_uri
- end
-
- def test_html_output
- render :text => <
-
-
-
-
-
hello
-
goodbye
-
-
-
-
-
-
-
-HTML
- end
-
- def test_only_one_param
- render :text => (params[:left] && params[:right]) ? "EEP, Both here!" : "OK"
- end
-
- def test_remote_addr
- render :text => (request.remote_addr || "not specified")
- end
-
- def test_file_upload
- render :text => params[:file].size
- end
-
- def redirect_to_symbol
- redirect_to :generate_url, :id => 5
- end
-
- def redirect_to_same_controller
- redirect_to :controller => 'test', :action => 'test_uri', :id => 5
- end
-
- def redirect_to_different_controller
- redirect_to :controller => 'fail', :id => 5
- end
-
- def create
- headers['Location'] = 'created resource'
- head :created
- end
-
- private
- def rescue_action(e)
- raise e
- end
-
- def generate_url(opts)
- url_for(opts.merge(:action => "test_uri"))
- end
- end
-
- def setup
- @controller = TestController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- ActionController::Routing::Routes.reload
- ActionController::Routing.use_controllers! %w(content admin/user test_test/test)
- end
-
- def teardown
- ActionController::Routing::Routes.reload
- end
-
- def test_raw_post_handling
- params = {:page => {:name => 'page name'}, 'some key' => 123}
- get :render_raw_post, params.dup
-
- raw_post = params.map {|k,v| [CGI::escape(k.to_s), CGI::escape(v.to_s)].join('=')}.sort.join('&')
- assert_equal raw_post, @response.body
- end
-
- def test_process_without_flash
- process :set_flash
- assert_equal '><', flash['test']
- end
-
- def test_process_with_flash
- process :set_flash, nil, nil, { "test" => "value" }
- assert_equal '>value<', flash['test']
- end
-
- def test_process_with_request_uri_with_no_params
- process :test_uri
- assert_equal "/test_test/test/test_uri", @response.body
- end
-
- def test_process_with_request_uri_with_params
- process :test_uri, :id => 7
- assert_equal "/test_test/test/test_uri/7", @response.body
- end
-
- def test_process_with_request_uri_with_params_with_explicit_uri
- @request.set_REQUEST_URI "/explicit/uri"
- process :test_uri, :id => 7
- assert_equal "/explicit/uri", @response.body
- end
-
- def test_multiple_calls
- process :test_only_one_param, :left => true
- assert_equal "OK", @response.body
- process :test_only_one_param, :right => true
- assert_equal "OK", @response.body
- end
-
- def test_assert_tag_tag
- process :test_html_output
-
- # there is a 'form' tag
- assert_tag :tag => 'form'
- # there is not an 'hr' tag
- assert_no_tag :tag => 'hr'
- end
-
- def test_assert_tag_attributes
- process :test_html_output
-
- # there is a tag with an 'id' of 'bar'
- assert_tag :attributes => { :id => "bar" }
- # there is no tag with a 'name' of 'baz'
- assert_no_tag :attributes => { :name => "baz" }
- end
-
- def test_assert_tag_parent
- process :test_html_output
-
- # there is a tag with a parent 'form' tag
- assert_tag :parent => { :tag => "form" }
- # there is no tag with a parent of 'input'
- assert_no_tag :parent => { :tag => "input" }
- end
-
- def test_assert_tag_child
- process :test_html_output
-
- # there is a tag with a child 'input' tag
- assert_tag :child => { :tag => "input" }
- # there is no tag with a child 'strong' tag
- assert_no_tag :child => { :tag => "strong" }
- end
-
- def test_assert_tag_ancestor
- process :test_html_output
-
- # there is a 'li' tag with an ancestor having an id of 'foo'
- assert_tag :ancestor => { :attributes => { :id => "foo" } }, :tag => "li"
- # there is no tag of any kind with an ancestor having an href matching 'foo'
- assert_no_tag :ancestor => { :attributes => { :href => /foo/ } }
- end
-
- def test_assert_tag_descendant
- process :test_html_output
-
- # there is a tag with a decendant 'li' tag
- assert_tag :descendant => { :tag => "li" }
- # there is no tag with a descendant 'html' tag
- assert_no_tag :descendant => { :tag => "html" }
- end
-
- def test_assert_tag_sibling
- process :test_html_output
-
- # there is a tag with a sibling of class 'item'
- assert_tag :sibling => { :attributes => { :class => "item" } }
- # there is no tag with a sibling 'ul' tag
- assert_no_tag :sibling => { :tag => "ul" }
- end
-
- def test_assert_tag_after
- process :test_html_output
-
- # there is a tag following a sibling 'div' tag
- assert_tag :after => { :tag => "div" }
- # there is no tag following a sibling tag with id 'bar'
- assert_no_tag :after => { :attributes => { :id => "bar" } }
- end
-
- def test_assert_tag_before
- process :test_html_output
-
- # there is a tag preceeding a tag with id 'bar'
- assert_tag :before => { :attributes => { :id => "bar" } }
- # there is no tag preceeding a 'form' tag
- assert_no_tag :before => { :tag => "form" }
- end
-
- def test_assert_tag_children_count
- process :test_html_output
-
- # there is a tag with 2 children
- assert_tag :children => { :count => 2 }
- # in particular, there is a
tag with two children (a nameless pair of
s)
- assert_tag :tag => 'ul', :children => { :count => 2 }
- # there is no tag with 4 children
- assert_no_tag :children => { :count => 4 }
- end
-
- def test_assert_tag_children_less_than
- process :test_html_output
-
- # there is a tag with less than 5 children
- assert_tag :children => { :less_than => 5 }
- # there is no 'ul' tag with less than 2 children
- assert_no_tag :children => { :less_than => 2 }, :tag => "ul"
- end
-
- def test_assert_tag_children_greater_than
- process :test_html_output
-
- # there is a 'body' tag with more than 1 children
- assert_tag :children => { :greater_than => 1 }, :tag => "body"
- # there is no tag with more than 10 children
- assert_no_tag :children => { :greater_than => 10 }
- end
-
- def test_assert_tag_children_only
- process :test_html_output
-
- # there is a tag containing only one child with an id of 'foo'
- assert_tag :children => { :count => 1,
- :only => { :attributes => { :id => "foo" } } }
- # there is no tag containing only one 'li' child
- assert_no_tag :children => { :count => 1, :only => { :tag => "li" } }
- end
-
- def test_assert_tag_content
- process :test_html_output
-
- # the output contains the string "Name"
- assert_tag :content => /Name/
- # the output does not contain the string "test"
- assert_no_tag :content => /test/
- end
-
- def test_assert_tag_multiple
- process :test_html_output
-
- # there is a 'div', id='bar', with an immediate child whose 'action'
- # attribute matches the regexp /somewhere/.
- assert_tag :tag => "div", :attributes => { :id => "bar" },
- :child => { :attributes => { :action => /somewhere/ } }
-
- # there is no 'div', id='foo', with a 'ul' child with more than
- # 2 "li" children.
- assert_no_tag :tag => "div", :attributes => { :id => "foo" },
- :child => {
- :tag => "ul",
- :children => { :greater_than => 2,
- :only => { :tag => "li" } } }
- end
-
- def test_assert_tag_children_without_content
- process :test_html_output
-
- # there is a form tag with an 'input' child which is a self closing tag
- assert_tag :tag => "form",
- :children => { :count => 1,
- :only => { :tag => "input" } }
-
- # the body tag has an 'a' child which in turn has an 'img' child
- assert_tag :tag => "body",
- :children => { :count => 1,
- :only => { :tag => "a",
- :children => { :count => 1,
- :only => { :tag => "img" } } } }
- end
-
- def test_assert_tag_attribute_matching
- @response.body = ''
- assert_tag :tag => 'input',
- :attributes => { :name => /my/, :type => 'text' }
- assert_no_tag :tag => 'input',
- :attributes => { :name => 'my', :type => 'text' }
- assert_no_tag :tag => 'input',
- :attributes => { :name => /^my$/, :type => 'text' }
- end
-
- def test_assert_tag_content_matching
- @response.body = "
hello world
"
- assert_tag :tag => "p", :content => "hello world"
- assert_tag :tag => "p", :content => /hello/
- assert_no_tag :tag => "p", :content => "hello"
- end
-
- def test_assert_generates
- assert_generates 'controller/action/5', :controller => 'controller', :action => 'action', :id => '5'
- assert_generates 'controller/action/7', {:id => "7"}, {:controller => "controller", :action => "action"}
- assert_generates 'controller/action/5', {:controller => "controller", :action => "action", :id => "5", :name => "bob"}, {}, {:name => "bob"}
- assert_generates 'controller/action/7', {:id => "7", :name => "bob"}, {:controller => "controller", :action => "action"}, {:name => "bob"}
- assert_generates 'controller/action/7', {:id => "7"}, {:controller => "controller", :action => "action", :name => "bob"}, {}
- end
-
- def test_assert_routing
- assert_routing 'content', :controller => 'content', :action => 'index'
- end
-
- def test_assert_routing_in_module
- assert_routing 'admin/user', :controller => 'admin/user', :action => 'index'
- end
-
- def test_params_passing
- get :test_params, :page => {:name => "Page name", :month => '4', :year => '2004', :day => '6'}
- parsed_params = eval(@response.body)
- assert_equal(
- {'controller' => 'test_test/test', 'action' => 'test_params',
- 'page' => {'name' => "Page name", 'month' => '4', 'year' => '2004', 'day' => '6'}},
- parsed_params
- )
- end
-
- def test_id_converted_to_string
- get :test_params, :id => 20, :foo => Object.new
- assert_kind_of String, @request.path_parameters['id']
- end
-
- def test_array_path_parameter_handled_properly
- with_routing do |set|
- set.draw do |map|
- map.connect 'file/*path', :controller => 'test_test/test', :action => 'test_params'
- map.connect ':controller/:action/:id'
- end
-
- get :test_params, :path => ['hello', 'world']
- assert_equal ['hello', 'world'], @request.path_parameters['path']
- assert_equal 'hello/world', @request.path_parameters['path'].to_s
- end
- end
-
- def test_assert_realistic_path_parameters
- get :test_params, :id => 20, :foo => Object.new
-
- # All elements of path_parameters should use string keys
- @request.path_parameters.keys.each do |key|
- assert_kind_of String, key
- end
- end
-
- def test_with_routing_places_routes_back
- assert ActionController::Routing::Routes
- routes_id = ActionController::Routing::Routes.object_id
-
- begin
- with_routing { raise 'fail' }
- fail 'Should not be here.'
- rescue RuntimeError
- end
-
- assert ActionController::Routing::Routes
- assert_equal routes_id, ActionController::Routing::Routes.object_id
- end
-
- def test_remote_addr
- get :test_remote_addr
- assert_equal "0.0.0.0", @response.body
-
- @request.remote_addr = "192.0.0.1"
- get :test_remote_addr
- assert_equal "192.0.0.1", @response.body
- end
-
- def test_header_properly_reset_after_remote_http_request
- xhr :get, :test_params
- assert_nil @request.env['HTTP_X_REQUESTED_WITH']
- end
-
- def test_header_properly_reset_after_get_request
- get :test_params
- @request.recycle!
- assert_nil @request.instance_variable_get("@request_method")
- end
-
- %w(controller response request).each do |variable|
- %w(get post put delete head process).each do |method|
- define_method("test_#{variable}_missing_for_#{method}_raises_error") do
- remove_instance_variable "@#{variable}"
- begin
- send(method, :test_remote_addr)
- assert false, "expected RuntimeError, got nothing"
- rescue RuntimeError => error
- assert true
- assert_match %r{@#{variable} is nil}, error.message
- rescue => error
- assert false, "expected RuntimeError, got #{error.class}"
- end
- end
- end
- end
-
- FILES_DIR = File.dirname(__FILE__) + '/../fixtures/multipart'
-
- def test_test_uploaded_file
- filename = 'mona_lisa.jpg'
- path = "#{FILES_DIR}/#{filename}"
- content_type = 'image/png'
-
- file = ActionController::TestUploadedFile.new(path, content_type)
- assert_equal filename, file.original_filename
- assert_equal content_type, file.content_type
- assert_equal file.path, file.local_path
- assert_equal File.read(path), file.read
- end
-
- def test_fixture_file_upload
- post :test_file_upload, :file => fixture_file_upload(FILES_DIR + "/mona_lisa.jpg", "image/jpg")
- assert_equal 159528, @response.body
- end
-
- def test_test_uploaded_file_exception_when_file_doesnt_exist
- assert_raise(RuntimeError) { ActionController::TestUploadedFile.new('non_existent_file') }
- end
-
- def test_assert_redirected_to_symbol
- with_foo_routing do |set|
- assert_deprecated(/generate_url.*redirect_to/) do
- get :redirect_to_symbol
- end
- assert_response :redirect
- assert_redirected_to :generate_url
- end
- end
-
- def test_assert_follow_redirect_to_same_controller
- with_foo_routing do |set|
- get :redirect_to_same_controller
- assert_response :redirect
- assert_redirected_to :controller => 'test_test/test', :action => 'test_uri', :id => 5
- assert_nothing_raised { follow_redirect }
- end
- end
-
- def test_assert_follow_redirect_to_different_controller
- with_foo_routing do |set|
- get :redirect_to_different_controller
- assert_response :redirect
- assert_redirected_to :controller => 'fail', :id => 5
- assert_raise(RuntimeError) { follow_redirect }
- end
- end
-
- def test_redirect_url_only_cares_about_location_header
- get :create
- assert_response :created
-
- # Redirect url doesn't care that it wasn't a :redirect response.
- assert_equal 'created resource', @response.redirect_url
- assert_equal @response.redirect_url, redirect_to_url
-
- # Must be a :redirect response.
- assert_raise(Test::Unit::AssertionFailedError) do
- assert_redirected_to 'created resource'
- end
- end
-
- protected
- def with_foo_routing
- with_routing do |set|
- set.draw do |map|
- map.generate_url 'foo', :controller => 'test'
- map.connect ':controller/:action/:id'
- end
- yield set
- end
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/url_rewriter_test.rb b/tracks/vendor/rails/actionpack/test/controller/url_rewriter_test.rb
deleted file mode 100644
index 882add49..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/url_rewriter_test.rb
+++ /dev/null
@@ -1,115 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class UrlRewriterTests < Test::Unit::TestCase
- def setup
- @request = ActionController::TestRequest.new
- @params = {}
- @rewriter = ActionController::UrlRewriter.new(@request, @params)
- end
-
- def test_overwrite_params
- @params[:controller] = 'hi'
- @params[:action] = 'bye'
- @params[:id] = '2'
-
- assert_equal '/hi/hi/2', @rewriter.rewrite(:only_path => true, :overwrite_params => {:action => 'hi'})
- u = @rewriter.rewrite(:only_path => false, :overwrite_params => {:action => 'hi'})
- assert_match %r(/hi/hi/2$), u
- end
-
-
- private
- def split_query_string(str)
- [str[0].chr] + str[1..-1].split(/&/).sort
- end
-
- def assert_query_equal(q1, q2)
- assert_equal(split_query_string(q1), split_query_string(q2))
- end
-end
-
-class UrlWriterTests < Test::Unit::TestCase
-
- class W
- include ActionController::UrlWriter
- end
-
- def teardown
- W.default_url_options.clear
- end
-
- def add_host!
- W.default_url_options[:host] = 'www.basecamphq.com'
- end
-
- def test_exception_is_thrown_without_host
- assert_raises RuntimeError do
- W.new.url_for :controller => 'c', :action => 'a', :id => 'i'
- end
- end
-
- def test_default_host
- add_host!
- assert_equal('http://www.basecamphq.com/c/a/i',
- W.new.url_for(:controller => 'c', :action => 'a', :id => 'i')
- )
- end
-
- def test_host_may_be_overridden
- add_host!
- assert_equal('http://37signals.basecamphq.com/c/a/i',
- W.new.url_for(:host => '37signals.basecamphq.com', :controller => 'c', :action => 'a', :id => 'i')
- )
- end
-
- def test_port
- add_host!
- assert_equal('http://www.basecamphq.com:3000/c/a/i',
- W.new.url_for(:controller => 'c', :action => 'a', :id => 'i', :port => 3000)
- )
- end
-
- def test_protocol
- add_host!
- assert_equal('https://www.basecamphq.com/c/a/i',
- W.new.url_for(:controller => 'c', :action => 'a', :id => 'i', :protocol => 'https')
- )
- end
-
- def test_named_route
- ActionController::Routing::Routes.draw do |map|
- map.home '/home/sweet/home/:user', :controller => 'home', :action => 'index'
- map.connect ':controller/:action/:id'
- end
-
- # We need to create a new class in order to install the new named route.
- kls = Class.new { include ActionController::UrlWriter }
- controller = kls.new
- assert controller.respond_to?(:home_url)
- assert_equal 'http://www.basecamphq.com/home/sweet/home/again',
- controller.send(:home_url, :host => 'www.basecamphq.com', :user => 'again')
-
- assert_equal("/home/sweet/home/alabama", controller.send(:home_path, :user => 'alabama', :host => 'unused'))
- ensure
- ActionController::Routing::Routes.load!
- end
-
- def test_only_path
- ActionController::Routing::Routes.draw do |map|
- map.home '/home/sweet/home/:user', :controller => 'home', :action => 'index'
- map.connect ':controller/:action/:id'
- end
-
- # We need to create a new class in order to install the new named route.
- kls = Class.new { include ActionController::UrlWriter }
- controller = kls.new
- assert controller.respond_to?(:home_url)
- assert_equal '/brave/new/world',
- controller.send(:url_for, :controller => 'brave', :action => 'new', :id => 'world', :only_path => true)
-
- assert_equal("/home/sweet/home/alabama", controller.send(:home_url, :user => 'alabama', :host => 'unused', :only_path => true))
- ensure
- ActionController::Routing::Routes.load!
- end
-
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/verification_test.rb b/tracks/vendor/rails/actionpack/test/controller/verification_test.rb
deleted file mode 100644
index 05012cf7..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/verification_test.rb
+++ /dev/null
@@ -1,227 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-
-class VerificationTest < Test::Unit::TestCase
- class TestController < ActionController::Base
- verify :only => :guarded_one, :params => "one",
- :add_flash => { :error => 'unguarded' },
- :redirect_to => { :action => "unguarded" }
-
- verify :only => :guarded_two, :params => %w( one two ),
- :redirect_to => { :action => "unguarded" }
-
- verify :only => :guarded_with_flash, :params => "one",
- :add_flash => { :notice => "prereqs failed" },
- :redirect_to => { :action => "unguarded" }
-
- verify :only => :guarded_in_session, :session => "one",
- :redirect_to => { :action => "unguarded" }
-
- verify :only => [:multi_one, :multi_two], :session => %w( one two ),
- :redirect_to => { :action => "unguarded" }
-
- verify :only => :guarded_by_method, :method => :post,
- :redirect_to => { :action => "unguarded" }
-
- verify :only => :guarded_by_xhr, :xhr => true,
- :redirect_to => { :action => "unguarded" }
-
- verify :only => :guarded_by_not_xhr, :xhr => false,
- :redirect_to => { :action => "unguarded" }
-
- before_filter :unconditional_redirect, :only => :two_redirects
- verify :only => :two_redirects, :method => :post,
- :redirect_to => { :action => "unguarded" }
-
- verify :only => :must_be_post, :method => :post, :render => { :status => 405, :text => "Must be post" }, :add_headers => { "Allow" => "POST" }
-
- def guarded_one
- render :text => "#{params[:one]}"
- end
-
- def guarded_with_flash
- render :text => "#{params[:one]}"
- end
-
- def guarded_two
- render :text => "#{params[:one]}:#{params[:two]}"
- end
-
- def guarded_in_session
- render :text => "#{session["one"]}"
- end
-
- def multi_one
- render :text => "#{session["one"]}:#{session["two"]}"
- end
-
- def multi_two
- render :text => "#{session["two"]}:#{session["one"]}"
- end
-
- def guarded_by_method
- render :text => "#{request.method}"
- end
-
- def guarded_by_xhr
- render :text => "#{request.xhr?}"
- end
-
- def guarded_by_not_xhr
- render :text => "#{request.xhr?}"
- end
-
- def unguarded
- render :text => "#{params[:one]}"
- end
-
- def two_redirects
- render :nothing => true
- end
-
- def must_be_post
- render :text => "Was a post!"
- end
-
- protected
- def rescue_action(e) raise end
-
- def unconditional_redirect
- redirect_to :action => "unguarded"
- end
- end
-
- def setup
- @controller = TestController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- end
-
- def test_guarded_one_with_prereqs
- get :guarded_one, :one => "here"
- assert_equal "here", @response.body
- end
-
- def test_guarded_one_without_prereqs
- get :guarded_one
- assert_redirected_to :action => "unguarded"
- assert_equal 'unguarded', flash[:error]
- end
-
- def test_guarded_with_flash_with_prereqs
- get :guarded_with_flash, :one => "here"
- assert_equal "here", @response.body
- assert flash.empty?
- end
-
- def test_guarded_with_flash_without_prereqs
- get :guarded_with_flash
- assert_redirected_to :action => "unguarded"
- assert_equal "prereqs failed", flash[:notice]
- end
-
- def test_guarded_two_with_prereqs
- get :guarded_two, :one => "here", :two => "there"
- assert_equal "here:there", @response.body
- end
-
- def test_guarded_two_without_prereqs_one
- get :guarded_two, :two => "there"
- assert_redirected_to :action => "unguarded"
- end
-
- def test_guarded_two_without_prereqs_two
- get :guarded_two, :one => "here"
- assert_redirected_to :action => "unguarded"
- end
-
- def test_guarded_two_without_prereqs_both
- get :guarded_two
- assert_redirected_to :action => "unguarded"
- end
-
- def test_unguarded_with_params
- get :unguarded, :one => "here"
- assert_equal "here", @response.body
- end
-
- def test_unguarded_without_params
- get :unguarded
- assert_equal "", @response.body
- end
-
- def test_guarded_in_session_with_prereqs
- get :guarded_in_session, {}, "one" => "here"
- assert_equal "here", @response.body
- end
-
- def test_guarded_in_session_without_prereqs
- get :guarded_in_session
- assert_redirected_to :action => "unguarded"
- end
-
- def test_multi_one_with_prereqs
- get :multi_one, {}, "one" => "here", "two" => "there"
- assert_equal "here:there", @response.body
- end
-
- def test_multi_one_without_prereqs
- get :multi_one
- assert_redirected_to :action => "unguarded"
- end
-
- def test_multi_two_with_prereqs
- get :multi_two, {}, "one" => "here", "two" => "there"
- assert_equal "there:here", @response.body
- end
-
- def test_multi_two_without_prereqs
- get :multi_two
- assert_redirected_to :action => "unguarded"
- end
-
- def test_guarded_by_method_with_prereqs
- post :guarded_by_method
- assert_equal "post", @response.body
- end
-
- def test_guarded_by_method_without_prereqs
- get :guarded_by_method
- assert_redirected_to :action => "unguarded"
- end
-
- def test_guarded_by_xhr_with_prereqs
- xhr :post, :guarded_by_xhr
- assert_equal "true", @response.body
- end
-
- def test_guarded_by_xhr_without_prereqs
- get :guarded_by_xhr
- assert_redirected_to :action => "unguarded"
- end
-
- def test_guarded_by_not_xhr_with_prereqs
- get :guarded_by_not_xhr
- assert_equal "false", @response.body
- end
-
- def test_guarded_by_not_xhr_without_prereqs
- xhr :post, :guarded_by_not_xhr
- assert_redirected_to :action => "unguarded"
- end
-
- def test_guarded_post_and_calls_render_succeeds
- post :must_be_post
- assert_equal "Was a post!", @response.body
- end
-
- def test_guarded_post_and_calls_render_fails_and_sets_allow_header
- get :must_be_post
- assert_response 405
- assert_equal "Must be post", @response.body
- assert_equal "POST", @response.headers["Allow"]
- end
-
- def test_second_redirect
- assert_nothing_raised { get :two_redirects }
- end
-end
diff --git a/tracks/vendor/rails/actionpack/test/controller/webservice_test.rb b/tracks/vendor/rails/actionpack/test/controller/webservice_test.rb
deleted file mode 100644
index e60e3a84..00000000
--- a/tracks/vendor/rails/actionpack/test/controller/webservice_test.rb
+++ /dev/null
@@ -1,248 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-require 'stringio'
-
-class WebServiceTest < Test::Unit::TestCase
-
- class MockCGI < CGI #:nodoc:
- attr_accessor :stdinput, :stdoutput, :env_table
-
- def initialize(env, data = '')
- self.env_table = env
- self.stdinput = StringIO.new(data)
- self.stdoutput = StringIO.new
- super()
- end
- end
-
-
- class TestController < ActionController::Base
- session :off
-
- def assign_parameters
- if params[:full]
- render :text => dump_params_keys
- else
- render :text => (params.keys - ['controller', 'action']).sort.join(", ")
- end
- end
-
- def dump_params_keys(hash=params)
- hash.keys.sort.inject("") do |s, k|
- value = hash[k]
- value = Hash === value ? "(#{dump_params_keys(value)})" : ""
- s << ", " unless s.empty?
- s << "#{k}#{value}"
- end
- end
-
- def rescue_action(e) raise end
- end
-
- def setup
- @controller = TestController.new
- ActionController::Base.param_parsers.clear
- ActionController::Base.param_parsers[Mime::XML] = :xml_node
- end
-
- def test_check_parameters
- process('GET')
- assert_equal '', @controller.response.body
- end
-
- def test_post_xml
- process('POST', 'application/xml', 'content...')
-
- assert_equal 'entry', @controller.response.body
- assert @controller.params.has_key?(:entry)
- assert_equal 'content...', @controller.params["entry"].summary.node_value
- assert_equal 'true', @controller.params["entry"]['attributed']
- end
-
- def test_put_xml
- process('PUT', 'application/xml', 'content...')
-
- assert_equal 'entry', @controller.response.body
- assert @controller.params.has_key?(:entry)
- assert_equal 'content...', @controller.params["entry"].summary.node_value
- assert_equal 'true', @controller.params["entry"]['attributed']
- end
-
- def test_register_and_use_yaml
- ActionController::Base.param_parsers[Mime::YAML] = Proc.new { |d| YAML.load(d) }
- process('POST', 'application/x-yaml', {"entry" => "loaded from yaml"}.to_yaml)
- assert_equal 'entry', @controller.response.body
- assert @controller.params.has_key?(:entry)
- assert_equal 'loaded from yaml', @controller.params["entry"]
- end
-
- def test_register_and_use_yaml_as_symbol
- ActionController::Base.param_parsers[Mime::YAML] = :yaml
- process('POST', 'application/x-yaml', {"entry" => "loaded from yaml"}.to_yaml)
- assert_equal 'entry', @controller.response.body
- assert @controller.params.has_key?(:entry)
- assert_equal 'loaded from yaml', @controller.params["entry"]
- end
-
- def test_register_and_use_xml_simple
- ActionController::Base.param_parsers[Mime::XML] = Proc.new { |data| XmlSimple.xml_in(data, 'ForceArray' => false) }
- process('POST', 'application/xml', 'content...SimpleXml' )
- assert_equal 'summary, title', @controller.response.body
- assert @controller.params.has_key?(:summary)
- assert @controller.params.has_key?(:title)
- assert_equal 'content...', @controller.params["summary"]
- assert_equal 'SimpleXml', @controller.params["title"]
- end
-
- def test_use_xml_ximple_with_empty_request
- ActionController::Base.param_parsers[Mime::XML] = :xml_simple
- assert_nothing_raised { process('POST', 'application/xml', "") }
- assert_equal "", @controller.response.body
- end
-
- def test_deprecated_request_methods
- process('POST', 'application/x-yaml')
- assert_equal Mime::YAML, @controller.request.content_type
- assert_equal true, @controller.request.post?
- assert_equal :yaml, @controller.request.post_format
- assert_equal true, @controller.request.yaml_post?
- assert_equal false, @controller.request.xml_post?
- end
-
- def test_dasherized_keys_as_xml
- ActionController::Base.param_parsers[Mime::XML] = :xml_simple
- process('POST', 'application/xml', "\n...\n", true)
- assert_equal 'action, controller, first_key(sub_key), full', @controller.response.body
- assert_equal "...", @controller.params[:first_key][:sub_key]
- end
-
- def test_typecast_as_xml
- ActionController::Base.param_parsers[Mime::XML] = :xml_simple
- process('POST', 'application/xml', <<-XML)
-
- 15
- false
- true
- 2005-03-17
- 2005-03-17T21:41:07Z
- unparsed
- 1
- hello
- 1974-07-25
-
- XML
- params = @controller.params
- assert_equal 15, params[:data][:a]
- assert_equal false, params[:data][:b]
- assert_equal true, params[:data][:c]
- assert_equal Date.new(2005,3,17), params[:data][:d]
- assert_equal Time.utc(2005,3,17,21,41,7), params[:data][:e]
- assert_equal "unparsed", params[:data][:f]
- assert_equal [1, "hello", Date.new(1974,7,25)], params[:data][:g]
- end
-
- def test_entities_unescaped_as_xml_simple
- ActionController::Base.param_parsers[Mime::XML] = :xml_simple
- process('POST', 'application/xml', <<-XML)
- <foo "bar's" & friends>
- XML
- assert_equal %(), @controller.params[:data]
- end
-
- def test_typecast_as_yaml
- ActionController::Base.param_parsers[Mime::YAML] = :yaml
- process('POST', 'application/x-yaml', <<-YAML)
- ---
- data:
- a: 15
- b: false
- c: true
- d: 2005-03-17
- e: 2005-03-17T21:41:07Z
- f: unparsed
- g:
- - 1
- - hello
- - 1974-07-25
- YAML
- params = @controller.params
- assert_equal 15, params[:data][:a]
- assert_equal false, params[:data][:b]
- assert_equal true, params[:data][:c]
- assert_equal Date.new(2005,3,17), params[:data][:d]
- assert_equal Time.utc(2005,3,17,21,41,7), params[:data][:e]
- assert_equal "unparsed", params[:data][:f]
- assert_equal [1, "hello", Date.new(1974,7,25)], params[:data][:g]
- end
-
- private
-
- def process(verb, content_type = 'application/x-www-form-urlencoded', data = '', full=false)
-
- cgi = MockCGI.new({
- 'REQUEST_METHOD' => verb,
- 'CONTENT_TYPE' => content_type,
- 'QUERY_STRING' => "action=assign_parameters&controller=webservicetest/test#{"&full=1" if full}",
- "REQUEST_URI" => "/",
- "HTTP_HOST" => 'testdomain.com',
- "CONTENT_LENGTH" => data.size,
- "SERVER_PORT" => "80",
- "HTTPS" => "off"}, data)
-
- @controller.send(:process, ActionController::CgiRequest.new(cgi, {}), ActionController::CgiResponse.new(cgi))
- end
-
-end
-
-
-class XmlNodeTest < Test::Unit::TestCase
- def test_all
- xn = XmlNode.from_xml(%{
-
-
- With O'Reilly and Adaptive Path
-
-
- Staying at the Savoy
-
-
-
-
-
-
-
-
- }
- )
- assert_equal 'UTF-8', xn.node.document.encoding
- assert_equal '1.0', xn.node.document.version
- assert_equal 'true', xn['success']
- assert_equal 'response', xn.node_name
- assert_equal 'Ajax Summit', xn.page['title']
- assert_equal '1133', xn.page['id']
- assert_equal "With O'Reilly and Adaptive Path", xn.page.description.node_value
- assert_equal nil, xn.nonexistent
- assert_equal "Staying at the Savoy", xn.page.notes.note.node_value.strip
- assert_equal 'Technology', xn.page.tags.tag[0]['name']
- assert_equal 'Travel', xn.page.tags.tag[1][:name]
- matches = xn.xpath('//@id').map{ |id| id.to_i }
- assert_equal [4, 5, 1020, 1133], matches.sort
- matches = xn.xpath('//tag').map{ |tag| tag['name'] }
- assert_equal ['Technology', 'Travel'], matches.sort
- assert_equal "Ajax Summit", xn.page['title']
- xn.page['title'] = 'Ajax Summit V2'
- assert_equal "Ajax Summit V2", xn.page['title']
- assert_equal "Staying at the Savoy", xn.page.notes.note.node_value.strip
- xn.page.notes.note.node_value = "Staying at the Ritz"
- assert_equal "Staying at the Ritz", xn.page.notes.note.node_value.strip
- assert_equal '5', xn.page.tags.tag[1][:id]
- xn.page.tags.tag[1]['id'] = '7'
- assert_equal '7', xn.page.tags.tag[1]['id']
- end
-
-
- def test_small_entry
- node = XmlNode.from_xml('hi')
- assert_equal 'hi', node.node_value
- end
-
-end
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/addresses/list.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/addresses/list.rhtml
deleted file mode 100644
index c75e01ee..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/addresses/list.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-We only need to get this far!
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/companies.yml b/tracks/vendor/rails/actionpack/test/fixtures/companies.yml
deleted file mode 100644
index 707f72ab..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/companies.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-thirty_seven_signals:
- id: 1
- name: 37Signals
- rating: 4
-
-TextDrive:
- id: 2
- name: TextDrive
- rating: 4
-
-PlanetArgon:
- id: 3
- name: Planet Argon
- rating: 4
-
-Google:
- id: 4
- name: Google
- rating: 4
-
-Ionist:
- id: 5
- name: Ioni.st
- rating: 4
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/company.rb b/tracks/vendor/rails/actionpack/test/fixtures/company.rb
deleted file mode 100644
index 0d1c29b9..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/company.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-class Company < ActiveRecord::Base
- attr_protected :rating
- set_sequence_name :companies_nonstd_seq
-
- validates_presence_of :name
- def validate
- errors.add('rating', 'rating should not be 2') if rating == 2
- end
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml
deleted file mode 100644
index 25dc7468..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-world
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml
deleted file mode 100644
index c7926d48..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= 'hello world!' %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs b/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs
deleted file mode 100644
index 8d614d04..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs
+++ /dev/null
@@ -1 +0,0 @@
-page.alert 'hello world!'
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml b/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml
deleted file mode 100644
index 598d62e2..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml
+++ /dev/null
@@ -1 +0,0 @@
-xml.p "Hello world!"
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql b/tracks/vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql
deleted file mode 100644
index b4e7539d..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql
+++ /dev/null
@@ -1,42 +0,0 @@
-CREATE TABLE 'companies' (
- 'id' INTEGER PRIMARY KEY NOT NULL,
- 'name' TEXT DEFAULT NULL,
- 'rating' INTEGER DEFAULT 1
-);
-
-CREATE TABLE 'replies' (
- 'id' INTEGER PRIMARY KEY NOT NULL,
- 'content' text,
- 'created_at' datetime,
- 'updated_at' datetime,
- 'topic_id' integer
-);
-
-CREATE TABLE 'topics' (
- 'id' INTEGER PRIMARY KEY NOT NULL,
- 'title' varchar(255),
- 'subtitle' varchar(255),
- 'content' text,
- 'created_at' datetime,
- 'updated_at' datetime
-);
-
-CREATE TABLE 'developers' (
- 'id' INTEGER PRIMARY KEY NOT NULL,
- 'name' TEXT DEFAULT NULL,
- 'salary' INTEGER DEFAULT 70000,
- 'created_at' DATETIME DEFAULT NULL,
- 'updated_at' DATETIME DEFAULT NULL
-);
-
-CREATE TABLE 'projects' (
- 'id' INTEGER PRIMARY KEY NOT NULL,
- 'name' TEXT DEFAULT NULL
-);
-
-CREATE TABLE 'developers_projects' (
- 'developer_id' INTEGER NOT NULL,
- 'project_id' INTEGER NOT NULL,
- 'joined_on' DATE DEFAULT NULL,
- 'access_level' INTEGER DEFAULT 1
-);
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_ivar.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_ivar.rhtml
deleted file mode 100644
index 4e8a2d80..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_ivar.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @cookies[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_method.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_method.rhtml
deleted file mode 100644
index 68e88bb7..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_method.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= cookies[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_ivar.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_ivar.rhtml
deleted file mode 100644
index 4b4782b2..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_ivar.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @flash[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_method.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_method.rhtml
deleted file mode 100644
index f7f9d091..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_method.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= flash[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_ivar.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_ivar.rhtml
deleted file mode 100644
index 1176c93a..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_ivar.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @headers[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_method.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_method.rhtml
deleted file mode 100644
index 308c4eb6..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_method.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= headers[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_ivar.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_ivar.rhtml
deleted file mode 100644
index 1eea6875..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_ivar.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @params[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_method.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_method.rhtml
deleted file mode 100644
index 7e349b4c..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_method.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= params[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_ivar.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_ivar.rhtml
deleted file mode 100644
index a1680c23..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_ivar.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @request.method %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_method.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_method.rhtml
deleted file mode 100644
index 0c74cf1c..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_method.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= request.method %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_ivar.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_ivar.rhtml
deleted file mode 100644
index 2f12d2ce..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_ivar.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @response.body %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_method.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_method.rhtml
deleted file mode 100644
index 948c7592..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_method.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= response.body %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_ivar.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_ivar.rhtml
deleted file mode 100644
index 3acc1b85..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_ivar.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @session[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_method.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_method.rhtml
deleted file mode 100644
index a899387c..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_method.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= session[:test] %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/developer.rb b/tracks/vendor/rails/actionpack/test/fixtures/developer.rb
deleted file mode 100644
index f5e5b901..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/developer.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-class Developer < ActiveRecord::Base
- has_and_belongs_to_many :projects
-end
-
-class DeVeLoPeR < ActiveRecord::Base
- set_table_name "developers"
-end
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/developers.yml b/tracks/vendor/rails/actionpack/test/fixtures/developers.yml
deleted file mode 100644
index 308bf75d..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/developers.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-david:
- id: 1
- name: David
- salary: 80000
-
-jamis:
- id: 2
- name: Jamis
- salary: 150000
-
-<% for digit in 3..10 %>
-dev_<%= digit %>:
- id: <%= digit %>
- name: fixture_<%= digit %>
- salary: 100000
-<% end %>
-
-poor_jamis:
- id: 11
- name: Jamis
- salary: 9000
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/developers_projects.yml b/tracks/vendor/rails/actionpack/test/fixtures/developers_projects.yml
deleted file mode 100644
index cee359c7..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/developers_projects.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-david_action_controller:
- developer_id: 1
- project_id: 2
- joined_on: 2004-10-10
-
-david_active_record:
- developer_id: 1
- project_id: 1
- joined_on: 2004-10-10
-
-jamis_active_record:
- developer_id: 2
- project_id: 1
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.rhtml
deleted file mode 100644
index 1ebfbe25..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-Living in a nested world
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb b/tracks/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb
deleted file mode 100644
index 7104ff37..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-module AbcHelper
- def bare_a() end
- def bare_b() end
- def bare_c() end
-end
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb b/tracks/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb
deleted file mode 100644
index bf60d9db..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-module Fun::GamesHelper
- def stratego() "Iz guuut!" end
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb b/tracks/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb
deleted file mode 100644
index 1890f6c9..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-module Fun::PDFHelper
- def foobar() 'baz' end
-end
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml
deleted file mode 100644
index 5f86a7de..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-controller_name_space/nested.rhtml <%= yield %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml
deleted file mode 100644
index 1bc7cbda..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-item.rhtml <%= yield %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml
deleted file mode 100644
index c0f2642b..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-layout_test.rhtml <%= yield %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab b/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab
deleted file mode 100644
index 018abfb0..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab
+++ /dev/null
@@ -1 +0,0 @@
-Mab
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml
deleted file mode 100644
index bbccf091..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-hello.rhtml
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/layouts/builder.rxml b/tracks/vendor/rails/actionpack/test/fixtures/layouts/builder.rxml
deleted file mode 100644
index 729af4b8..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/layouts/builder.rxml
+++ /dev/null
@@ -1,3 +0,0 @@
-xml.wrapper do
- xml << @content_for_layout
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/layouts/standard.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/layouts/standard.rhtml
deleted file mode 100644
index 368764e6..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/layouts/standard.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @content_for_layout %><%= @variable_for_layout %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.rhtml
deleted file mode 100644
index 187aab07..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.rhtml
+++ /dev/null
@@ -1,2 +0,0 @@
-<%= @title || @content_for_title %>
-<%= @content_for_layout -%>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/layouts/yield.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/layouts/yield.rhtml
deleted file mode 100644
index 482dc902..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/layouts/yield.rhtml
+++ /dev/null
@@ -1,2 +0,0 @@
-<%= yield :title %>
-<%= yield %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/multipart/binary_file b/tracks/vendor/rails/actionpack/test/fixtures/multipart/binary_file
deleted file mode 100644
index 7e4c68c6..00000000
Binary files a/tracks/vendor/rails/actionpack/test/fixtures/multipart/binary_file and /dev/null differ
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/multipart/large_text_file b/tracks/vendor/rails/actionpack/test/fixtures/multipart/large_text_file
deleted file mode 100644
index 7f97fb1d..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/multipart/large_text_file
+++ /dev/null
@@ -1,10 +0,0 @@
---AaB03x
-Content-Disposition: form-data; name="foo"
-
-bar
---AaB03x
-Content-Disposition: form-data; name="file"; filename="file.txt"
-Content-Type: text/plain
-
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
---AaB03x--
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/multipart/mixed_files b/tracks/vendor/rails/actionpack/test/fixtures/multipart/mixed_files
deleted file mode 100644
index 5eba7a6b..00000000
Binary files a/tracks/vendor/rails/actionpack/test/fixtures/multipart/mixed_files and /dev/null differ
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg b/tracks/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg
deleted file mode 100644
index 5cf3bef3..00000000
Binary files a/tracks/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg and /dev/null differ
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/multipart/single_parameter b/tracks/vendor/rails/actionpack/test/fixtures/multipart/single_parameter
deleted file mode 100644
index 8962c354..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/multipart/single_parameter
+++ /dev/null
@@ -1,5 +0,0 @@
---AaB03x
-Content-Disposition: form-data; name="foo"
-
-bar
---AaB03x--
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/multipart/text_file b/tracks/vendor/rails/actionpack/test/fixtures/multipart/text_file
deleted file mode 100644
index e0367d68..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/multipart/text_file
+++ /dev/null
@@ -1,10 +0,0 @@
---AaB03x
-Content-Disposition: form-data; name="foo"
-
-bar
---AaB03x
-Content-Disposition: form-data; name="file"; filename="file.txt"
-Content-Type: text/plain
-
-contents
---AaB03x--
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/project.rb b/tracks/vendor/rails/actionpack/test/fixtures/project.rb
deleted file mode 100644
index 2b53d39e..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/project.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class Project < ActiveRecord::Base
- has_and_belongs_to_many :developers, :uniq => true
-end
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/projects.yml b/tracks/vendor/rails/actionpack/test/fixtures/projects.yml
deleted file mode 100644
index 02800c78..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/projects.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-action_controller:
- id: 2
- name: Active Controller
-
-active_record:
- id: 1
- name: Active Record
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/public/images/rails.png b/tracks/vendor/rails/actionpack/test/fixtures/public/images/rails.png
deleted file mode 100644
index b8441f18..00000000
Binary files a/tracks/vendor/rails/actionpack/test/fixtures/public/images/rails.png and /dev/null differ
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/replies.yml b/tracks/vendor/rails/actionpack/test/fixtures/replies.yml
deleted file mode 100644
index 284c9c07..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/replies.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-witty_retort:
- id: 1
- topic_id: 1
- content: Birdman is better!
- created_at: <%= 6.hours.ago.to_s(:db) %>
- updated_at: nil
-
-another:
- id: 2
- topic_id: 2
- content: Nuh uh!
- created_at: <%= 1.hour.ago.to_s(:db) %>
- updated_at: nil
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/reply.rb b/tracks/vendor/rails/actionpack/test/fixtures/reply.rb
deleted file mode 100644
index ea84042b..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/reply.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class Reply < ActiveRecord::Base
- belongs_to :topic, :include => [:replies]
-
- validates_presence_of :content
-end
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rhtml
deleted file mode 100644
index 84a84049..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-HTML for all_types_with_layout
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rjs b/tracks/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rjs
deleted file mode 100644
index b7aec7c5..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rjs
+++ /dev/null
@@ -1 +0,0 @@
-page << "RJS for all_types_with_layout"
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.rhtml
deleted file mode 100644
index fcb28ec7..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @content_for_layout %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rhtml
deleted file mode 100644
index 6769dd60..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-Hello world!
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rjs b/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rjs
deleted file mode 100644
index 469fcd8e..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rjs
+++ /dev/null
@@ -1 +0,0 @@
-page[:body].visual_effect :highlight
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rxml b/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rxml
deleted file mode 100644
index 598d62e2..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rxml
+++ /dev/null
@@ -1 +0,0 @@
-xml.p "Hello world!"
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rhtml
deleted file mode 100644
index 6769dd60..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-Hello world!
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rjs b/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rjs
deleted file mode 100644
index 469fcd8e..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rjs
+++ /dev/null
@@ -1 +0,0 @@
-page[:body].visual_effect :highlight
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rxml b/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rxml
deleted file mode 100644
index 598d62e2..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rxml
+++ /dev/null
@@ -1 +0,0 @@
-xml.p "Hello world!"
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.rhtml
deleted file mode 100644
index 8947726e..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-
Beautiful modules!
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/_customer.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/_customer.rhtml
deleted file mode 100644
index 872d8c44..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/_customer.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-Hello: <%= customer.name %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.rhtml
deleted file mode 100644
index 6acbcb20..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= greeting %>: <%= customer_greeting.name %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/_hash_object.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/_hash_object.rhtml
deleted file mode 100644
index 037a7368..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/_hash_object.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= hash_object[:first_name] %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/_hello.rxml b/tracks/vendor/rails/actionpack/test/fixtures/test/_hello.rxml
deleted file mode 100644
index ef52f632..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/_hello.rxml
+++ /dev/null
@@ -1 +0,0 @@
-xm.hello
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/_partial_only.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/_partial_only.rhtml
deleted file mode 100644
index a44b3eed..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/_partial_only.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-only partial
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/_person.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/_person.rhtml
deleted file mode 100644
index b2e56889..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/_person.rhtml
+++ /dev/null
@@ -1,2 +0,0 @@
-Second: <%= name %>
-Third: <%= @name %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.rhtml
deleted file mode 100644
index 36e896da..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.rhtml
+++ /dev/null
@@ -1,2 +0,0 @@
-<% @title = "Talking to the layout" -%>
-Action was here!
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/block_content_for.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/block_content_for.rhtml
deleted file mode 100644
index 95103373..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/block_content_for.rhtml
+++ /dev/null
@@ -1,2 +0,0 @@
-<% block_content_for :title do 'Putting stuff in the title!' end %>
-Great stuff!
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/capturing.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/capturing.rhtml
deleted file mode 100644
index 1addaa40..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/capturing.rhtml
+++ /dev/null
@@ -1,4 +0,0 @@
-<% days = capture do %>
- Dreamy days
-<% end %>
-<%= days %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/content_for.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/content_for.rhtml
deleted file mode 100644
index 0e47ca8c..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/content_for.rhtml
+++ /dev/null
@@ -1,2 +0,0 @@
-<% content_for :title do %>Putting stuff in the title!<% end %>
-Great stuff!
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs b/tracks/vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs
deleted file mode 100644
index 4b75a955..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs
+++ /dev/null
@@ -1,2 +0,0 @@
-page.remove 'person'
-page.visual_effect :highlight, "project-#{@project_id}"
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.rhtml
deleted file mode 100644
index 8b8a4492..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-The secret is <%= @secret %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs b/tracks/vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs
deleted file mode 100644
index e3004076..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs
+++ /dev/null
@@ -1,6 +0,0 @@
-page.select('.product').each do |value|
- page.visual_effect :highlight
- page.visual_effect :highlight, value
- page.sortable(value, :url => { :action => "order" })
- page.draggable(value)
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/erb_content_for.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/erb_content_for.rhtml
deleted file mode 100644
index c3bdd136..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/erb_content_for.rhtml
+++ /dev/null
@@ -1,2 +0,0 @@
-<% erb_content_for :title do %>Putting stuff in the title!<% end %>
-Great stuff!
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/greeting.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/greeting.rhtml
deleted file mode 100644
index 62fb0293..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/greeting.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-
This is grand!
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/hello.rxml b/tracks/vendor/rails/actionpack/test/fixtures/test/hello.rxml
deleted file mode 100644
index 82a4a310..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/hello.rxml
+++ /dev/null
@@ -1,4 +0,0 @@
-xml.html do
- xml.p "Hello #{@name}"
- xml << render_file("test/greeting")
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world.rhtml
deleted file mode 100644
index 6769dd60..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-Hello world!
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world.rxml b/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world.rxml
deleted file mode 100644
index bffd2191..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world.rxml
+++ /dev/null
@@ -1,3 +0,0 @@
-xml.html do
- xml.p "Hello"
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world_container.rxml b/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world_container.rxml
deleted file mode 100644
index e48d75c4..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world_container.rxml
+++ /dev/null
@@ -1,3 +0,0 @@
-xml.test do
- render :partial => 'hello', :locals => { :xm => xml }
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.rhtml
deleted file mode 100644
index 6769dd60..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-Hello world!
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.rxml b/tracks/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.rxml
deleted file mode 100644
index 02b14fe8..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.rxml
+++ /dev/null
@@ -1,11 +0,0 @@
-xml.html do
- xml.head do
- xml.title "Hello World"
- end
-
- xml.body do
- xml.p "abes"
- xml.p "monks"
- xml.p "wiseguys"
- end
-end
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/list.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/list.rhtml
deleted file mode 100644
index cd0ab45d..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/list.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-<%= @test_unchanged = 'goodbye' %><%= render_collection_of_partials "customer", @customers %><%= @test_unchanged %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.rxml b/tracks/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.rxml
deleted file mode 100644
index 6ff6db0f..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.rxml
+++ /dev/null
@@ -1,4 +0,0 @@
-content_for :title do
- 'Putting stuff in the title!'
-end
-xml << "\nGreat stuff!"
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.rhtml
deleted file mode 100644
index a5e964e3..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.rhtml
+++ /dev/null
@@ -1,4 +0,0 @@
-First: <%= @name %>
-<%= render :partial => "person", :locals => { :name => "Stephan" } -%>
-Fourth: <%= @name %>
-Fifth: <%= name %>
\ No newline at end of file
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.rhtml
deleted file mode 100644
index 8b8a4492..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-The secret is <%= @secret %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.rhtml
deleted file mode 100644
index ebe09fae..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-The secret is <%= secret %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.rhtml
deleted file mode 100644
index 6e267e86..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.rhtml
+++ /dev/null
@@ -1 +0,0 @@
-The value of foo is: ::<%= @foo %>::
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.rhtml b/tracks/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.rhtml
deleted file mode 100644
index fa3ef200..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.rhtml
+++ /dev/null
@@ -1,9 +0,0 @@
-<% replacement_function = update_element_function("products", :action => :update) do %>
-
Product 1
-
Product 2
-<% end %>
-<%= javascript_tag(replacement_function) %>
-
-<% update_element_function("status", :action => :update, :binding => binding) do %>
- You bought something!
-<% end %>
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/topic.rb b/tracks/vendor/rails/actionpack/test/fixtures/topic.rb
deleted file mode 100644
index 0beeecf2..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/topic.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class Topic < ActiveRecord::Base
- has_many :replies, :include => [:user], :dependent => :destroy
-end
diff --git a/tracks/vendor/rails/actionpack/test/fixtures/topics.yml b/tracks/vendor/rails/actionpack/test/fixtures/topics.yml
deleted file mode 100644
index 61ea02d7..00000000
--- a/tracks/vendor/rails/actionpack/test/fixtures/topics.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-futurama:
- id: 1
- title: Isnt futurama awesome?
- subtitle: It really is, isnt it.
- content: I like futurama
- created_at: <%= 1.day.ago.to_s(:db) %>
- updated_at:
-
-harvey_birdman:
- id: 2
- title: Harvey Birdman is the king of all men
- subtitle: yup
- content: It really is
- created_at: <%= 2.hours.ago.to_s(:db) %>
- updated_at:
-
-rails:
- id: 3
- title: Rails is nice
- subtitle: It makes me happy
- content: except when I have to hack internals to fix pagination. even then really.
- created_at: <%= 20.minutes.ago.to_s(:db) %>
diff --git a/tracks/vendor/rails/actionpack/test/template/active_record_helper_test.rb b/tracks/vendor/rails/actionpack/test/template/active_record_helper_test.rb
deleted file mode 100644
index c4e5ca66..00000000
--- a/tracks/vendor/rails/actionpack/test/template/active_record_helper_test.rb
+++ /dev/null
@@ -1,200 +0,0 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
-require File.dirname(__FILE__) + '/../../lib/action_view/helpers/date_helper'
-require File.dirname(__FILE__) + '/../../lib/action_view/helpers/form_helper'
-require File.dirname(__FILE__) + '/../../lib/action_view/helpers/text_helper'
-require File.dirname(__FILE__) + '/../../lib/action_view/helpers/tag_helper'
-require File.dirname(__FILE__) + '/../../lib/action_view/helpers/url_helper'
-require File.dirname(__FILE__) + '/../../lib/action_view/helpers/form_tag_helper'
-# require File.dirname(__FILE__) + '/../../lib/action_view/helpers/active_record_helper'
-
-class ActiveRecordHelperTest < Test::Unit::TestCase
- include ActionView::Helpers::FormHelper
- include ActionView::Helpers::ActiveRecordHelper
- include ActionView::Helpers::TextHelper
- include ActionView::Helpers::TagHelper
- include ActionView::Helpers::UrlHelper
- include ActionView::Helpers::FormTagHelper
-
- silence_warnings do
- Post = Struct.new("Post", :title, :author_name, :body, :secret, :written_on)
- Post.class_eval do
- alias_method :title_before_type_cast, :title unless respond_to?(:title_before_type_cast)
- alias_method :body_before_type_cast, :body unless respond_to?(:body_before_type_cast)
- alias_method :author_name_before_type_cast, :author_name unless respond_to?(:author_name_before_type_cast)
- end
-
- User = Struct.new("User", :email)
- User.class_eval do
- alias_method :email_before_type_cast, :email unless respond_to?(:email_before_type_cast)
- end
-
- Column = Struct.new("Column", :type, :name, :human_name)
- end
-
- def setup_post
- @post = Post.new
- def @post.errors
- Class.new {
- def on(field) field == "author_name" || field == "body" end
- def empty?() false end
- def count() 1 end
- def full_messages() [ "Author name can't be empty" ] end
- }.new
- end
-
- def @post.new_record?() true end
- def @post.to_param() nil end
-
- def @post.column_for_attribute(attr_name)
- Post.content_columns.select { |column| column.name == attr_name }.first
- end
-
- silence_warnings do
- def Post.content_columns() [ Column.new(:string, "title", "Title"), Column.new(:text, "body", "Body") ] end
- end
-
- @post.title = "Hello World"
- @post.author_name = ""
- @post.body = "Back to the hill and over it again!"
- @post.secret = 1
- @post.written_on = Date.new(2004, 6, 15)
- end
-
- def setup_user
- @user = User.new
- def @user.errors
- Class.new {
- def on(field) field == "email" end
- def empty?() false end
- def count() 1 end
- def full_messages() [ "User email can't be empty" ] end
- }.new
- end
-
- def @user.new_record?() true end
- def @user.to_param() nil end
-
- def @user.column_for_attribute(attr_name)
- User.content_columns.select { |column| column.name == attr_name }.first
- end
-
- silence_warnings do
- def User.content_columns() [ Column.new(:string, "email", "Email") ] end
- end
-
- @user.email = ""
- end
-
- def setup
- setup_post
- setup_user
-
- @controller = Object.new
- def @controller.url_for(options, *parameters_for_method_reference)
- options = options.symbolize_keys
-
- [options[:action], options[:id].to_param].compact.join('/')
- end
- end
-
- def test_generic_input_tag
- assert_dom_equal(
- %(), input("post", "title")
- )
- end
-
- def test_text_area_with_errors
- assert_dom_equal(
- %(),
- text_area("post", "body")
- )
- end
-
- def test_text_field_with_errors
- assert_dom_equal(
- %(),
- text_field("post", "author_name")
- )
- end
-
- def test_form_with_string
- assert_dom_equal(
- %(),
- form("post")
- )
-
- silence_warnings do
- class << @post
- def new_record?() false end
- def to_param() id end
- def id() 1 end
- end
- end
-
- assert_dom_equal(
- %(),
- form("post")
- )
- end
-
- def test_form_with_date
- silence_warnings do
- def Post.content_columns() [ Column.new(:date, "written_on", "Written on") ] end
- end
-
- assert_dom_equal(
- %(),
- form("post")
- )
- end
-
- def test_form_with_datetime
- silence_warnings do
- def Post.content_columns() [ Column.new(:datetime, "written_on", "Written on") ] end
- end
- @post.written_on = Time.gm(2004, 6, 15, 16, 30)
-
- assert_dom_equal(
- %(),
- form("post")
- )
- end
-
- def test_error_for_block
- assert_dom_equal %(