Agile Web Development with Rails, Edition 4

26.2 HAML 26.1.2 Asset Packager

26.1.4 JQuery

edit Gemfile
gem 'activemerchant', '~> 1.10.0'
gem 'haml', '~> 4.0'
gem 'jquery-rails', '~> 0.2.2'
bundle install --local
Resolving dependencies...
Using rake (10.1.1)
Using abstract (1.0.0)
Using activesupport (3.0.20) from source at /home/rubys/git/rails
Using builder (2.1.2)
Using i18n (0.5.3)
Using activemodel (3.0.20) from source at /home/rubys/git/rails
Using erubis (2.6.6)
Using rack (1.2.8)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.38)
Using actionpack (3.0.20) from source at /home/rubys/git/rails
Using mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.2.20)
Using actionmailer (3.0.20) from source at /home/rubys/git/rails
Using braintree (2.28.0)
Using activemerchant (1.10.0)
Using arel (2.0.10)
Using activerecord (3.0.20) from source at /home/rubys/git/rails
Using activeresource (3.0.20) from source at /home/rubys/git/rails
Using bundler (1.5.2)
Using highline (1.6.20)
Using net-ssh (2.8.0)
Using net-scp (1.1.2)
Using net-sftp (2.1.2)
Using net-ssh-gateway (1.2.0)
Using capistrano (2.15.5)
Using tilt (2.0.0)
Using haml (4.0.5)
Using json (1.8.1)
Using rdoc (3.12.2)
Using thor (0.14.6)
Using railties (3.0.20) from source at /home/rubys/git/rails
Using rails (3.0.20) from source at /home/rubys/git/rails
Using jquery-rails (0.2.7)
Using mysql (2.9.1)
Using rvm-capistrano (1.5.1)
Using sqlite3 (1.3.8)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
rails generate jquery:install --ui --force
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
      remove  public/javascripts/controls.js
      remove  public/javascripts/dragdrop.js
      remove  public/javascripts/effects.js
      remove  public/javascripts/prototype.js
    fetching  jQuery (1.5)
      create  public/javascripts/jquery.js
      create  public/javascripts/jquery.min.js
    fetching  jQuery UI (latest 1.x release)
      create  public/javascripts/jquery-ui.js
      create  public/javascripts/jquery-ui.min.js
    fetching  jQuery UJS adapter (github HEAD)
       force  public/javascripts/rails.js
edit app/views/line_items/create.js.rjs
page.select("#notice").each { |notice| notice.hide }
 
page.replace_html('cart', render(@cart))
 
page[:cart].visual_effect :blind_down if @cart.total_items == 1
 
page[:current_item].visual_effect :highlight,
                                  :startcolor => "#88ff88",
                                  :endcolor => "#114411"
rm app/views/line_items/create.js.rjs
edit app/views/line_items/create.js.erb
$("#notice").hide();
 
if ($('#cart tr').length == 1) { $('#cart').show('blind', 1000); }
 
$('#cart').html("<%= escape_javascript(render(@cart)) %>");
 
$('#current_item').css({'background-color':'#88ff88'}).
  animate({'background-color':'#114411'}, 1000);
edit app/views/layouts/application.html.erb
<!-- ... -->
  <div id="banner">
    <%= form_tag store_path, class: 'locale' do %>
      <%= select_tag 'set_locale', 
        options_for_select(LANGUAGES, I18n.locale.to_s),
        onchange: 'this.form.submit()' %>
      <%= submit_tag 'submit' %>
      <%= javascript_tag "$('.locale input').hide()" %>
    <% end %>
    <%= image_tag("logo.png") %>
    <%= @page_title || t('.title') %>
  </div>
<!-- ... -->
rake test
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loaded suite /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
.............
Finished in 0.403187 seconds.
 
13 tests, 49 assertions, 0 failures, 0 errors, 0 skips
 
Test run options: --seed 51363
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loaded suite /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
.........F...........E.E...............EE.......
Finished in 1.040508 seconds.
 
  1) Failure:
test_should_create_line_item_via_ajax(LineItemsControllerTest) [/home/rubys/git/awdwr/edition4/work-192-30/depot/test/functional/line_items_controller_test.rb:61]:
No RJS statement that replaces or inserts HTML content.
 
  2) Error:
test_should_get_edit(OrdersControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:31:in `block in _app_views_orders__form_html_erb__2807093824676263416_33095120_3443464322333036247'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:320:in `form_for'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:2:in `_app_views_orders__form_html_erb__2807093824676263416_33095120_3443464322333036247'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:333:in `render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:262:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:260:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:378:in `_render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:31:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/edit.html.erb:3:in `_app_views_orders_edit_html_erb__1322849674817391603_33332220_1209513749560295512'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  3) Error:
test_should_get_new(OrdersControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:31:in `block in _app_views_orders__form_html_erb__2807093824676263416_33095120_3443464322333036247'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:320:in `form_for'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:2:in `_app_views_orders__form_html_erb__2807093824676263416_33095120_3443464322333036247'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:333:in `render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:262:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:260:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:378:in `_render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:31:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/new.html.erb:6:in `_app_views_orders_new_html_erb__2721941025793089615_41661360_1209513749560295512'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  4) Error:
test_markup_needed_for_store.js.coffee_is_in_place(StoreControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.haml:4:in `_app_views_store_index_html_haml___2818709206094177938_29422600_1209513749560295512'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  5) Error:
test_should_get_index(StoreControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.haml:4:in `_app_views_store_index_html_haml___2818709206094177938_29422600_1209513749560295512'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
48 tests, 70 assertions, 1 failures, 4 errors, 0 skips
 
Test run options: --seed 31672
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loaded suite /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
EEE
Finished in 0.498889 seconds.
 
  1) Error:
test_buying_a_product(DslUserStoriesTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.haml:4:in `_app_views_store_index_html_haml__1314191971291525642_31291780__3116053464217590260'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  2) Error:
test_two_people_buying(DslUserStoriesTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:31:in `block in _app_views_orders__form_html_erb___1658610761788388689_30019620_839254903674463926'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:320:in `form_for'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:2:in `_app_views_orders__form_html_erb___1658610761788388689_30019620_839254903674463926'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:333:in `render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:262:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:260:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:378:in `_render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:31:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/new.html.erb:6:in `_app_views_orders_new_html_erb___384865454302081051_30601060__3116053464217590260'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  3) Error:
test_buying_a_product(UserStoriesTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.haml:4:in `_app_views_store_index_html_haml__1314191971291525642_31291780__3116053464217590260'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
3 tests, 0 assertions, 0 failures, 3 errors, 0 skips
 
Test run options: --seed 18146
Errors running test:functionals, test:integration!
edit test/functional/line_items_controller_test.rb
  test "should create line_item via ajax" do
    assert_difference('LineItem.count') do
      xhr :post, :create, :product_id => products(:ruby).id
    end 
 
    assert_response :success
    assert_select_jquery :html, '#cart' do
      assert_select 'tr#current_item td', /Programming Ruby 1.9/
    end
  end
rake test
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loaded suite /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
.............
Finished in 0.408228 seconds.
 
13 tests, 49 assertions, 0 failures, 0 errors, 0 skips
 
Test run options: --seed 63801
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loaded suite /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
.....................E.E...............EE.......
Finished in 1.084109 seconds.
 
  1) Error:
test_should_get_edit(OrdersControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:31:in `block in _app_views_orders__form_html_erb__4232670126750636411_38182400_4548350628768717495'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:320:in `form_for'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:2:in `_app_views_orders__form_html_erb__4232670126750636411_38182400_4548350628768717495'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:333:in `render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:262:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:260:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:378:in `_render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:31:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/edit.html.erb:3:in `_app_views_orders_edit_html_erb___386587190242773879_38206580_84222648176713078'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  2) Error:
test_should_get_new(OrdersControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:31:in `block in _app_views_orders__form_html_erb__4232670126750636411_38182400_4548350628768717495'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:320:in `form_for'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:2:in `_app_views_orders__form_html_erb__4232670126750636411_38182400_4548350628768717495'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:333:in `render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:262:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:260:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:378:in `_render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:31:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/new.html.erb:6:in `_app_views_orders_new_html_erb__4422532081310605879_45839640_84222648176713078'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  3) Error:
test_markup_needed_for_store.js.coffee_is_in_place(StoreControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.haml:4:in `_app_views_store_index_html_haml__3311521314544158232_46790800_84222648176713078'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  4) Error:
test_should_get_index(StoreControllerTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.haml:4:in `_app_views_store_index_html_haml__3311521314544158232_46790800_84222648176713078'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
48 tests, 70 assertions, 0 failures, 4 errors, 0 skips
 
Test run options: --seed 23623
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loaded suite /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
EEE
Finished in 0.497701 seconds.
 
  1) Error:
test_buying_a_product(DslUserStoriesTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.haml:4:in `_app_views_store_index_html_haml___2740097812983038651_43581980__1085844869292013586'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  2) Error:
test_two_people_buying(DslUserStoriesTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:31:in `block in _app_views_orders__form_html_erb__2829662575556486935_42897940__3598434386083471413'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:320:in `form_for'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/_form.html.erb:2:in `_app_views_orders__form_html_erb__2829662575556486935_42897940__3598434386083471413'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:333:in `render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:262:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:260:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/partials.rb:378:in `_render_partial'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:31:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/orders/new.html.erb:6:in `_app_views_orders_new_html_erb___1541051331879202426_42923220__1085844869292013586'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
  3) Error:
test_buying_a_product(UserStoriesTest):
ActionView::Template::Error: uninitialized constant I18n::RESERVED_KEYS
    /home/rubys/git/rails/actionpack/lib/action_view/helpers/translation_helper.rb:50:in `translate'
    /home/rubys/git/awdwr/edition4/work-192-30/depot/app/views/store/index.html.haml:4:in `_app_views_store_index_html_haml___2740097812983038651_43581980__1085844869292013586'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:135:in `block in render'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/template.rb:127:in `render'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:59:in `block in _render_template'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `block in instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
    /home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:52:in `instrument'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:56:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/action_view/render/rendering.rb:26:in `render'
    /home/rubys/.rvm/gems/ruby-1.9.2-p320/gems/haml-4.0.5/lib/haml/helpers/action_view_mods.rb:12:in `render_with_haml'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:115:in `_render_template'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:109:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:102:in `render_to_string'
    /home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:93:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:17:in `render'
    /home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
    /home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
 
3 tests, 0 assertions, 0 failures, 3 errors, 0 skips
 
Test run options: --seed 55581
Errors running test:functionals, test:integration!
edit config/asset_packages.yml
---
javascripts:
- base:
  - jquery
  - rails
  - jquery-ui
  - application
stylesheets:
- base:
  - depot
  - scaffold
rake asset:packager:build_all
Created /home/rubys/git/awdwr/edition4/work-192-30/depot/public/javascripts/base_packaged.js
Created /home/rubys/git/awdwr/edition4/work-192-30/depot/public/stylesheets/base_packaged.css
rake db:seed
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.

26.2 HAML 26.1.2 Asset Packager