librails 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/helpers/librails/db_utils.rb +5 -0
- data/lib/librails.rb +2 -0
- data/lib/librails/engine.rb +4 -0
- data/lib/librails/misc_utils.rb +13 -0
- data/lib/librails/version.rb +1 -1
- data/test/dummy/app/assets/javascripts/books.js +2 -0
- data/test/dummy/app/assets/stylesheets/books.css +4 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/controllers/books_controller.rb +58 -0
- data/test/dummy/app/helpers/books_helper.rb +2 -0
- data/test/dummy/app/models/book.rb +2 -0
- data/test/dummy/app/views/books/_form.html.erb +29 -0
- data/test/dummy/app/views/books/edit.html.erb +6 -0
- data/test/dummy/app/views/books/index.html.erb +31 -0
- data/test/dummy/app/views/books/new.html.erb +5 -0
- data/test/dummy/app/views/books/show.html.erb +19 -0
- data/test/dummy/config/routes.rb +1 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20161025052813_create_books.rb +11 -0
- data/test/dummy/db/schema.rb +9 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +86 -0
- data/test/dummy/log/test.log +596 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-a/-a5ntVe_0-JosKC_U-LV0kALRyUIgn03H0eVSdQ8pAo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2x/2xVmM6jHrzDyP1lp_LjSNgXh8HYZQ7UMeLoN7wQO2uM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4J/4JwVVgJQeLQmk-x6jORqWPEH5TYtWgMF-4GJupuMreM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4P/4Po6Zxf1klgk64Tw6mYOWnTGXYt4fqfrgbM_aUJwGpw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4Q/4Qo2DjyziGCKkz1oJV2GVlh8wX1CcV8pAS46Q7Qm7hI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/98/98JB3RlDHR57hBl-xqETG_I6j8A_Nq0odiAq7v00Myk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9h/9hWcOzybQOFoTeNjwVlrLZ5CFSgHv2mFQz1iT7DZsAM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9l/9lRpyWJfT2I3m8gijV7lkjQFoXhOKRq-qrktmY8jwqQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9y/9y8VxpdidE2YHBhtV16bnLrhPEyaw00uRH9rGQrGiYo.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AN/ANELt8DAvX3T4rWiL73ZyAs9akz2xqaJ8oSTkjC8F4E.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/B0/B0yDuvt2bL4_VgHHUwn0DSCgUg_Ubj4YjHffaiGCAL0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CU/CUUNfrG7P9ppFhzKGMMhyineSvfddDpmm193O8hqWn8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gr/Gr9XYAo8GbcW54Sm4tf2EnAzEUrmUcF3x29iJGtBs-A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/H4/H4oToPWSBBLRPAut47gvhtagG-ZlAjMvULFS1IlsDSQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HB/HB4_lJeXGMv1qlxwZfwDD0DQt9v9D3uJfs5M8Kgu3iw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HE/HEA-bEdudX8qzqty72VsU6YCvuJV2OkyzRXpsXLoxFA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HV/HVshoeO2Vki70_9KjCtwERcw7ODKGOGVYYDQIANp2UM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/I3/I3W61RA7E9U8gY3VOReLJalzQzVrSopciuNv6qcYmng.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ic/IcuhBgC-nw3u2yhN8hnjRD6Qmzw3DbcuIBUqovrS6Hc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JS/JSjnVos6CVam_6IKJcXZEgVG5kHcAauxq-yHnTn4mxE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ki/KifnWePy2kuI6EoY35NBONt3SPPPXzXWFUzy7YS0AXg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ld/LdOU9kh2e1UyWAH9vMD_vrJTydu8vLyj9RZRdtWZJJE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ms/MsWDjQABzh2_2l9wZzvXwvwaDXCKRqC_CHFqwpF3vfA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/NP/NPTKYje_vsxbdQIwHZm4GQ9ctgNfDx_dGpmUY09mUQw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Oo/OopMIscaD_StAXIYnIlx8woMEjgZf2uDXh17312pc5w.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PZ/PZM2O0pn21R_wlGR30OX0pQ4-zThf7ZxUhXihEKAcxM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q0/Q0pvcN-Uyq45X4gQ1IIsx2hW2l933XYAVm66Lt-CcMg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QY/QY4eYMS1Fh5SL6cZCo_OpPSZGx9e7vjDlEpwXT0AaRI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Un/Un1edWzWIIMQo9Q1V4Y3p58MSmZMO3ccQIABeCzt-es.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WJ/WJndgy_O4Z4_vIJzVJV49Oj7pXcrXAM2WToimOqHi94.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YB/YBmLL8rNkJ9wDjR63wHcnw4HPQ2zc4_sUHBnCwCHmV8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YO/YOQwG9qoTCWsQaEUYqC2eU6VMwJ8eY5az9PWEg0YBVY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YZ/YZ5lr9CWjxm17X4Z6whrpsqGepK7FMkaMYke2pZeJkY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Z0/Z0v-Clv1RmCtHcZgsHm2Efklg2cOj1_vvXGxSZJYGmU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/a9/a9CMcRWEr_aXxa0Z54LL_mihjvWtKKhXEkjYUf1jbYg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/az/azSFX09wOk1dDEk1xyUuhOvndGRfhAQw7X3bhVUvbqk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/c4/c4wesegfvp3YOFFSsjDTtaqlTJT4wu9TEQwmOabiGBE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/di/diq4wNwLuxlJAo-1sx9AH3-mub_Z63HbEaidoP-u9LQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dj/djpYduQfWsseWdaOi5NPjqzRTg-mdM1AuAl5fgbfRLI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dv/dvTANT0eJS1VHnH7LFBvahPvuDEVWCsoCxbVYEyZhzs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ek/ek29x0Bv7htoVKBJsvqHHHd4qD1hqohET5SJ3GHUe3c.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gI/gIcGEFwVb02r2Kvp4JojiRH9FmhmT2W3zpbokUikgTM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jR/jRlfgMuDhdJ9DeARm8C34EzijHiSAEZi9IumOi8d8co.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/je/jeF02OPMeSNXwtMncDIYKtOsYCK80N9cMVBag1DQcTU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jy/jyTlR0GRNS7XsvnoGBrqht7VoF8JHgPAhzzlPSI38Lg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kf/kff_5LRygUIEBDA1u6MXzK09UFf90uCaOsLtaBgyGUQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ll/lllxIh8TmYST5iT3pMMqEiiW2kVnV46e8apjHYV4NwQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lt/ltZ12Hb1MIwQ_x5JJ3RSyPYvs7uKQ6sobTXErisPSIo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/m4/m4PDLvfn6lwFaBlngbSJXSB_eLt6iyL5y4mX1QPdp40.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nF/nFDSlhA0quhrqhaq_7tpg8xL130zYnfh0fSgdoKjyxs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/om/omT5fdYWQly0TYwKCjLTSkd4KnkiW3DBI7u_9iwQujM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pV/pVjei3DOBfiSnjFhJoxc5fnuoqkyxSZXVaXL-PtQOnM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qo/qom3M3JruFGz9uj1CmP-jbPFnMOFh2r2KESBsGzKqSQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rA/rAUGcozHSiZ93hwuQ5Ez0-DFNvpIp1pMSFzJDL6j5t0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rG/rGuMNcIUBp03kbJ6EzyYnC3CRj5goxzKZBmJYdmHAZQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sU/sU3oqz4lk5ZBEidbxhSyI-aEf0xo5cuP8154BPYzRSQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sZ/sZS3zy1fxZQjAPA_1FJ3AowfYeZce2J_6g44pGwLUm0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sj/sj16ZRag8S_gxUTofHpRMDlBfQtRrkOCTHE4XkpqTIw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/so/sor5uSsm2pcLDkIB_nEyeFtyH3H9JfHraQ06BUgKQDI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tO/tOhfPNHfUCZMMbxsrZ8QFkHIS4Kvl5n2uOQFyrtP8sg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vA/vASpagKbFH0ZvwZExZpP6xUozv_LZDLv2ChvkXLH9bM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vG/vGFQZSHgo_Z1jtdt-4UDi4Cq_rLRNs3NgVSnCC-00tk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wt/wtPqYC4VZKO69pxoohTrsnCI_qisEoAEF_0a0cchBOs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xw/xw-pJ8PwbGRKiqJ9PyoPiRt1qJ2tGDRaVKQr5L83M24.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zh/zhG0AnNGbV5bRFlZI647Ycb4OP62cNjN9sCGP2XSmLY.cache +0 -0
- data/test/fixtures/books.yml +11 -0
- data/test/integration/books_controller_test.rb +51 -0
- data/test/librails_test.rb +7 -1
- metadata +178 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3cabed066ea2a94382c29ce59130ad6dfb4204c2
|
|
4
|
+
data.tar.gz: 8560c3972008e3824447c103ac92cf2387496b85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 971260575f0d93f86fa98027602871ebea95a684d59dfc07aa6533dc51e6f8b3892a63c6d75bd7be88bfc97ba2004446ead5445dd0ba42ac429e13f935e2de05
|
|
7
|
+
data.tar.gz: a70c8f84a26ccb50052b2d477df805931ab48cd85be61393d07413b1511a2bbf2bc4580380e480411139ded8ed7109586b5e310c69c3a77095ae03021a770583
|
data/lib/librails.rb
CHANGED
data/lib/librails/engine.rb
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
module Librails
|
|
2
2
|
class Engine < ::Rails::Engine
|
|
3
3
|
isolate_namespace Librails
|
|
4
|
+
|
|
5
|
+
# Add a load path for this specific Engine
|
|
6
|
+
config.autoload_paths << File.expand_path("../../lib", __FILE__)
|
|
7
|
+
|
|
4
8
|
initializer "librails.view_helper" do |app|
|
|
5
9
|
ActiveSupport.on_load :action_view do
|
|
6
10
|
require 'librails/view_helper'
|
data/lib/librails/version.rb
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
body { background-color: #fff; color: #333; }
|
|
2
|
+
|
|
3
|
+
body, p, ol, ul, td {
|
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
|
5
|
+
font-size: 13px;
|
|
6
|
+
line-height: 18px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
pre {
|
|
10
|
+
background-color: #eee;
|
|
11
|
+
padding: 10px;
|
|
12
|
+
font-size: 11px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
a { color: #000; }
|
|
16
|
+
a:visited { color: #666; }
|
|
17
|
+
a:hover { color: #fff; background-color:#000; }
|
|
18
|
+
|
|
19
|
+
div.field, div.actions {
|
|
20
|
+
margin-bottom: 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#notice {
|
|
24
|
+
color: green;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.field_with_errors {
|
|
28
|
+
padding: 2px;
|
|
29
|
+
background-color: red;
|
|
30
|
+
display: table;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#error_explanation {
|
|
34
|
+
width: 450px;
|
|
35
|
+
border: 2px solid red;
|
|
36
|
+
padding: 7px;
|
|
37
|
+
padding-bottom: 0;
|
|
38
|
+
margin-bottom: 20px;
|
|
39
|
+
background-color: #f0f0f0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#error_explanation h2 {
|
|
43
|
+
text-align: left;
|
|
44
|
+
font-weight: bold;
|
|
45
|
+
padding: 5px 5px 5px 15px;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
margin: -7px;
|
|
48
|
+
margin-bottom: 0px;
|
|
49
|
+
background-color: #c00;
|
|
50
|
+
color: #fff;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
#error_explanation ul li {
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
list-style: square;
|
|
56
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
class BooksController < ApplicationController
|
|
2
|
+
before_action :set_book, only: [:show, :edit, :update, :destroy]
|
|
3
|
+
|
|
4
|
+
# GET /books
|
|
5
|
+
def index
|
|
6
|
+
@books = Book.all
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
# GET /books/1
|
|
10
|
+
def show
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# GET /books/new
|
|
14
|
+
def new
|
|
15
|
+
@book = Book.new
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# GET /books/1/edit
|
|
19
|
+
def edit
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# POST /books
|
|
23
|
+
def create
|
|
24
|
+
@book = Book.new(book_params)
|
|
25
|
+
|
|
26
|
+
if @book.save
|
|
27
|
+
redirect_to @book, notice: 'Book was successfully created.'
|
|
28
|
+
else
|
|
29
|
+
render :new
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# PATCH/PUT /books/1
|
|
34
|
+
def update
|
|
35
|
+
if @book.update(book_params)
|
|
36
|
+
redirect_to @book, notice: 'Book was successfully updated.'
|
|
37
|
+
else
|
|
38
|
+
render :edit
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# DELETE /books/1
|
|
43
|
+
def destroy
|
|
44
|
+
@book.destroy
|
|
45
|
+
redirect_to books_url, notice: 'Book was successfully destroyed.'
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
private
|
|
49
|
+
# Use callbacks to share common setup or constraints between actions.
|
|
50
|
+
def set_book
|
|
51
|
+
@book = Book.find(params[:id])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Only allow a trusted parameter "white list" through.
|
|
55
|
+
def book_params
|
|
56
|
+
params.require(:book).permit(:title, :author, :summary)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<%= form_for(@book) do |f| %>
|
|
2
|
+
<% if @book.errors.any? %>
|
|
3
|
+
<div id="error_explanation">
|
|
4
|
+
<h2><%= pluralize(@book.errors.count, "error") %> prohibited this book from being saved:</h2>
|
|
5
|
+
|
|
6
|
+
<ul>
|
|
7
|
+
<% @book.errors.full_messages.each do |message| %>
|
|
8
|
+
<li><%= message %></li>
|
|
9
|
+
<% end %>
|
|
10
|
+
</ul>
|
|
11
|
+
</div>
|
|
12
|
+
<% end %>
|
|
13
|
+
|
|
14
|
+
<div class="field">
|
|
15
|
+
<%= f.label :title %><br>
|
|
16
|
+
<%= f.text_field :title %>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="field">
|
|
19
|
+
<%= f.label :author %><br>
|
|
20
|
+
<%= f.text_field :author %>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="field">
|
|
23
|
+
<%= f.label :summary %><br>
|
|
24
|
+
<%= f.text_area :summary %>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="actions">
|
|
27
|
+
<%= f.submit %>
|
|
28
|
+
</div>
|
|
29
|
+
<% end %>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
|
2
|
+
|
|
3
|
+
<h1>Listing Books</h1>
|
|
4
|
+
|
|
5
|
+
<table>
|
|
6
|
+
<thead>
|
|
7
|
+
<tr>
|
|
8
|
+
<th>Title</th>
|
|
9
|
+
<th>Author</th>
|
|
10
|
+
<th>Summary</th>
|
|
11
|
+
<th colspan="3"></th>
|
|
12
|
+
</tr>
|
|
13
|
+
</thead>
|
|
14
|
+
|
|
15
|
+
<tbody>
|
|
16
|
+
<% @books.each do |book| %>
|
|
17
|
+
<tr>
|
|
18
|
+
<td><%= book.title %></td>
|
|
19
|
+
<td><%= book.author %></td>
|
|
20
|
+
<td><%= book.summary %></td>
|
|
21
|
+
<td><%= link_to 'Show', book %></td>
|
|
22
|
+
<td><%= link_to 'Edit', edit_book_path(book) %></td>
|
|
23
|
+
<td><%= link_to 'Destroy', book, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
|
24
|
+
</tr>
|
|
25
|
+
<% end %>
|
|
26
|
+
</tbody>
|
|
27
|
+
</table>
|
|
28
|
+
|
|
29
|
+
<br>
|
|
30
|
+
|
|
31
|
+
<%= link_to 'New Book', new_book_path %>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
|
2
|
+
|
|
3
|
+
<p>
|
|
4
|
+
<strong>Title:</strong>
|
|
5
|
+
<%= @book.title %>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p>
|
|
9
|
+
<strong>Author:</strong>
|
|
10
|
+
<%= @book.author %>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p>
|
|
14
|
+
<strong>Summary:</strong>
|
|
15
|
+
<%= @book.summary %>
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
<%= link_to 'Edit', edit_book_path(@book) %> |
|
|
19
|
+
<%= link_to 'Back', books_path %>
|
data/test/dummy/config/routes.rb
CHANGED
|
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
|
@@ -11,6 +11,14 @@
|
|
|
11
11
|
#
|
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
|
13
13
|
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
|
14
|
+
ActiveRecord::Schema.define(version: 20161025052813) do
|
|
15
|
+
|
|
16
|
+
create_table "books", force: :cascade do |t|
|
|
17
|
+
t.string "title"
|
|
18
|
+
t.string "author"
|
|
19
|
+
t.text "summary"
|
|
20
|
+
t.datetime "created_at", null: false
|
|
21
|
+
t.datetime "updated_at", null: false
|
|
22
|
+
end
|
|
15
23
|
|
|
16
24
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
|
@@ -2,3 +2,89 @@
|
|
|
2
2
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
3
3
|
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
4
4
|
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Started GET "/" for ::1 at 2016-10-25 14:28:30 +0900
|
|
8
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9
|
+
|
|
10
|
+
ActiveRecord::PendingMigrationError (
|
|
11
|
+
|
|
12
|
+
Migrations are pending. To resolve this issue, run:
|
|
13
|
+
|
|
14
|
+
bin/rake db:migrate RAILS_ENV=development
|
|
15
|
+
|
|
16
|
+
):
|
|
17
|
+
activerecord (4.2.7.1) lib/active_record/migration.rb:392:in `check_pending!'
|
|
18
|
+
activerecord (4.2.7.1) lib/active_record/migration.rb:373:in `call'
|
|
19
|
+
actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
|
|
20
|
+
activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
|
|
21
|
+
activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
|
|
22
|
+
activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
|
23
|
+
actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
|
24
|
+
actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'
|
|
25
|
+
actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
|
|
26
|
+
actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
|
|
27
|
+
actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
|
28
|
+
railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app'
|
|
29
|
+
railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call'
|
|
30
|
+
activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
|
31
|
+
activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged'
|
|
32
|
+
activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged'
|
|
33
|
+
railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call'
|
|
34
|
+
actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
|
35
|
+
rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
|
|
36
|
+
rack (1.6.4) lib/rack/runtime.rb:18:in `call'
|
|
37
|
+
activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
|
38
|
+
rack (1.6.4) lib/rack/lock.rb:17:in `call'
|
|
39
|
+
actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call'
|
|
40
|
+
rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
|
|
41
|
+
railties (4.2.7.1) lib/rails/engine.rb:518:in `call'
|
|
42
|
+
railties (4.2.7.1) lib/rails/application.rb:165:in `call'
|
|
43
|
+
rack (1.6.4) lib/rack/lock.rb:17:in `call'
|
|
44
|
+
rack (1.6.4) lib/rack/content_length.rb:15:in `call'
|
|
45
|
+
rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
|
|
46
|
+
/Users/sora/.anyenv/envs/rbenv/versions/2.3.1/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
|
|
47
|
+
/Users/sora/.anyenv/envs/rbenv/versions/2.3.1/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
|
|
48
|
+
/Users/sora/.anyenv/envs/rbenv/versions/2.3.1/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
Rendered /Users/sora/work/librails/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms)
|
|
52
|
+
Rendered /Users/sora/work/librails/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms)
|
|
53
|
+
Rendered /Users/sora/work/librails/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
|
|
54
|
+
Rendered /Users/sora/work/librails/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (58.6ms)
|
|
55
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
56
|
+
Migrating to CreateBooks (20161025052813)
|
|
57
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
58
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "author" varchar, "summary" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
59
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161025052813"]]
|
|
60
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
|
61
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Started GET "/" for ::1 at 2016-10-25 14:29:32 +0900
|
|
65
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
66
|
+
Processing by Rails::WelcomeController#index as HTML
|
|
67
|
+
Rendered /Users/sora/work/librails/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/templates/rails/welcome/index.html.erb (1.7ms)
|
|
68
|
+
Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.0ms)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
Started GET "/books" for ::1 at 2016-10-25 14:29:37 +0900
|
|
72
|
+
Processing by BooksController#index as HTML
|
|
73
|
+
[1m[35mBook Load (0.4ms)[0m SELECT "books".* FROM "books"
|
|
74
|
+
Rendered books/index.html.erb within layouts/application (13.1ms)
|
|
75
|
+
Completed 200 OK in 274ms (Views: 271.6ms | ActiveRecord: 0.6ms)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
Started GET "/assets/books.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for ::1 at 2016-10-25 14:29:38 +0900
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for ::1 at 2016-10-25 14:29:38 +0900
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2016-10-25 14:29:38 +0900
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
Started GET "/assets/books.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for ::1 at 2016-10-25 14:29:38 +0900
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2016-10-25 14:29:38 +0900
|
data/test/dummy/log/test.log
CHANGED
|
@@ -52,3 +52,599 @@ LibrailsTest: test_hello
|
|
|
52
52
|
LibrailsTest: test_hello
|
|
53
53
|
------------------------
|
|
54
54
|
[1m[35m (0.1ms)[0m rollback transaction
|
|
55
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
56
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "author" varchar, "summary" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
57
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
|
58
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
|
59
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
60
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
|
61
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161025052813')
|
|
62
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
63
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
64
|
+
------------------------
|
|
65
|
+
LibrailsTest: test_hello
|
|
66
|
+
------------------------
|
|
67
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
68
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
69
|
+
--------------------------------------
|
|
70
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
71
|
+
--------------------------------------
|
|
72
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
73
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
74
|
+
------------------------------------------
|
|
75
|
+
BooksControllerTest: test_should_get_index
|
|
76
|
+
------------------------------------------
|
|
77
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
78
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
79
|
+
--------------------------------------------
|
|
80
|
+
BooksControllerTest: test_should_create_book
|
|
81
|
+
--------------------------------------------
|
|
82
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
83
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
84
|
+
--------------------------------------------
|
|
85
|
+
BooksControllerTest: test_should_update_book
|
|
86
|
+
--------------------------------------------
|
|
87
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
88
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
89
|
+
---------------------------------------------
|
|
90
|
+
BooksControllerTest: test_should_destroy_book
|
|
91
|
+
---------------------------------------------
|
|
92
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
93
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
94
|
+
-----------------------------------------
|
|
95
|
+
BooksControllerTest: test_should_get_edit
|
|
96
|
+
-----------------------------------------
|
|
97
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
98
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
99
|
+
----------------------------------------
|
|
100
|
+
BooksControllerTest: test_should_get_new
|
|
101
|
+
----------------------------------------
|
|
102
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
103
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
104
|
+
------------------------------------------
|
|
105
|
+
BooksControllerTest: test_should_show_book
|
|
106
|
+
------------------------------------------
|
|
107
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
108
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
109
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
110
|
+
------------------------------------------
|
|
111
|
+
BooksControllerTest: test_should_show_book
|
|
112
|
+
------------------------------------------
|
|
113
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
114
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
115
|
+
------------------------------------------
|
|
116
|
+
BooksControllerTest: test_should_get_index
|
|
117
|
+
------------------------------------------
|
|
118
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
119
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
120
|
+
--------------------------------------------
|
|
121
|
+
BooksControllerTest: test_should_update_book
|
|
122
|
+
--------------------------------------------
|
|
123
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
124
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
125
|
+
--------------------------------------------
|
|
126
|
+
BooksControllerTest: test_should_create_book
|
|
127
|
+
--------------------------------------------
|
|
128
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
130
|
+
----------------------------------------
|
|
131
|
+
BooksControllerTest: test_should_get_new
|
|
132
|
+
----------------------------------------
|
|
133
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
134
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
135
|
+
-----------------------------------------
|
|
136
|
+
BooksControllerTest: test_should_get_edit
|
|
137
|
+
-----------------------------------------
|
|
138
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
139
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
140
|
+
---------------------------------------------
|
|
141
|
+
BooksControllerTest: test_should_destroy_book
|
|
142
|
+
---------------------------------------------
|
|
143
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
144
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
145
|
+
------------------------
|
|
146
|
+
LibrailsTest: test_hello
|
|
147
|
+
------------------------
|
|
148
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
150
|
+
--------------------------------------
|
|
151
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
152
|
+
--------------------------------------
|
|
153
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
154
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
155
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
156
|
+
------------------------
|
|
157
|
+
LibrailsTest: test_hello
|
|
158
|
+
------------------------
|
|
159
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
160
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
161
|
+
--------------------------------------
|
|
162
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
163
|
+
--------------------------------------
|
|
164
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
165
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
166
|
+
----------------------------------------
|
|
167
|
+
BooksControllerTest: test_should_get_new
|
|
168
|
+
----------------------------------------
|
|
169
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
170
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
171
|
+
-----------------------------------------
|
|
172
|
+
BooksControllerTest: test_should_get_edit
|
|
173
|
+
-----------------------------------------
|
|
174
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
175
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
176
|
+
------------------------------------------
|
|
177
|
+
BooksControllerTest: test_should_get_index
|
|
178
|
+
------------------------------------------
|
|
179
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
180
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
181
|
+
------------------------------------------
|
|
182
|
+
BooksControllerTest: test_should_show_book
|
|
183
|
+
------------------------------------------
|
|
184
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
185
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
186
|
+
--------------------------------------------
|
|
187
|
+
BooksControllerTest: test_should_update_book
|
|
188
|
+
--------------------------------------------
|
|
189
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
190
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
191
|
+
---------------------------------------------
|
|
192
|
+
BooksControllerTest: test_should_destroy_book
|
|
193
|
+
---------------------------------------------
|
|
194
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
195
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
196
|
+
--------------------------------------------
|
|
197
|
+
BooksControllerTest: test_should_create_book
|
|
198
|
+
--------------------------------------------
|
|
199
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
200
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
202
|
+
------------------------
|
|
203
|
+
LibrailsTest: test_hello
|
|
204
|
+
------------------------
|
|
205
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
206
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
207
|
+
--------------------------------------
|
|
208
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
209
|
+
--------------------------------------
|
|
210
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
211
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
212
|
+
----------------------------------------
|
|
213
|
+
BooksControllerTest: test_should_get_new
|
|
214
|
+
----------------------------------------
|
|
215
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
216
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
217
|
+
---------------------------------------------
|
|
218
|
+
BooksControllerTest: test_should_destroy_book
|
|
219
|
+
---------------------------------------------
|
|
220
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
221
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
222
|
+
--------------------------------------------
|
|
223
|
+
BooksControllerTest: test_should_create_book
|
|
224
|
+
--------------------------------------------
|
|
225
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
226
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
227
|
+
------------------------------------------
|
|
228
|
+
BooksControllerTest: test_should_show_book
|
|
229
|
+
------------------------------------------
|
|
230
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
231
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
232
|
+
------------------------------------------
|
|
233
|
+
BooksControllerTest: test_should_get_index
|
|
234
|
+
------------------------------------------
|
|
235
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
236
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
237
|
+
-----------------------------------------
|
|
238
|
+
BooksControllerTest: test_should_get_edit
|
|
239
|
+
-----------------------------------------
|
|
240
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
241
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
242
|
+
--------------------------------------------
|
|
243
|
+
BooksControllerTest: test_should_update_book
|
|
244
|
+
--------------------------------------------
|
|
245
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
246
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
247
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
248
|
+
--------------------------------------
|
|
249
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
250
|
+
--------------------------------------
|
|
251
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
252
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
253
|
+
------------------------
|
|
254
|
+
LibrailsTest: test_hello
|
|
255
|
+
------------------------
|
|
256
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
257
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
258
|
+
------------------------------------------
|
|
259
|
+
BooksControllerTest: test_should_get_index
|
|
260
|
+
------------------------------------------
|
|
261
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
262
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
263
|
+
---------------------------------------------
|
|
264
|
+
BooksControllerTest: test_should_destroy_book
|
|
265
|
+
---------------------------------------------
|
|
266
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
267
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
268
|
+
----------------------------------------
|
|
269
|
+
BooksControllerTest: test_should_get_new
|
|
270
|
+
----------------------------------------
|
|
271
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
272
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
273
|
+
--------------------------------------------
|
|
274
|
+
BooksControllerTest: test_should_update_book
|
|
275
|
+
--------------------------------------------
|
|
276
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
277
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
278
|
+
--------------------------------------------
|
|
279
|
+
BooksControllerTest: test_should_create_book
|
|
280
|
+
--------------------------------------------
|
|
281
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
282
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
283
|
+
------------------------------------------
|
|
284
|
+
BooksControllerTest: test_should_show_book
|
|
285
|
+
------------------------------------------
|
|
286
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
287
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
288
|
+
-----------------------------------------
|
|
289
|
+
BooksControllerTest: test_should_get_edit
|
|
290
|
+
-----------------------------------------
|
|
291
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
292
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
293
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
294
|
+
--------------------------------------
|
|
295
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
296
|
+
--------------------------------------
|
|
297
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
298
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
299
|
+
------------------------
|
|
300
|
+
LibrailsTest: test_hello
|
|
301
|
+
------------------------
|
|
302
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
303
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
304
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
305
|
+
------------------------
|
|
306
|
+
LibrailsTest: test_hello
|
|
307
|
+
------------------------
|
|
308
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
309
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
310
|
+
--------------------------------------
|
|
311
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
312
|
+
--------------------------------------
|
|
313
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
314
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
315
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
316
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
317
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
318
|
+
------------------------
|
|
319
|
+
LibrailsTest: test_hello
|
|
320
|
+
------------------------
|
|
321
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
322
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
323
|
+
--------------------------------------
|
|
324
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
325
|
+
--------------------------------------
|
|
326
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
327
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
328
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
329
|
+
--------------------------------------
|
|
330
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
331
|
+
--------------------------------------
|
|
332
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
333
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
334
|
+
------------------------
|
|
335
|
+
LibrailsTest: test_hello
|
|
336
|
+
------------------------
|
|
337
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
338
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
339
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
340
|
+
--------------------------------------
|
|
341
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
342
|
+
--------------------------------------
|
|
343
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
344
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
345
|
+
------------------------
|
|
346
|
+
LibrailsTest: test_hello
|
|
347
|
+
------------------------
|
|
348
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
349
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
350
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
351
|
+
------------------------
|
|
352
|
+
LibrailsTest: test_hello
|
|
353
|
+
------------------------
|
|
354
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
355
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
356
|
+
--------------------------------------
|
|
357
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
358
|
+
--------------------------------------
|
|
359
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
360
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
361
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
362
|
+
--------------------------------------
|
|
363
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
364
|
+
--------------------------------------
|
|
365
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
366
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
367
|
+
------------------------
|
|
368
|
+
LibrailsTest: test_hello
|
|
369
|
+
------------------------
|
|
370
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
371
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
372
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
373
|
+
------------------------
|
|
374
|
+
LibrailsTest: test_hello
|
|
375
|
+
------------------------
|
|
376
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
377
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
378
|
+
--------------------------------------
|
|
379
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
380
|
+
--------------------------------------
|
|
381
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
382
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
383
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
384
|
+
------------------------
|
|
385
|
+
LibrailsTest: test_hello
|
|
386
|
+
------------------------
|
|
387
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
388
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
389
|
+
--------------------------------------
|
|
390
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
391
|
+
--------------------------------------
|
|
392
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
393
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
395
|
+
------------------------
|
|
396
|
+
LibrailsTest: test_hello
|
|
397
|
+
------------------------
|
|
398
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
399
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
400
|
+
--------------------------------------
|
|
401
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
402
|
+
--------------------------------------
|
|
403
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
404
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
405
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
406
|
+
------------------------
|
|
407
|
+
LibrailsTest: test_hello
|
|
408
|
+
------------------------
|
|
409
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
410
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
411
|
+
--------------------------------------
|
|
412
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
413
|
+
--------------------------------------
|
|
414
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
415
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
416
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
417
|
+
--------------------------------------
|
|
418
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
419
|
+
--------------------------------------
|
|
420
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
421
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
422
|
+
------------------------
|
|
423
|
+
LibrailsTest: test_hello
|
|
424
|
+
------------------------
|
|
425
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
426
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
427
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
428
|
+
------------------------
|
|
429
|
+
LibrailsTest: test_hello
|
|
430
|
+
------------------------
|
|
431
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
432
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
433
|
+
--------------------------------------
|
|
434
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
435
|
+
--------------------------------------
|
|
436
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
437
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
438
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
439
|
+
--------------------------------------
|
|
440
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
441
|
+
--------------------------------------
|
|
442
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
443
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
444
|
+
------------------------
|
|
445
|
+
LibrailsTest: test_hello
|
|
446
|
+
------------------------
|
|
447
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
448
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
449
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
450
|
+
------------------------
|
|
451
|
+
LibrailsTest: test_hello
|
|
452
|
+
------------------------
|
|
453
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
454
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
455
|
+
--------------------------------------
|
|
456
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
457
|
+
--------------------------------------
|
|
458
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
459
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
460
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
461
|
+
------------------------
|
|
462
|
+
LibrailsTest: test_hello
|
|
463
|
+
------------------------
|
|
464
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
465
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
466
|
+
--------------------------------------
|
|
467
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
468
|
+
--------------------------------------
|
|
469
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
470
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
471
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
472
|
+
------------------------
|
|
473
|
+
LibrailsTest: test_hello
|
|
474
|
+
------------------------
|
|
475
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
476
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
477
|
+
--------------------------------------
|
|
478
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
479
|
+
--------------------------------------
|
|
480
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
481
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
482
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
483
|
+
------------------------
|
|
484
|
+
LibrailsTest: test_hello
|
|
485
|
+
------------------------
|
|
486
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
487
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
488
|
+
--------------------------------------
|
|
489
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
490
|
+
--------------------------------------
|
|
491
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
492
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
493
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
494
|
+
------------------------
|
|
495
|
+
LibrailsTest: test_hello
|
|
496
|
+
------------------------
|
|
497
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
498
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
499
|
+
--------------------------------------
|
|
500
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
501
|
+
--------------------------------------
|
|
502
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
503
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
504
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
505
|
+
------------------------------------------
|
|
506
|
+
BooksControllerTest: test_should_get_index
|
|
507
|
+
------------------------------------------
|
|
508
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
509
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
510
|
+
------------------------
|
|
511
|
+
LibrailsTest: test_hello
|
|
512
|
+
------------------------
|
|
513
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
514
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
515
|
+
--------------------------------------
|
|
516
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
517
|
+
--------------------------------------
|
|
518
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
519
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
520
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
521
|
+
------------------------
|
|
522
|
+
LibrailsTest: test_hello
|
|
523
|
+
------------------------
|
|
524
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
525
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
526
|
+
--------------------------------------
|
|
527
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
528
|
+
--------------------------------------
|
|
529
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
530
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
531
|
+
------------------------------------------
|
|
532
|
+
BooksControllerTest: test_should_get_index
|
|
533
|
+
------------------------------------------
|
|
534
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
535
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
536
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
537
|
+
------------------------------------------
|
|
538
|
+
BooksControllerTest: test_should_get_index
|
|
539
|
+
------------------------------------------
|
|
540
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
541
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
542
|
+
------------------------
|
|
543
|
+
LibrailsTest: test_hello
|
|
544
|
+
------------------------
|
|
545
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
546
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
547
|
+
--------------------------------------
|
|
548
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
549
|
+
--------------------------------------
|
|
550
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
551
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
552
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
553
|
+
------------------------
|
|
554
|
+
LibrailsTest: test_hello
|
|
555
|
+
------------------------
|
|
556
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
557
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
558
|
+
--------------------------------------
|
|
559
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
560
|
+
--------------------------------------
|
|
561
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
562
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
563
|
+
------------------------------------------
|
|
564
|
+
BooksControllerTest: test_should_get_index
|
|
565
|
+
------------------------------------------
|
|
566
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
567
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
568
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
569
|
+
--------------------------------------
|
|
570
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
571
|
+
--------------------------------------
|
|
572
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
573
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
574
|
+
------------------------
|
|
575
|
+
LibrailsTest: test_hello
|
|
576
|
+
------------------------
|
|
577
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
578
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
579
|
+
------------------------------------------
|
|
580
|
+
BooksControllerTest: test_should_get_index
|
|
581
|
+
------------------------------------------
|
|
582
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
583
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
585
|
+
------------------------
|
|
586
|
+
LibrailsTest: test_hello
|
|
587
|
+
------------------------
|
|
588
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
589
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
590
|
+
--------------------------------------
|
|
591
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
592
|
+
--------------------------------------
|
|
593
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
594
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
595
|
+
------------------------------------------
|
|
596
|
+
BooksControllerTest: test_should_get_index
|
|
597
|
+
------------------------------------------
|
|
598
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
599
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
600
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
601
|
+
[1m[36mFixture Delete (2.6ms)[0m [1mDELETE FROM "books"[0m
|
|
602
|
+
[1m[35mFixture Insert (0.8ms)[0m INSERT INTO "books" ("title", "author", "summary", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyText', '2016-10-26 04:42:27', '2016-10-26 04:42:27', 980190962)
|
|
603
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "books" ("title", "author", "summary", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyText', '2016-10-26 04:42:27', '2016-10-26 04:42:27', 298486374)[0m
|
|
604
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
605
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
606
|
+
------------------------
|
|
607
|
+
LibrailsTest: test_hello
|
|
608
|
+
------------------------
|
|
609
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
610
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
611
|
+
--------------------------------------
|
|
612
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
613
|
+
--------------------------------------
|
|
614
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
615
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
616
|
+
------------------------------------------
|
|
617
|
+
BooksControllerTest: test_should_get_index
|
|
618
|
+
------------------------------------------
|
|
619
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 980190962]]
|
|
620
|
+
Processing by BooksController#index as HTML
|
|
621
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books"[0m
|
|
622
|
+
Rendered books/index.html.erb within layouts/application (3.5ms)
|
|
623
|
+
Completed 200 OK in 189ms (Views: 188.6ms | ActiveRecord: 0.1ms)
|
|
624
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
625
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
626
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
627
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "books"[0m
|
|
628
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "books" ("title", "author", "summary", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyText', '2016-10-26 04:42:46', '2016-10-26 04:42:46', 980190962)
|
|
629
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "books" ("title", "author", "summary", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyText', '2016-10-26 04:42:46', '2016-10-26 04:42:46', 298486374)[0m
|
|
630
|
+
[1m[35m (8.1ms)[0m commit transaction
|
|
631
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
632
|
+
------------------------
|
|
633
|
+
LibrailsTest: test_hello
|
|
634
|
+
------------------------
|
|
635
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
636
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
637
|
+
--------------------------------------
|
|
638
|
+
LibrailsTest: test_rescue_mysql2_error
|
|
639
|
+
--------------------------------------
|
|
640
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
641
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
642
|
+
------------------------------------------
|
|
643
|
+
BooksControllerTest: test_should_get_index
|
|
644
|
+
------------------------------------------
|
|
645
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", 980190962]]
|
|
646
|
+
Processing by BooksController#index as HTML
|
|
647
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books"[0m
|
|
648
|
+
Rendered books/index.html.erb within layouts/application (2.8ms)
|
|
649
|
+
Completed 200 OK in 146ms (Views: 145.8ms | ActiveRecord: 0.1ms)
|
|
650
|
+
[1m[35m (0.1ms)[0m rollback transaction
|