Agile Web Development with Rails, Edition 4
Agile Web Development with Rails, Edition 4
Table of Contents
26.3 HAML
26.4 JQuery
</No RJS statement/> expected but was
<"gem 'will_paginate', '>= 3.0.pre'">.
Traceback:
/home/rubys/svn/rails4/Book/util/checkdepot.rb:342
edit Gemfile
gem 'will_paginate', '>= 3.0.pre'
gem 'activemerchant', '~> 1.9.0'
gem 'haml', '~> 3.0.18'
gem 'jquery-rails', '~> 0.2.2'
bundle install
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.1.0.beta) from source at /home/rubys/git/rails
Using builder (3.0.0)
Using i18n (0.5.0)
Using activemodel (3.1.0.beta) from source at /home/rubys/git/rails
Using erubis (2.6.6)
Using rack (1.2.1) from source at /home/rubys/git/rack
Using rack-cache (0.5.3)
Using rack-mount (0.6.13)
Using rack-test (0.5.6)
Using tzinfo (0.3.23)
Using actionpack (3.1.0.beta) from source at /home/rubys/git/rails
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.12)
Using actionmailer (3.1.0.beta) from source at /home/rubys/git/rails
Using braintree (2.6.2)
Using activemerchant (1.9.1)
Using arel (2.0.7.beta.20101201093009) from source at /home/rubys/git/arel
Using activerecord (3.1.0.beta) from source at /home/rubys/git/rails
Using activeresource (3.1.0.beta) from source at /home/rubys/git/rails
Using bundler (1.0.7)
Using highline (1.6.1)
Using net-ssh (2.0.23)
Using net-scp (1.0.4)
Using net-sftp (2.0.5)
Using net-ssh-gateway (1.0.1)
Using capistrano (2.5.19)
Using haml (3.0.24)
Using thor (0.14.6)
Using railties (3.1.0.beta) from source at /home/rubys/git/rails
Using rails (3.1.0.beta) from source at /home/rubys/git/rails
Using jquery-rails (0.2.6)
Using mysql (2.8.1)
Using sqlite3-ruby (1.3.2)
Using will_paginate (3.0.pre2)
Updating .gem files in vendor/cache
* activesupport at `/home/rubys/git/rails` will not be cached.
* activemodel at `/home/rubys/git/rails` will not be cached.
* rack at `/home/rubys/git/rack` will not be cached.
* actionpack at `/home/rubys/git/rails` will not be cached.
* actionmailer at `/home/rubys/git/rails` will not be cached.
* arel at `/home/rubys/git/arel` will not be cached.
* activerecord at `/home/rubys/git/rails` will not be cached.
* activeresource at `/home/rubys/git/rails` will not be cached.
* railties at `/home/rubys/git/rails` will not be cached.
* rails at `/home/rubys/git/rails` will not be cached.
* jquery-rails-0.2.6.gem
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
rails generate jquery:install --ui --force
remove public/javascripts/controls.js
remove public/javascripts/dragdrop.js
remove public/javascripts/effects.js
remove public/javascripts/prototype.js
fetching jQuery (1.4.4)
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
/home/rubys/.rvm/gems/ruby-1.8.8-r30068/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in /home/rubys/svn/rails4/Book/util/work-188/depot)
Loaded suite /home/rubys/.rvm/gems/ruby-1.8.8-r30068/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Finished in 0.4222 seconds.
1) Error:
test_should_get_index(AdminControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
2) Error:
test_should_create_cart(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
3) Error:
test_should_destroy_cart(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
4) Error:
test_should_get_edit(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
5) Error:
test_should_get_index(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
6) Error:
test_should_get_new(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
7) Error:
test_should_show_cart(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
8) Error:
test_should_update_cart(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
9) Error:
test_should_create_line_item(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
10) Error:
test_should_create_line_item_via_ajax(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
11) Error:
test_should_destroy_line_item(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
12) Error:
test_should_get_edit(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
13) Error:
test_should_get_index(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
14) Error:
test_should_get_new(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
15) Error:
test_should_show_line_item(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
16) Error:
test_should_update_line_item(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
17) Error:
test_order_received(NotifierTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
18) Error:
test_order_shipped(NotifierTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
19) Error:
test_requires_item_in_cart(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
20) Error:
test_should_create_order(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
21) Error:
test_should_destroy_order(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
22) Error:
test_should_get_edit(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
23) Error:
test_should_get_index(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
24) Error:
test_should_get_new(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
25) Error:
test_should_show_order(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
26) Error:
test_should_update_order(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
27) Error:
test_can't_delete_product_in_cart(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
28) Error:
test_should_create_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
29) Error:
test_should_destroy_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
30) Error:
test_should_get_edit(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
31) Error:
test_should_get_index(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
32) Error:
test_should_get_new(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
33) Error:
test_should_show_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
34) Error:
test_should_update_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
35) Error:
test_should_fail_login(SessionsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
36) Error:
test_should_get_new(SessionsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
37) Error:
test_should_login(SessionsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
38) Error:
test_should_logout(SessionsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
39) Error:
test_should_get_index(StoreControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
40) Error:
test_should_create_user(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
41) Error:
test_should_destroy_user(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
42) Error:
test_should_get_edit(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
43) Error:
test_should_get_index(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
44) Error:
test_should_get_new(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
45) Error:
test_should_show_user(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
46) Error:
test_should_update_user(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
46 tests, 0 assertions, 0 failures, 46 errors
Loaded suite /home/rubys/.rvm/gems/ruby-1.8.8-r30068/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
EEE
Finished in 0.048037 seconds.
1) Error:
test_buying_a_product(DslUserStoriesTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
2) Error:
test_two_people_buying(DslUserStoriesTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
3) Error:
test_buying_a_product(UserStoriesTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
3 tests, 0 assertions, 0 failures, 3 errors
Errors running test:units, 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
/home/rubys/.rvm/gems/ruby-1.8.8-r30068/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in /home/rubys/svn/rails4/Book/util/work-188/depot)
Loaded suite /home/rubys/.rvm/gems/ruby-1.8.8-r30068/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Finished in 0.509133 seconds.
1) Error:
test_should_get_index(AdminControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
2) Error:
test_should_create_cart(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
3) Error:
test_should_destroy_cart(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
4) Error:
test_should_get_edit(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
5) Error:
test_should_get_index(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
6) Error:
test_should_get_new(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
7) Error:
test_should_show_cart(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
8) Error:
test_should_update_cart(CartsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
9) Error:
test_should_create_line_item(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
10) Error:
test_should_create_line_item_via_ajax(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
11) Error:
test_should_destroy_line_item(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
12) Error:
test_should_get_edit(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
13) Error:
test_should_get_index(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
14) Error:
test_should_get_new(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
15) Error:
test_should_show_line_item(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
16) Error:
test_should_update_line_item(LineItemsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
17) Error:
test_order_received(NotifierTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
18) Error:
test_order_shipped(NotifierTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
19) Error:
test_requires_item_in_cart(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
20) Error:
test_should_create_order(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
21) Error:
test_should_destroy_order(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
22) Error:
test_should_get_edit(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
23) Error:
test_should_get_index(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
24) Error:
test_should_get_new(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
25) Error:
test_should_show_order(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
26) Error:
test_should_update_order(OrdersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
27) Error:
test_can't_delete_product_in_cart(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
28) Error:
test_should_create_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
29) Error:
test_should_destroy_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
30) Error:
test_should_get_edit(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
31) Error:
test_should_get_index(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
32) Error:
test_should_get_new(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
33) Error:
test_should_show_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
34) Error:
test_should_update_product(ProductsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
35) Error:
test_should_fail_login(SessionsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
36) Error:
test_should_get_new(SessionsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
37) Error:
test_should_login(SessionsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
38) Error:
test_should_logout(SessionsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
39) Error:
test_should_get_index(StoreControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
40) Error:
test_should_create_user(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
41) Error:
test_should_destroy_user(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
42) Error:
test_should_get_edit(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
43) Error:
test_should_get_index(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
44) Error:
test_should_get_new(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
45) Error:
test_should_show_user(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
46) Error:
test_should_update_user(UsersControllerTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
46 tests, 0 assertions, 0 failures, 46 errors
Loaded suite /home/rubys/.rvm/gems/ruby-1.8.8-r30068/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
EEE
Finished in 0.04129 seconds.
1) Error:
test_buying_a_product(DslUserStoriesTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
2) Error:
test_two_people_buying(DslUserStoriesTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
3) Error:
test_buying_a_product(UserStoriesTest):
ActiveRecord::StatementInvalid: SQLite3::CorruptException: database disk image is malformed: DELETE FROM "products" WHERE 1=1
3 tests, 0 assertions, 0 failures, 3 errors
Errors running test:units, test:functionals, test:integration!
edit config/asset_packages.yml
---
javascripts:
- base:
- jquery
- jquery-ui
- rails
- application
stylesheets:
- base:
- scaffold
- depot
rake asset:packager:build_all
/home/rubys/.rvm/gems/ruby-1.8.8-r30068/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in /home/rubys/svn/rails4/Book/util/work-188/depot)
Created /home/rubys/svn/rails4/Book/util/work-188/depot/public/javascripts/base_packaged.js
Created /home/rubys/svn/rails4/Book/util/work-188/depot/public/stylesheets/base_packaged.css
Created /home/rubys/svn/rails4/Book/util/work-188/depot/public/javascripts/base_packaged.js
Created /home/rubys/svn/rails4/Book/util/work-188/depot/public/stylesheets/base_packaged.css
rake db:seed
/home/rubys/.rvm/gems/ruby-1.8.8-r30068/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
rake aborted!
SQLite3::CorruptException: database disk image is malformed: SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
(See full trace by running task with --trace)
(in /home/rubys/svn/rails4/Book/util/work-188/depot)
pub depot_v
Table of Contents
26.3 HAML