diff --git a/.gitignore b/.gitignore index 74b0d5d2c..40b6a3061 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ build/ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: .rvmrc .DS_Store + +# Ignore master key for decrypting credentials and more. +/config/master.key diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 000000000..25c81fe39 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +ruby-2.5.1 \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..e665f46d3 --- /dev/null +++ b/Gemfile @@ -0,0 +1,81 @@ +source 'https://rubygems.org' +git_source(:github) { |repo| "https://github.com/#{repo}.git" } + +ruby '2.5.1' + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.2.3' +# Use postgresql as the database for Active Record +gem 'pg', '>= 0.18', '< 2.0' +# Use Puma as the app server +gem 'puma', '~> 3.11' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'mini_racer', platforms: :ruby + +# Use CoffeeScript for .coffee assets and views +# gem 'coffee-rails', '~> 4.2' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 4.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use ActiveStorage variant +# gem 'mini_magick', '~> 4.8' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +# Reduces boot times through caching; required in config/boot.rb +gem 'bootsnap', '>= 1.1.0', require: false + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] +end + +group :development do + # Access an interactive console on exception pages or by calling 'console' anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '>= 3.0.5', '< 3.2' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +group :test do + # Adds support for Capybara system testing and selenium driver + gem 'capybara', '>= 2.15' + gem 'selenium-webdriver' + # Easy installation and use of chromedriver to run system tests with Chrome + gem 'chromedriver-helper' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +gem 'jquery-turbolinks' +gem 'jquery-rails' +group :development, :test do + gem 'pry-rails' +end + +group :development do + gem 'better_errors' + gem 'binding_of_caller' + gem 'guard' + gem 'guard-minitest' +end + +group :test do + gem 'minitest-rails' + gem 'minitest-reporters' + gem 'minitest-skip' +end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..e5a2992a5 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,274 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.2.3) + actionpack (= 5.2.3) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailer (5.2.3) + actionpack (= 5.2.3) + actionview (= 5.2.3) + activejob (= 5.2.3) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.2.3) + actionview (= 5.2.3) + activesupport (= 5.2.3) + rack (~> 2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.2.3) + activesupport (= 5.2.3) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.2.3) + activesupport (= 5.2.3) + globalid (>= 0.3.6) + activemodel (5.2.3) + activesupport (= 5.2.3) + activerecord (5.2.3) + activemodel (= 5.2.3) + activesupport (= 5.2.3) + arel (>= 9.0) + activestorage (5.2.3) + actionpack (= 5.2.3) + activerecord (= 5.2.3) + marcel (~> 0.3.1) + activesupport (5.2.3) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.6.0) + public_suffix (>= 2.0.2, < 4.0) + ansi (1.5.0) + archive-zip (0.12.0) + io-like (~> 0.3.0) + arel (9.0.0) + better_errors (2.5.1) + coderay (>= 1.0.0) + erubi (>= 1.0.0) + rack (>= 0.9.0) + bindex (0.7.0) + binding_of_caller (0.8.0) + debug_inspector (>= 0.0.1) + bootsnap (1.4.3) + msgpack (~> 1.0) + builder (3.2.3) + byebug (11.0.1) + capybara (3.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (~> 1.2) + xpath (~> 3.2) + childprocess (0.9.0) + ffi (~> 1.0, >= 1.0.11) + chromedriver-helper (2.1.1) + archive-zip (~> 0.10) + nokogiri (~> 1.8) + coderay (1.1.2) + concurrent-ruby (1.1.5) + crass (1.0.4) + debug_inspector (0.0.3) + erubi (1.8.0) + execjs (2.7.0) + ffi (1.10.0) + formatador (0.2.5) + globalid (0.4.2) + activesupport (>= 4.2.0) + guard (2.15.0) + formatador (>= 0.2.4) + listen (>= 2.7, < 4.0) + lumberjack (>= 1.0.12, < 2.0) + nenv (~> 0.1) + notiffany (~> 0.0) + pry (>= 0.9.12) + shellany (~> 0.0) + thor (>= 0.18.1) + guard-compat (1.2.1) + guard-minitest (2.4.6) + guard-compat (~> 1.2) + minitest (>= 3.0) + i18n (1.6.0) + concurrent-ruby (~> 1.0) + io-like (0.3.0) + jbuilder (2.8.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.3) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + jquery-turbolinks (2.1.0) + railties (>= 3.1.0) + turbolinks + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + loofah (2.2.3) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + lumberjack (1.0.13) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (0.3.3) + mimemagic (~> 0.3.2) + method_source (0.9.2) + mimemagic (0.3.3) + mini_mime (1.0.1) + mini_portile2 (2.4.0) + minitest (5.11.3) + minitest-rails (3.0.0) + minitest (~> 5.8) + railties (~> 5.0) + minitest-reporters (1.3.6) + ansi + builder + minitest (>= 5.0) + ruby-progressbar + minitest-skip (0.0.1) + minitest (~> 5.0) + msgpack (1.2.9) + multi_json (1.13.1) + nenv (0.3.0) + nio4r (2.3.1) + nokogiri (1.10.2) + mini_portile2 (~> 2.4.0) + notiffany (0.1.1) + nenv (~> 0.1) + shellany (~> 0.0) + pg (1.1.4) + pry (0.12.2) + coderay (~> 1.1.0) + method_source (~> 0.9.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (3.0.3) + puma (3.12.1) + rack (2.0.7) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (5.2.3) + actioncable (= 5.2.3) + actionmailer (= 5.2.3) + actionpack (= 5.2.3) + actionview (= 5.2.3) + activejob (= 5.2.3) + activemodel (= 5.2.3) + activerecord (= 5.2.3) + activestorage (= 5.2.3) + activesupport (= 5.2.3) + bundler (>= 1.3.0) + railties (= 5.2.3) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.4) + loofah (~> 2.2, >= 2.2.2) + railties (5.2.3) + actionpack (= 5.2.3) + activesupport (= 5.2.3) + method_source + rake (>= 0.8.7) + thor (>= 0.19.0, < 2.0) + rake (12.3.2) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + regexp_parser (1.4.0) + ruby-progressbar (1.10.0) + ruby_dep (1.5.0) + rubyzip (1.2.2) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + selenium-webdriver (3.141.0) + childprocess (~> 0.5) + rubyzip (~> 1.2, >= 1.2.2) + shellany (0.0.1) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.2) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.3) + thread_safe (0.3.6) + tilt (2.0.9) + turbolinks (5.2.0) + turbolinks-source (~> 5.2) + turbolinks-source (5.2.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + uglifier (4.1.20) + execjs (>= 0.3.0, < 3) + web-console (3.7.0) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.7.0) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (3.2.0) + nokogiri (~> 1.8) + +PLATFORMS + ruby + +DEPENDENCIES + better_errors + binding_of_caller + bootsnap (>= 1.1.0) + byebug + capybara (>= 2.15) + chromedriver-helper + guard + guard-minitest + jbuilder (~> 2.5) + jquery-rails + jquery-turbolinks + listen (>= 3.0.5, < 3.2) + minitest-rails + minitest-reporters + minitest-skip + pg (>= 0.18, < 2.0) + pry-rails + puma (~> 3.11) + rails (~> 5.2.3) + sass-rails (~> 5.0) + selenium-webdriver + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +RUBY VERSION + ruby 2.5.1p57 + +BUNDLED WITH + 1.17.3 diff --git a/Guardfile b/Guardfile new file mode 100644 index 000000000..e34f706f4 --- /dev/null +++ b/Guardfile @@ -0,0 +1,9 @@ +guard :minitest, autorun: false, spring: true do + watch(%r{^app/(.+).rb$}) { |m| "test/#{m[1]}_test.rb" } + watch(%r{^app/controllers/application_controller.rb$}) { 'test/controllers' } + watch(%r{^app/controllers/(.+)_controller.rb$}) { |m| "test/integration/#{m[1]}_test.rb" } + watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" } + watch(%r{^lib/(.+).rb$}) { |m| "test/lib/#{m[1]}_test.rb" } + watch(%r{^test/.+_test.rb$}) + watch(%r{^test/test_helper.rb$}) { 'test' } +end diff --git a/Rakefile b/Rakefile new file mode 100644 index 000000000..e85f91391 --- /dev/null +++ b/Rakefile @@ -0,0 +1,6 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require_relative 'config/application' + +Rails.application.load_tasks diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js new file mode 100644 index 000000000..b16e53d6d --- /dev/null +++ b/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/images/important-sticky.jpeg b/app/assets/images/important-sticky.jpeg new file mode 100644 index 000000000..c4a8dceef Binary files /dev/null and b/app/assets/images/important-sticky.jpeg differ diff --git a/app/assets/images/pencil-paper-line-art.png b/app/assets/images/pencil-paper-line-art.png new file mode 100644 index 000000000..236979483 Binary files /dev/null and b/app/assets/images/pencil-paper-line-art.png differ diff --git a/app/assets/images/yellow-pinned-sticky.jpeg b/app/assets/images/yellow-pinned-sticky.jpeg new file mode 100644 index 000000000..a97f70b1a Binary files /dev/null and b/app/assets/images/yellow-pinned-sticky.jpeg differ diff --git a/app/assets/images/yellow-sticky.jpeg b/app/assets/images/yellow-sticky.jpeg new file mode 100644 index 000000000..fc2a340f6 Binary files /dev/null and b/app/assets/images/yellow-sticky.jpeg differ diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 000000000..82e6f0f6c --- /dev/null +++ b/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// This is a manifest file that'll be compiled into application.js, which will include all the files +// listed below. +// +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's +// vendor/assets/javascripts directory can be referenced here using a relative path. +// +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// compiled file. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require rails-ujs +//= require activestorage +//= require turbolinks +//= require_tree . diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js new file mode 100644 index 000000000..739aa5f02 --- /dev/null +++ b/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the `rails generate channel` command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/app/assets/javascripts/channels/.keep b/app/assets/javascripts/channels/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/javascripts/tasks.js b/app/assets/javascripts/tasks.js new file mode 100644 index 000000000..dee720fac --- /dev/null +++ b/app/assets/javascripts/tasks.js @@ -0,0 +1,2 @@ +// Place all the behaviors and hooks related to the matching controller here. +// All this logic will automatically be available in application.js. diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 000000000..d05ea0f51 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's + * vendor/assets/stylesheets directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss new file mode 100644 index 000000000..c5e7712d4 --- /dev/null +++ b/app/assets/stylesheets/tasks.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Tasks controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb new file mode 100644 index 000000000..d67269728 --- /dev/null +++ b/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb new file mode 100644 index 000000000..0ff5442f4 --- /dev/null +++ b/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 000000000..09705d12a --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,2 @@ +class ApplicationController < ActionController::Base +end diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb new file mode 100644 index 000000000..a5c27aa9f --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,99 @@ +class TasksController < ApplicationController + + # THE DECENDING ORDER SORT ON DATE_DUE IS NOT WORKING IN RAILS CONSOLE; DOES WORK IN THE BROWSER + + def index + @tasks = Task.all.order(date_due: :asc) + end + + def show + task_id = params[:id] + @task = Task.find_by(id: task_id) + + unless @task + redirect_to tasks_path + end + end + + def new + @task = Task.new(task_name: "to-do") + end + + def create + this_task = Task.new(task_params) + is_successful = this_task.save + + if is_successful + redirect_to tasks_path + else + head :not_found + end + end + + def edit + @task = Task.find_by(id: params[:id]) + + unless @task + redirect_to tasks_path + end + end + + def update + this_task = Task.find_by(id: params[:id]) + + is_successful = this_task.update(task_params) + + if is_successful + redirect_to task_path + else + redirect_to tasks_path + end + end + + def destroy + this_task = Task.find_by(id: params[:id]) + + is_successful = this_task.destroy + + if is_successful + redirect_to tasks_path + else + head :not_found + end + end + + def toggle_completed + this_task = Task.find_by(id: params[:id]) + # raise + # this_task.toggle(:completed) + # this_task[:date_completed] = Time.now + # this_task.save + + if this_task.completed == true + this_task.completed = false + this_task[:date_completed] = nil + elsif this_task.completed == false + this_task.completed = true + this_task[:date_completed] = Time.now + end + + this_task.save + + redirect_to tasks_path + end + + private + + def task_params + # Responsible for returning strong params as Rails wants it + # Tells Rails that we want params to look like this nested hash, and only this nested hash + # { + # book: { + # author: "some author", + # title: "some title", + # description: "description" + # } + # } + return params.require(:task).permit(:task_name, :description, :date_due, :date_completed, :completed) + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 000000000..de6be7945 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb new file mode 100644 index 000000000..ce894d00c --- /dev/null +++ b/app/helpers/tasks_helper.rb @@ -0,0 +1,2 @@ +module TasksHelper +end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 000000000..a009ace51 --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 000000000..286b2239d --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 000000000..10a4cba84 --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/models/task.rb b/app/models/task.rb new file mode 100644 index 000000000..3c2342421 --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,2 @@ +class Task < ApplicationRecord +end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..b9ce64348 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,15 @@ + + + + TaskList + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 000000000..cbd34d2e9 --- /dev/null +++ b/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 000000000..37f0bddbd --- /dev/null +++ b/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/app/views/tasks/_form_general.html.erb b/app/views/tasks/_form_general.html.erb new file mode 100644 index 000000000..59a9c4b7b --- /dev/null +++ b/app/views/tasks/_form_general.html.erb @@ -0,0 +1,14 @@ +<%= form_with model: @task do |f| %> +

Please update the details of this task as desired.

+ + <%= f.label :item %> + <%= f.text_field :task_name %> + + <%= f.label :description %> + <%= f.text_area :description %> + + <%= f.label :due_date %> + <%= f.text_field :date_due %> + + <%= f.submit action_name %> +<% end %> \ No newline at end of file diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb new file mode 100644 index 000000000..961051bce --- /dev/null +++ b/app/views/tasks/edit.html.erb @@ -0,0 +1 @@ +<%= render partial: "form_general", locals: {action_name: "Save Changes"} %> \ No newline at end of file diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb new file mode 100644 index 000000000..e8d136393 --- /dev/null +++ b/app/views/tasks/index.html.erb @@ -0,0 +1,23 @@ +

Function-Over-Form

+

to-do list

+

It's not pretty, but it helps you get the job done!

+ + +<%= link_to "new task", new_task_path %> \ No newline at end of file diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb new file mode 100644 index 000000000..eaccbb718 --- /dev/null +++ b/app/views/tasks/new.html.erb @@ -0,0 +1 @@ +<%= render partial: "form_general", locals: {action_name: "Make New Task"} %> \ No newline at end of file diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb new file mode 100644 index 000000000..6e36ae4c7 --- /dev/null +++ b/app/views/tasks/show.html.erb @@ -0,0 +1,24 @@ +

+ <%= @task.task_name %> +

+ +<%= image_tag "yellow-pinned-sticky.jpeg", alt: "Image of yellow sticky note with a push pin at the top" %> + +

+ <%= @task.description %> +

+ +

Due: + <%= @task.date_due %> +

+ +

Complete: + <%= @task.completed %> +

+ +<%= link_to "Back to task list", tasks_path %> + +<%= link_to "Edit #{@task.task_name}", edit_task_path(@task.id) %> + +<%= link_to "Delete #{@task.task_name}", + task_path(@task.id), method: :delete %> \ No newline at end of file diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 000000000..f19acf5b5 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) +load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails new file mode 100755 index 000000000..5badb2fde --- /dev/null +++ b/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake new file mode 100755 index 000000000..d87d5f578 --- /dev/null +++ b/bin/rake @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/setup b/bin/setup new file mode 100755 index 000000000..94fd4d797 --- /dev/null +++ b/bin/setup @@ -0,0 +1,36 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/spring b/bin/spring new file mode 100755 index 000000000..fb2ec2ebb --- /dev/null +++ b/bin/spring @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast. +# It gets overwritten when you run the `spring binstub` command. + +unless defined?(Spring) + require 'rubygems' + require 'bundler' + + lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) + spring = lockfile.specs.detect { |spec| spec.name == "spring" } + if spring + Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path + gem 'spring', spring.version + require 'spring/binstub' + end +end diff --git a/bin/update b/bin/update new file mode 100755 index 000000000..58bfaed51 --- /dev/null +++ b/bin/update @@ -0,0 +1,31 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/yarn b/bin/yarn new file mode 100755 index 000000000..460dd565b --- /dev/null +++ b/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +APP_ROOT = File.expand_path('..', __dir__) +Dir.chdir(APP_ROOT) do + begin + exec "yarnpkg", *ARGV + rescue Errno::ENOENT + $stderr.puts "Yarn executable was not detected in the system." + $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 + end +end diff --git a/config.ru b/config.ru new file mode 100644 index 000000000..f7ba0b527 --- /dev/null +++ b/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/config/application.rb b/config/application.rb new file mode 100644 index 000000000..77b3ec01b --- /dev/null +++ b/config/application.rb @@ -0,0 +1,26 @@ +require_relative 'boot' + +require 'rails/all' + +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) + +module TaskList + class Application < Rails::Application + config.generators do |g| + # Force new test files to be generated in the minitest-spec style + g.test_framework :minitest, spec: true + + # Always use .js files, never .coffee + g.javascript_engine :js + end + # Initialize configuration defaults for originally generated Rails version. + config.load_defaults 5.2 + + # Settings in config/environments/* take precedence over those specified here. + # Application configuration can go into files in config/initializers + # -- all .rb files in that directory are automatically loaded after loading + # the framework and any gems in your application. + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 000000000..b9e460cef --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,4 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. +require 'bootsnap/setup' # Speed up boot time by caching expensive operations. diff --git a/config/cable.yml b/config/cable.yml new file mode 100644 index 000000000..51266cdbe --- /dev/null +++ b/config/cable.yml @@ -0,0 +1,10 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> + channel_prefix: TaskList_production diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc new file mode 100644 index 000000000..748c2dfff --- /dev/null +++ b/config/credentials.yml.enc @@ -0,0 +1 @@ +Yz4nN6qUNdH2Xq6Vbwt+0RGScyewD7Riu6TRkk7MZwxE7Tqvsu4pO+XPbuA/e0DPsBMIht8Pc3EYBSm894hyOZR4qnxEbMpuqlfO5mzERsMGrJ7hiAMwOjSf74r/9yISOgg69C23rrLHaoSI/qxXvdtaOVH2bMzLXTv+SJjCCtk8HqovWVDhrjfQ+B8aWj+1rm/yCTChheuSzfiQ8phOEmGu2g7MdGLMPrmBdm/f5+xIjjjUEJ4TG5MXQdkhasLGHyMwKQnnlbmhJPVICktFm0CkC3WUF8I7mMAzVw/yLmXqsq9KA8pkuWY5zwPlo70vMac9MOSnfdYuWa6cwG7V1xhidgSyVVe65XJtTtaP/SBBatOKduPjVuzSu4R0Vtle84kwammzsLRI2PSwr8Tar8X5l74GM41iMBpw--6rymEDMj/DMqYSEX--sEb4AmRzOg+NshrGxSI9VQ== \ No newline at end of file diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 000000000..40243c8b5 --- /dev/null +++ b/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see Rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: TaskList_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: TaskList + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + <<: *default + database: TaskList_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: TaskList_production + username: TaskList + password: <%= ENV['TASKLIST_DATABASE_PASSWORD'] %> diff --git a/config/environment.rb b/config/environment.rb new file mode 100644 index 000000000..426333bb4 --- /dev/null +++ b/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb new file mode 100644 index 000000000..1311e3e4e --- /dev/null +++ b/config/environments/development.rb @@ -0,0 +1,61 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # In the development environment your application's code is reloaded on + # every request. This slows down response time but is perfect for development + # since you don't have to restart the web server when you make code changes. + config.cache_classes = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + # Run rails dev:cache to toggle caching. + if Rails.root.join('tmp', 'caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{2.days.to_i}" + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Store uploaded files on the local file system (see config/storage.yml for options) + config.active_storage.service = :local + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = false + + # Print deprecation notices to the Rails logger. + config.active_support.deprecation = :log + + # Raise an error on page load if there are pending migrations. + config.active_record.migration_error = :page_load + + # Highlight code that triggered database queries in logs. + config.active_record.verbose_query_logs = true + + # Debug mode disables concatenation and preprocessing of assets. + # This option may cause significant delays in view rendering with a large + # number of complex assets. + config.assets.debug = true + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/config/environments/production.rb b/config/environments/production.rb new file mode 100644 index 000000000..4cef70af5 --- /dev/null +++ b/config/environments/production.rb @@ -0,0 +1,94 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # Code is not reloaded between requests. + config.cache_classes = true + + # Eager load code on boot. This eager loads most of Rails and + # your application in memory, allowing both threaded web servers + # and those relying on copy on write to perform better. + # Rake tasks automatically ignore this option for performance. + config.eager_load = true + + # Full error reports are disabled and caching is turned on. + config.consider_all_requests_local = false + config.action_controller.perform_caching = true + + # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] + # or in config/master.key. This key is used to decrypt credentials (and other encrypted files). + # config.require_master_key = true + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # Compress JavaScripts and CSS. + config.assets.js_compressor = :uglifier + # config.assets.css_compressor = :sass + + # Do not fallback to assets pipeline if a precompiled asset is missed. + config.assets.compile = false + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # Specifies the header that your server uses for sending files. + # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache + # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX + + # Store uploaded files on the local file system (see config/storage.yml for options) + config.active_storage.service = :local + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "TaskList_#{Rails.env}" + + config.action_mailer.perform_caching = false + + # Ignore bad email addresses and do not raise email delivery errors. + # Set this to true and configure the email server for immediate delivery to raise delivery errors. + # config.action_mailer.raise_delivery_errors = false + + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to + # the I18n.default_locale when a translation cannot be found). + config.i18n.fallbacks = true + + # Send deprecation notices to registered listeners. + config.active_support.deprecation = :notify + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/config/environments/test.rb b/config/environments/test.rb new file mode 100644 index 000000000..0a38fd3ce --- /dev/null +++ b/config/environments/test.rb @@ -0,0 +1,46 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # The test environment is used exclusively to run your application's + # test suite. You never need to work with it otherwise. Remember that + # your test database is "scratch space" for the test suite and is wiped + # and recreated between test runs. Don't rely on the data there! + config.cache_classes = true + + # Do not eager load code on boot. This avoids loading your whole application + # just for the purpose of running a single test. If you are using a tool that + # preloads Rails for running tests, you may have to set it to true. + config.eager_load = false + + # Configure public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{1.hour.to_i}" + } + + # Show full error reports and disable caching. + config.consider_all_requests_local = true + config.action_controller.perform_caching = false + + # Raise exceptions instead of rendering exception templates. + config.action_dispatch.show_exceptions = false + + # Disable request forgery protection in test environment. + config.action_controller.allow_forgery_protection = false + + # Store uploaded files on the local file system in a temporary directory + config.active_storage.service = :test + + config.action_mailer.perform_caching = false + + # Tell Action Mailer not to deliver emails to the real world. + # The :test delivery method accumulates sent emails in the + # ActionMailer::Base.deliveries array. + config.action_mailer.delivery_method = :test + + # Print deprecation notices to the stderr. + config.active_support.deprecation = :stderr + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true +end diff --git a/config/initializers/action_view.rb b/config/initializers/action_view.rb new file mode 100644 index 000000000..142d382f8 --- /dev/null +++ b/config/initializers/action_view.rb @@ -0,0 +1 @@ +Rails.application.config.action_view.form_with_generates_remote_forms = false diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb new file mode 100644 index 000000000..89d2efab2 --- /dev/null +++ b/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb new file mode 100644 index 000000000..4b828e80c --- /dev/null +++ b/config/initializers/assets.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# Version of your assets, change this if you want to expire all your assets. +Rails.application.config.assets.version = '1.0' + +# Add additional assets to the asset load path. +# Rails.application.config.assets.paths << Emoji.images_path +# Add Yarn node_modules folder to the asset load path. +Rails.application.config.assets.paths << Rails.root.join('node_modules') + +# Precompile additional assets. +# application.js, application.css, and all non-JS/CSS in the app/assets +# folder are already added. +# Rails.application.config.assets.precompile += %w( admin.js admin.css ) diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb new file mode 100644 index 000000000..59385cdf3 --- /dev/null +++ b/config/initializers/backtrace_silencers.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } + +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. +# Rails.backtrace_cleaner.remove_silencers! diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb new file mode 100644 index 000000000..d3bcaa5ec --- /dev/null +++ b/config/initializers/content_security_policy.rb @@ -0,0 +1,25 @@ +# Be sure to restart your server when you modify this file. + +# Define an application-wide content security policy +# For further information see the following documentation +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy + +# Rails.application.config.content_security_policy do |policy| +# policy.default_src :self, :https +# policy.font_src :self, :https, :data +# policy.img_src :self, :https, :data +# policy.object_src :none +# policy.script_src :self, :https +# policy.style_src :self, :https + +# # Specify URI for violation reports +# # policy.report_uri "/csp-violation-report-endpoint" +# end + +# If you are using UJS then enable automatic nonce generation +# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } + +# Report CSP violations to a specified URI +# For further information see the following documentation: +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only +# Rails.application.config.content_security_policy_report_only = true diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb new file mode 100644 index 000000000..5a6a32d37 --- /dev/null +++ b/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb new file mode 100644 index 000000000..4a994e1e7 --- /dev/null +++ b/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb new file mode 100644 index 000000000..ac033bf9d --- /dev/null +++ b/config/initializers/inflections.rb @@ -0,0 +1,16 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym 'RESTful' +# end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb new file mode 100644 index 000000000..dc1899682 --- /dev/null +++ b/config/initializers/mime_types.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb new file mode 100644 index 000000000..bbfc3961b --- /dev/null +++ b/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# This file contains settings for ActionController::ParamsWrapper which +# is enabled by default. + +# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. +ActiveSupport.on_load(:action_controller) do + wrap_parameters format: [:json] +end + +# To enable root element in JSON for ActiveRecord objects. +# ActiveSupport.on_load(:active_record) do +# self.include_root_in_json = true +# end diff --git a/config/locales/en.yml b/config/locales/en.yml new file mode 100644 index 000000000..decc5a857 --- /dev/null +++ b/config/locales/en.yml @@ -0,0 +1,33 @@ +# Files in the config/locales directory are used for internationalization +# and are automatically loaded by Rails. If you want to use locales other +# than English, add the necessary files in this directory. +# +# To use the locales, use `I18n.t`: +# +# I18n.t 'hello' +# +# In views, this is aliased to just `t`: +# +# <%= t('hello') %> +# +# To use a different locale, set it with `I18n.locale`: +# +# I18n.locale = :es +# +# This would use the information in config/locales/es.yml. +# +# The following keys must be escaped otherwise they will not be retrieved by +# the default I18n backend: +# +# true, false, on, off, yes, no +# +# Instead, surround them with single quotes. +# +# en: +# 'true': 'foo' +# +# To learn more, please read the Rails Internationalization guide +# available at http://guides.rubyonrails.org/i18n.html. + +en: + hello: "Hello world" diff --git a/config/puma.rb b/config/puma.rb new file mode 100644 index 000000000..a5eccf816 --- /dev/null +++ b/config/puma.rb @@ -0,0 +1,34 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers: a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum; this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests; default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. +# +# preload_app! + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 000000000..eb89068f6 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,11 @@ +Rails.application.routes.draw do + root "tasks#index" + put "/tasks/:id/toggle_completed", to: "tasks#toggle_completed", as: "toggle_completed_action" + + resources :tasks + + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + + # get "/tasks", to: "tasks#index" + # get "/tasks/:id", to: "tasks#show", as: "task" +end diff --git a/config/spring.rb b/config/spring.rb new file mode 100644 index 000000000..9fa7863f9 --- /dev/null +++ b/config/spring.rb @@ -0,0 +1,6 @@ +%w[ + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +].each { |path| Spring.watch(path) } diff --git a/config/storage.yml b/config/storage.yml new file mode 100644 index 000000000..d32f76e8f --- /dev/null +++ b/config/storage.yml @@ -0,0 +1,34 @@ +test: + service: Disk + root: <%= Rails.root.join("tmp/storage") %> + +local: + service: Disk + root: <%= Rails.root.join("storage") %> + +# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) +# amazon: +# service: S3 +# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> +# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> +# region: us-east-1 +# bucket: your_own_bucket + +# Remember not to checkin your GCS keyfile to a repository +# google: +# service: GCS +# project: your_project +# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> +# bucket: your_own_bucket + +# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) +# microsoft: +# service: AzureStorage +# storage_account_name: your_account_name +# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> +# container: your_container_name + +# mirror: +# service: Mirror +# primary: local +# mirrors: [ amazon, google, microsoft ] diff --git a/db/migrate/20190409230620_create_tasks.rb b/db/migrate/20190409230620_create_tasks.rb new file mode 100644 index 000000000..2d14630fe --- /dev/null +++ b/db/migrate/20190409230620_create_tasks.rb @@ -0,0 +1,12 @@ +class CreateTasks < ActiveRecord::Migration[5.2] + def change + create_table :tasks do |t| + t.string :task_name + t.string :description + t.date :date_due + t.date :date_completed + + t.timestamps + end + end +end diff --git a/db/migrate/20190409233040_change_date_completed_type_tasks.rb b/db/migrate/20190409233040_change_date_completed_type_tasks.rb new file mode 100644 index 000000000..980cf6b51 --- /dev/null +++ b/db/migrate/20190409233040_change_date_completed_type_tasks.rb @@ -0,0 +1,5 @@ +class ChangeDateCompletedTypeTasks < ActiveRecord::Migration[5.2] + def change + change_column :tasks, :date_completed, :timestamp + end +end diff --git a/db/migrate/20190411214858_add_is_complete_column_to_tasks.rb b/db/migrate/20190411214858_add_is_complete_column_to_tasks.rb new file mode 100644 index 000000000..75094c14d --- /dev/null +++ b/db/migrate/20190411214858_add_is_complete_column_to_tasks.rb @@ -0,0 +1,5 @@ +class AddIsCompleteColumnToTasks < ActiveRecord::Migration[5.2] + def change + add_column :tasks, :completed, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..991bdfea1 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,28 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 2019_04_11_214858) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "tasks", force: :cascade do |t| + t.string "task_name" + t.string "description" + t.date "date_due" + t.datetime "date_completed" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.boolean "completed", default: false + end + +end diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 000000000..1beea2acc --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/lib/assets/.keep b/lib/assets/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/log/.keep b/log/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/log/development.log b/log/development.log new file mode 100644 index 000000000..1071d2138 --- /dev/null +++ b/log/development.log @@ -0,0 +1,5380 @@ +  (589.0ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (476.5ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/" for ::1 at 2019-04-08 14:39:44 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/elle/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/elle/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (6.8ms) +Completed 200 OK in 29ms (Views: 18.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 14:39:56 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-08 14:41:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 387ms (Views: 381.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 14:45:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (358.4ms) +Completed 500 Internal Server Error in 368ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `book' for #<#:0x00007ffe0d0dea40>: + app/views/tasks/index.html.erb:7:in `block in _app_views_tasks_index_html_erb___1561028883248089603_70364567404560' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___1561028883248089603_70364567404560' + +Started POST "/__better_errors/677bc738842015ec/variables" for ::1 at 2019-04-08 14:45:48 -0700 +Started GET "/tasks" for ::1 at 2019-04-08 14:46:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (484.1ms) +Completed 500 Internal Server Error in 496ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `book' for #<#:0x00007ffe093c8fc0>: + app/views/tasks/index.html.erb:7:in `block in _app_views_tasks_index_html_erb___1561028883248089603_70364526693480' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___1561028883248089603_70364526693480' + +Started POST "/__better_errors/6c3c81f1d3deb6b5/variables" for ::1 at 2019-04-08 14:46:25 -0700 +Started GET "/tasks" for ::1 at 2019-04-08 14:46:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 59ms (Views: 55.1ms | ActiveRecord: 0.0ms) + + +  (35.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (39.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ bin/rails:9 +  (39.1ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20190409230620) +  (0.3ms) BEGIN + ↳ bin/rails:9 +  (34.5ms) CREATE TABLE "tasks" ("id" bigserial primary key, "task_name" character varying, "description" character varying, "date_due" date, "date_completed" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/migrate/20190409230620_create_tasks.rb:3 + ActiveRecord::SchemaMigration Create (1.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190409230620"]] + ↳ bin/rails:9 +  (41.3ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-04-09 23:07:43.530357"], ["updated_at", "2019-04-09 23:07:43.530357"]] + ↳ bin/rails:9 +  (1.4ms) COMMIT + ↳ bin/rails:9 +  (0.4ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to ChangeDateCompletedTypeTasks (20190409233040) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (66.7ms) ALTER TABLE "tasks" ALTER COLUMN "date_completed" TYPE timestamp + ↳ db/migrate/20190409233040_change_date_completed_type_tasks.rb:3 + ActiveRecord::SchemaMigration Create (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190409233040"]] + ↳ bin/rails:9 +  (4.0ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (0.2ms) COMMIT + ↳ bin/rails:9 +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) BEGIN + Task Create (44.9ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Mail tax return"], ["description", "will need to calculate postage"], ["date_due", "0015-04-19"], ["created_at", "2019-04-09 23:45:04.047931"], ["updated_at", "2019-04-09 23:45:04.047931"]] +  (41.0ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.7ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Buy ice cream"], ["description", "vegan, buy for party, Laura b-day"], ["date_due", "2019-04-19"], ["created_at", "2019-04-09 23:47:11.371829"], ["updated_at", "2019-04-09 23:47:11.371829"]] +  (39.8ms) COMMIT + Task Load (42.7ms) SELECT "tasks".* FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2019-04-09 17:02:39 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (42.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (61.7ms) +Completed 200 OK in 409ms (Views: 333.7ms | ActiveRecord: 48.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 14:46:27 -0700 +  (4.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (86.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (115.0ms) +Completed 200 OK in 561ms (Views: 400.5ms | ActiveRecord: 141.2ms) + + +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (2.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddIsCompleteColumnToTasks (20190411214858) +  (41.3ms) BEGIN + ↳ bin/rails:9 +  (19.6ms) ALTER TABLE "tasks" ADD "completed" boolean DEFAULT FALSE + ↳ db/migrate/20190411214858_add_is_complete_column_to_tasks.rb:3 + ActiveRecord::SchemaMigration Create (4.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190411214858"]] + ↳ bin/rails:9 +  (2.6ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (2.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.4ms) BEGIN + ↳ bin/rails:9 +  (0.6ms) COMMIT + ↳ bin/rails:9 +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" +  (0.2ms) BEGIN + Task Create (46.2ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "mail city taxes"], ["description", "need two stamps"], ["date_due", "2019-04-15"], ["created_at", "2019-04-11 22:09:47.914305"], ["updated_at", "2019-04-11 22:09:47.914305"]] +  (1.9ms) COMMIT + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +  (0.2ms) BEGIN + Task Create (1.0ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "buy notebook"], ["description", "new notebook, can add pages and fold back"], ["date_due", "2019-05-17"], ["created_at", "2019-04-11 22:18:18.864217"], ["updated_at", "2019-04-11 22:18:18.864217"]] +  (40.7ms) COMMIT +  (0.2ms) BEGIN + Task Create (1.9ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "buy spare mouse"], ["description", "bluetooth"], ["created_at", "2019-04-11 22:18:53.111411"], ["updated_at", "2019-04-11 22:18:53.111411"]] +  (2.2ms) COMMIT + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" +  (0.9ms) BEGIN + Task Create (1.1ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "Weekend Wrrior #7"], ["description", "fatorial problem"], ["created_at", "2019-04-11 22:58:29.737041"], ["updated_at", "2019-04-11 22:58:29.737041"]] +  (41.7ms) COMMIT + Task Load (3.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +  (0.2ms) BEGIN + Task Update (44.4ms) UPDATE "tasks" SET "date_due" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["date_due", "2019-04-15"], ["updated_at", "2019-04-11 23:04:15.186281"], ["id", 1]] +  (41.0ms) COMMIT + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +  (0.3ms) BEGIN + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 3]] +  (1.4ms) COMMIT + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 [["task_name", "mail city taxes"]] +Started GET "/tasks" for ::1 at 2019-04-12 14:44:40 -0700 +  (45.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (41.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (73.5ms) +Completed 200 OK in 549ms (Views: 463.6ms | ActiveRecord: 54.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:14:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (24.4ms) +Completed 200 OK in 225ms (Views: 207.5ms | ActiveRecord: 3.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 15:14:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:17 +Completed 404 Not Found in 120ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:14:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 77ms (Views: 70.7ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 15:14:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (18.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:17 +Completed 404 Not Found in 21ms (ActiveRecord: 18.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:14:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (11.5ms) +Completed 200 OK in 99ms (Views: 90.2ms | ActiveRecord: 3.0ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 15:16:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (4.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:17 +Completed 404 Not Found in 7ms (ActiveRecord: 4.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:22:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 87ms (Views: 78.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 15:22:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:17 +Completed 404 Not Found in 4ms (ActiveRecord: 0.9ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 15:25:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:17 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (20.7ms) +Completed 500 Internal Server Error in 65ms (ActiveRecord: 10.0ms) + + + +NoMethodError - undefined method `title' for #: + app/views/tasks/show.html.erb:3:in `_app_views_tasks_show_html_erb___3939511404715227194_70362826366080' + +Started POST "/__better_errors/34e8ace4d0e51d14/variables" for ::1 at 2019-04-12 15:25:22 -0700 +Started GET "/tasks/" for ::1 at 2019-04-12 15:26:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 87ms (Views: 81.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 15:26:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (3.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:17 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (112.3ms) +Completed 500 Internal Server Error in 133ms (ActiveRecord: 3.2ms) + + + +NoMethodError - undefined method `title' for #: + app/views/tasks/show.html.erb:22:in `_app_views_tasks_show_html_erb___3939511404715227194_70362839635080' + +Started POST "/__better_errors/c069b7c141fb4644/variables" for ::1 at 2019-04-12 15:26:40 -0700 +Started GET "/tasks/" for ::1 at 2019-04-12 15:27:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 73ms (Views: 66.6ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-12 15:27:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:17 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.9ms) +Completed 200 OK in 64ms (Views: 55.1ms | ActiveRecord: 1.8ms) + + +Started GET "/tasks/4/edit" for ::1 at 2019-04-12 15:27:28 -0700 + +AbstractController::ActionNotFound - The action 'edit' could not be found for TasksController: + +Started POST "/__better_errors/41384f187123a860/variables" for ::1 at 2019-04-12 15:27:28 -0700 +Started GET "/tasks/4" for ::1 at 2019-04-12 15:27:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:17 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.1ms) +Completed 200 OK in 74ms (Views: 66.8ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/" for ::1 at 2019-04-12 15:34:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (46.0ms) +Completed 200 OK in 222ms (Views: 181.4ms | ActiveRecord: 15.6ms) + + +Started GET "/tasks/" for ::1 at 2019-04-12 15:34:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (30.7ms) +Completed 200 OK in 127ms (Views: 95.3ms | ActiveRecord: 12.5ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-12 15:35:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (3.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (9.1ms) +Completed 200 OK in 98ms (Views: 78.2ms | ActiveRecord: 5.3ms) + + +Started GET "/tasks/" for ::1 at 2019-04-13 09:21:05 -0700 + +ArgumentError - Invalid route name, already in use: 'task' +You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here: +http://guides.rubyonrails.org/routing.html#restricting-the-routes-created: + config/routes.rb:7:in `block in
' + config/routes.rb:1:in `
' + +Started POST "/__better_errors/e9554a232f5fbab2/variables" for ::1 at 2019-04-13 09:21:06 -0700 +Started GET "/tasks/" for ::1 at 2019-04-13 09:23:31 -0700 +  (46.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (63.5ms) +Completed 200 OK in 469ms (Views: 403.5ms | ActiveRecord: 48.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:23:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.4ms) +Completed 200 OK in 142ms (Views: 50.6ms | ActiveRecord: 9.8ms) + + +Started GET "/tasks/" for ::1 at 2019-04-13 09:57:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.8ms) +Completed 200 OK in 155ms (Views: 139.6ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks/" for ::1 at 2019-04-13 09:57:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 37ms (Views: 32.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/" for ::1 at 2019-04-13 10:17:23 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (393.6ms) +Completed 500 Internal Server Error in 429ms (ActiveRecord: 7.7ms) + + + +NameError - undefined local variable or method `new_task' for #<#:0x00007fbc96bd1eb0> +Did you mean? new_task_url: + app/views/tasks/index.html.erb:12:in `_app_views_tasks_index_html_erb__3945038151257783918_70224008713680' + +Started POST "/__better_errors/25a84ae007224645/variables" for ::1 at 2019-04-13 10:17:24 -0700 +Started GET "/tasks/" for ::1 at 2019-04-13 10:18:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 343ms (Views: 335.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 10:18:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.7ms) +Completed 200 OK in 54ms (Views: 47.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/" for ::1 at 2019-04-13 10:18:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (658.4ms) +Completed 500 Internal Server Error in 669ms (ActiveRecord: 0.7ms) + + + +NameError - undefined local variable or method `new_task' for #<#:0x00007fbc9c6213e8> +Did you mean? new_task_url: + app/views/tasks/index.html.erb:12:in `_app_views_tasks_index_html_erb__3945038151257783918_70224027127420' + +Started POST "/__better_errors/b96404c6b4ff096b/variables" for ::1 at 2019-04-13 10:18:47 -0700 +Started GET "/tasks/" for ::1 at 2019-04-13 10:18:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 65ms (Views: 59.7ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 10:19:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (0.7ms) +Completed 200 OK in 50ms (Views: 44.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 10:28:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 67ms (Views: 63.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 10:43:50 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (96.3ms) +Completed 200 OK in 259ms (Views: 251.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 10:45:28 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3npoU+H1U0RiebY69pBTsw6XAphVvD1fnkdzRLeviV9ci0Cfom4SFybkVlEShctSlnyBV5h09d3gQNFkYdFCQ==", "task"=>{"task_name"=>"Give your duck a bath", "description"=>"Looking good for Laura's visit! Be careful not to get soap in sensitive areas such as eyes.", "date_due"=>"2019-05-12"}, "commit"=>"Save"} +Completed 500 Internal Server Error in 608ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task' for # +Did you mean? @task: + app/controllers/tasks_controller.rb:24:in `create' + +Started POST "/__better_errors/308e90505756c907/variables" for ::1 at 2019-04-13 10:45:29 -0700 +Started POST "/tasks" for ::1 at 2019-04-13 10:47:05 -0700 + +AbstractController::ActionNotFound - The action 'create' could not be found for TasksController: + +Started POST "/__better_errors/679f32cac17b05a5/variables" for ::1 at 2019-04-13 10:47:06 -0700 +Started POST "/tasks" for ::1 at 2019-04-13 10:48:52 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"St1y8oqDdtGnJrCYliYRCcRl+3UgA5oY8mzBHMcM8aFEWYYsuXi2mARLLIV6icB9uQbD27pOYeCOW6x98qWoaw==", "task"=>{"task_name"=>"Give your duck a bath", "description"=>"Looking good for Laura's visit! Be careful not to get soap in sensitive areas such as eyes.", "date_due"=>"2019-05-12"}, "commit"=>"Save"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (10.1ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Give your duck a bath"], ["description", "Looking good for Laura's visit! Be careful not to get soap in sensitive areas such as eyes."], ["date_due", "2019-05-12"], ["created_at", "2019-04-13 17:48:52.942121"], ["updated_at", "2019-04-13 17:48:52.942121"]] + ↳ app/controllers/tasks_controller.rb:24 +  (4.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 46ms (ActiveRecord: 24.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 10:48:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 70ms (Views: 62.6ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 10:52:20 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 85ms (Views: 79.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 10:53:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (47.0ms) +Completed 200 OK in 105ms (Views: 102.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 10:53:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 40ms (Views: 36.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 10:54:19 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 51ms (Views: 47.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 10:54:36 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 44ms (Views: 38.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 10:55:15 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kjSz644lTT39172bDvDfczeEIYMi313MHyOYW8fWl+GcsEc1vd6NdF66IYbiXw4HSucZLbiSpjRjFPU68n/OKw==", "task"=>{"task_name"=>"Take a break!", "description"=>"Play your cello, stretch, learn that wheel thing.", "date_due"=>"today"}, "commit"=>"Save"} +  (1.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (0.9ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "Take a break!"], ["description", "Play your cello, stretch, learn that wheel thing."], ["created_at", "2019-04-13 17:55:15.135725"], ["updated_at", "2019-04-13 17:55:15.135725"]] + ↳ app/controllers/tasks_controller.rb:24 +  (41.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 54ms (ActiveRecord: 43.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 10:55:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 46ms (Views: 39.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-13 10:56:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (7.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (22.1ms) +Completed 200 OK in 189ms (Views: 134.8ms | ActiveRecord: 10.9ms) + + + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Started GET "/tasks" for ::1 at 2019-04-13 13:56:14 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (19.5ms) +Completed 200 OK in 427ms (Views: 396.4ms | ActiveRecord: 7.0ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-13 13:56:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.5ms) +Completed 200 OK in 94ms (Views: 69.9ms | ActiveRecord: 11.9ms) + + +Started GET "/tasks/8/edit" for ::1 at 2019-04-13 13:56:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"8"} + Task Load (8.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (42.0ms) +Completed 200 OK in 105ms (Views: 88.4ms | ActiveRecord: 8.4ms) + + +Started PATCH "/tasks/8" for ::1 at 2019-04-13 13:57:01 -0700 + +AbstractController::ActionNotFound - The action 'update' could not be found for TasksController: + +Started POST "/__better_errors/51a856de27d85208/variables" for ::1 at 2019-04-13 13:57:02 -0700 +Started PATCH "/tasks/8" for ::1 at 2019-04-13 14:10:56 -0700 +  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"QFKDdNAsxSotarXwQjEiSeuNcT7qyaUDgn41Up8x4C1O1neq49cFY44HKe2unvM9lu5JkHCEXvv+SVgzqpi55w==", "task"=>{"task_name"=>"Take a break!", "description"=>"Make some tea, play your cello, stretch, learn that wheel thing.", "date_due"=>""}, "commit"=>"Save", "id"=>"8"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (43.2ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "Make some tea, play your cello, stretch, learn that wheel thing."], ["updated_at", "2019-04-13 21:10:57.251474"], ["id", 8]] + ↳ app/controllers/tasks_controller.rb:44 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 221ms (ActiveRecord: 50.6ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-13 14:11:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (474.7ms) +Completed 200 OK in 596ms (Views: 588.0ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/8/edit" for ::1 at 2019-04-13 14:11:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"8"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (65.6ms) +Completed 200 OK in 150ms (Views: 135.3ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/8" for ::1 at 2019-04-13 14:11:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7rGYArk4YlHOuwQRk9STfC5iDNJDCNNTYJXwhzM5Etv3eoQXAmoOTLOG27CI+e5Y1VesPte04MzxaAkHqjExnw==", "task"=>{"task_name"=>"Take a break!", "description"=>"Do it! Make some tea, play your cello, stretch, learn that wheel thing.", "date_due"=>""}, "commit"=>"Save", "id"=>"8"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (1.6ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "Do it! Make some tea, play your cello, stretch, learn that wheel thing."], ["updated_at", "2019-04-13 21:11:35.135285"], ["id", 8]] + ↳ app/controllers/tasks_controller.rb:44 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 172ms (ActiveRecord: 4.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 14:17:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (27.2ms) +Completed 200 OK in 137ms (Views: 106.7ms | ActiveRecord: 13.7ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-13 14:17:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.5ms) +Completed 200 OK in 72ms (Views: 61.6ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-13 14:17:21 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.2ms) +Completed 200 OK in 111ms (Views: 100.7ms | ActiveRecord: 1.1ms) + + +Started PATCH "/tasks/5" for ::1 at 2019-04-13 14:17:32 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"dhZwkwOM85PcwZ8/K4pVgP6yNFpSYbec02CUF+1PX/fvOrtNzf1TvihyJG+ZXjJ+8lCqlzv2X4YIEATDzLmLBg==", "task"=>{"task_name"=>"buy spare mouse", "description"=>"bluetooth, ok to be rechargeable", "date_due"=>""}, "commit"=>"Save", "id"=>"5"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (0.7ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "bluetooth, ok to be rechargeable"], ["updated_at", "2019-04-13 21:17:32.834295"], ["id", 5]] + ↳ app/controllers/tasks_controller.rb:44 +  (42.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Completed 500 Internal Server Error in 306ms (ActiveRecord: 43.8ms) + + + +NameError - undefined local variable or method `book' for #: + app/controllers/tasks_controller.rb:47:in `update' + +Started POST "/__better_errors/7e6c64dea7fdbbdb/variables" for ::1 at 2019-04-13 14:17:33 -0700 +Started PATCH "/tasks/5" for ::1 at 2019-04-13 14:18:02 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"GXSN9hjPb/qSU5oTFUtTdAwyB3vGZD+n4smbnVSI2GIX8HkoKzSvszE+Bg755IIAcVE/1VwpxF+e/vb8YSGBqA==", "task"=>{"task_name"=>"buy spare mouse", "description"=>"bluetooth, ok to be rechargeable", "date_due"=>""}, "commit"=>"Save", "id"=>"5"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 +  (0.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Completed 500 Internal Server Error in 325ms (ActiveRecord: 5.4ms) + + + +NameError - undefined local variable or method `book_path' for # +Did you mean? root_path: + app/controllers/tasks_controller.rb:47:in `update' + +Started POST "/__better_errors/a1cdad507c8d4c67/variables" for ::1 at 2019-04-13 14:18:03 -0700 +Started PATCH "/tasks/5" for ::1 at 2019-04-13 14:18:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"GXSN9hjPb/qSU5oTFUtTdAwyB3vGZD+n4smbnVSI2GIX8HkoKzSvszE+Bg755IIAcVE/1VwpxF+e/vb8YSGBqA==", "task"=>{"task_name"=>"buy spare mouse", "description"=>"bluetooth, ok to be rechargeable", "date_due"=>""}, "commit"=>"Save", "id"=>"5"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/5 +Completed 302 Found in 25ms (ActiveRecord: 7.4ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-13 14:18:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.3ms) +Completed 200 OK in 61ms (Views: 54.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 16:36:03 -0700 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (30.4ms) +Completed 200 OK in 453ms (Views: 414.5ms | ActiveRecord: 11.5ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-13 16:36:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.7ms) +Completed 200 OK in 74ms (Views: 60.3ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/8/edit" for ::1 at 2019-04-13 16:36:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"8"} + Task Load (14.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (34.8ms) + Rendered tasks/edit.html.erb within layouts/application (43.3ms) +Completed 200 OK in 117ms (Views: 94.6ms | ActiveRecord: 14.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 16:36:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.2ms) + Rendered tasks/new.html.erb within layouts/application (7.2ms) +Completed 200 OK in 39ms (Views: 34.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/" for ::1 at 2019-04-13 20:48:58 -0700 +  (2.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (23.3ms) +Completed 200 OK in 412ms (Views: 387.8ms | ActiveRecord: 7.2ms) + + +Started POST "/tasks/2" for ::1 at 2019-04-13 20:49:11 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/" for ::1 at 2019-04-13 20:49:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 57ms (Views: 50.6ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/" for ::1 at 2019-04-13 20:49:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 34ms (Views: 30.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/" for ::1 at 2019-04-13 20:55:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (15.2ms) +Completed 200 OK in 83ms (Views: 65.1ms | ActiveRecord: 7.4ms) + + +Started POST "/tasks/2" for ::1 at 2019-04-13 20:55:32 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/tasks/2" for ::1 at 2019-04-13 20:56:58 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/" for ::1 at 2019-04-13 20:57:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 +  (0.2ms) BEGIN + ↳ app/views/tasks/index.html.erb:7 + Task Destroy (44.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 1]] + ↳ app/views/tasks/index.html.erb:7 +  (1.4ms) COMMIT + ↳ app/views/tasks/index.html.erb:7 +  (0.2ms) BEGIN + ↳ app/views/tasks/index.html.erb:7 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 2]] + ↳ app/views/tasks/index.html.erb:7 +  (41.5ms) COMMIT + ↳ app/views/tasks/index.html.erb:7 +  (0.2ms) BEGIN + ↳ app/views/tasks/index.html.erb:7 + Task Destroy (2.7ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 7]] + ↳ app/views/tasks/index.html.erb:7 +  (1.8ms) COMMIT + ↳ app/views/tasks/index.html.erb:7 +  (0.2ms) BEGIN + ↳ app/views/tasks/index.html.erb:7 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 4]] + ↳ app/views/tasks/index.html.erb:7 +  (1.4ms) COMMIT + ↳ app/views/tasks/index.html.erb:7 +  (0.2ms) BEGIN + ↳ app/views/tasks/index.html.erb:7 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 6]] + ↳ app/views/tasks/index.html.erb:7 +  (1.3ms) COMMIT + ↳ app/views/tasks/index.html.erb:7 +  (0.2ms) BEGIN + ↳ app/views/tasks/index.html.erb:7 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 8]] + ↳ app/views/tasks/index.html.erb:7 +  (1.3ms) COMMIT + ↳ app/views/tasks/index.html.erb:7 +  (0.2ms) BEGIN + ↳ app/views/tasks/index.html.erb:7 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 5]] + ↳ app/views/tasks/index.html.erb:7 +  (1.2ms) COMMIT + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (133.3ms) +Completed 200 OK in 193ms (Views: 88.0ms | ActiveRecord: 100.8ms) + + +Started POST "/tasks/4" for ::1 at 2019-04-13 20:58:36 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/4"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/tasks/2" for ::1 at 2019-04-13 21:00:13 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/" for ::1 at 2019-04-13 21:08:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 93ms (Views: 83.1ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/" for ::1 at 2019-04-13 21:08:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 37ms (Views: 33.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 21:08:26 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (90.4ms) + Rendered tasks/new.html.erb within layouts/application (96.7ms) +Completed 200 OK in 142ms (Views: 134.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 21:09:02 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"D7H6XFcK6Khte76CczKb/39lVZbHGVpEWpk1Vx3x9ezxuj7/ZgSFrSBpyQPcos2c+Qb7mfgueWZTYSvfnqgOwA==", "task"=>{"task_name"=>"groceries", "description"=>"got to the store", "date_due"=>""}, "commit"=>"Make New Task"} +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (85.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "groceries"], ["description", "got to the store"], ["created_at", "2019-04-14 04:09:02.133139"], ["updated_at", "2019-04-14 04:09:02.133139"]] + ↳ app/controllers/tasks_controller.rb:24 +  (1.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 103ms (ActiveRecord: 87.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:09:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 44ms (Views: 40.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 21:09:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (5.7ms) + Rendered tasks/new.html.erb within layouts/application (11.8ms) +Completed 200 OK in 160ms (Views: 155.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 21:09:37 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"eYVPpkouJAQ2BUENcCcyEKuAzDPnHXJef1FjkqXIb42HjosFeyBJAXsXNozft2RzLeNiPNgqUXx2qX0aJpGUoQ==", "task"=>{"task_name"=>"Take a break!", "description"=>"Do it! Make some tea, play your cello, stretch, learn that wheel thing.", "date_due"=>"2019-04-13"}, "commit"=>"Make New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (0.7ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Do it! Make some tea, play your cello, stretch, learn that wheel thing."], ["date_due", "2019-04-13"], ["created_at", "2019-04-14 04:09:37.957968"], ["updated_at", "2019-04-14 04:09:37.957968"]] + ↳ app/controllers/tasks_controller.rb:24 +  (40.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 41.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:09:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 35ms (Views: 31.5ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/9" for ::1 at 2019-04-13 21:09:43 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"TpEf9D8XbSfydD1EyStr6IH4fE3v8zrRUuNP4VZKN5ZAFesqDOytblEZoVklhLqc/JtE43W+wSku1CKAY+NuXA==", "id"=>"9"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Destroy (1.1ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 9]] + ↳ app/controllers/tasks_controller.rb:56 +  (41.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 54ms (ActiveRecord: 43.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:09:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 36ms (Views: 32.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 21:09:49 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (3.2ms) + Rendered tasks/new.html.erb within layouts/application (8.7ms) +Completed 200 OK in 78ms (Views: 71.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 21:10:04 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"azoS8X7v+DWYS+kuJ2olYW/GlrcaxhizJJoObi0lwrSVMdZST+GVMNVZnq+I+nMC6aU4uCXxO5EtYhDmrnw5mA==", "task"=>{"task_name"=>"Give your duck a bath", "description"=>"Looking good for Laura's visit! Be careful not to get soap in sensitive areas such as eyes.", "date_due"=>"2019-05-12"}, "commit"=>"Make New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Give your duck a bath"], ["description", "Looking good for Laura's visit! Be careful not to get soap in sensitive areas such as eyes."], ["date_due", "2019-05-12"], ["created_at", "2019-04-14 04:10:05.003561"], ["updated_at", "2019-04-14 04:10:05.003561"]] + ↳ app/controllers/tasks_controller.rb:24 +  (42.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 43.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:10:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 21:10:07 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (3.5ms) + Rendered tasks/new.html.erb within layouts/application (6.7ms) +Completed 200 OK in 68ms (Views: 64.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 21:10:29 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"8yeBujUN54QoOirmslfrcj19GQGgULU+F9T67qbT+mcNLEUZBAOKgWUoXWcdx70Rux63Dp9nlhweLORmJYoBSw==", "task"=>{"task_name"=>"Take another break!", "description"=>"you know you need to", "date_due"=>""}, "commit"=>"Make New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (41.6ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "Take another break!"], ["description", "you know you need to"], ["created_at", "2019-04-14 04:10:29.257750"], ["updated_at", "2019-04-14 04:10:29.257750"]] + ↳ app/controllers/tasks_controller.rb:24 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 43.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:10:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 46ms (Views: 42.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 21:10:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (3.9ms) + Rendered tasks/new.html.erb within layouts/application (10.2ms) +Completed 200 OK in 68ms (Views: 60.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 21:10:54 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"bfIUjMf4ERT5tCJWQgmtRQNncfKTSQTNNGTztMUuaXST+dAv9vZ8EbSmVdftmfsmhQTf/ax+J+89nO08RneSWA==", "task"=>{"task_name"=>"meal prep", "description"=>"make food for the week", "date_due"=>"2019-04-21"}, "commit"=>"Make New Task"} +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (0.7ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "meal prep"], ["description", "make food for the week"], ["date_due", "2019-04-21"], ["created_at", "2019-04-14 04:10:54.404119"], ["updated_at", "2019-04-14 04:10:54.404119"]] + ↳ app/controllers/tasks_controller.rb:24 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:10:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 38ms (Views: 34.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 21:10:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (4.8ms) + Rendered tasks/new.html.erb within layouts/application (10.4ms) +Completed 200 OK in 97ms (Views: 86.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 21:11:21 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aePRvTIQVamDnfbeY6j5p1FoXT828DFnYs9LbFbi7JCX6BUeAx44rM6PgV/MOK/E1wvzMAnHEkVrN1Xk1bsXvA==", "task"=>{"task_name"=>"debug delete", "description"=>"figure out what happened to all your original data", "date_due"=>""}, "commit"=>"Make New Task"} +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (41.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "debug delete"], ["description", "figure out what happened to all your original data"], ["created_at", "2019-04-14 04:11:21.030743"], ["updated_at", "2019-04-14 04:11:21.030743"]] + ↳ app/controllers/tasks_controller.rb:24 +  (1.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 43.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:11:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/12" for ::1 at 2019-04-13 21:11:29 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"ilqSNFdGlEV3B6C2aMmYANxngCcYbTZ7BexRyyYxrXiE3mbqZL1UDNRqPKuEZkl0oQS4iYIgzYN52zyqE5j0sg==", "id"=>"12"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Destroy (0.7ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 12]] + ↳ app/controllers/tasks_controller.rb:56 +  (42.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 44.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:11:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.7ms) +Completed 200 OK in 42ms (Views: 36.1ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 21:14:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (12.0ms) +Completed 200 OK in 140ms (Views: 125.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:17:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (15.3ms) +Completed 500 Internal Server Error in 31ms (ActiveRecord: 2.4ms) + + + +NoMethodError - undefined method `id' for nil:NilClass: + app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb___3707018366548343754_70133958548180' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___3707018366548343754_70133958548180' + +Started POST "/__better_errors/edae9273792f1624/variables" for ::1 at 2019-04-13 21:17:35 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 21:17:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 80ms (Views: 74.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/13/edit" for ::1 at 2019-04-13 21:18:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (8.4ms) + Rendered tasks/edit.html.erb within layouts/application (17.6ms) +Completed 200 OK in 89ms (Views: 82.8ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/13" for ::1 at 2019-04-13 21:18:20 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"zsiNtjqIbLxFMD4WAB2Y1wju1BSad9iRCGveFddp8y1upwk6fsdVrWvE9D+RKnhXtK1bqHdJDI+yAqTk/Czl6w==", "task"=>{"task_name"=>"meal prep", "description"=>"buy and make food for the week", "date_due"=>"2019-04-21"}, "commit"=>"Save Changes", "id"=>"13"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (41.0ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "buy and make food for the week"], ["updated_at", "2019-04-14 04:18:20.270038"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:44 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 54ms (ActiveRecord: 43.9ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-13 21:18:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.5ms) +Completed 200 OK in 65ms (Views: 60.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:18:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 83ms (Views: 76.6ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 21:18:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (38.6ms) + Rendered tasks/new.html.erb within layouts/application (45.2ms) +Completed 200 OK in 94ms (Views: 86.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 21:18:44 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1gPSiZlADnHtzkWuVMyy6b0eZYZ1oBCPdDOs/EN/yD4oCBYqqE5jdKDcMi/7XOSKO33LiUqXM619y7J0wCYzEg==", "task"=>{"task_name"=>"Amazon", "description"=>"place order", "date_due"=>""}, "commit"=>"Make New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (0.7ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "Amazon"], ["description", "place order"], ["created_at", "2019-04-14 04:18:44.805109"], ["updated_at", "2019-04-14 04:18:44.805109"]] + ↳ app/controllers/tasks_controller.rb:24 +  (39.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 40.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:18:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 33ms (Views: 28.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-13 21:18:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (5.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.4ms) +Completed 200 OK in 80ms (Views: 67.2ms | ActiveRecord: 5.1ms) + + +Started GET "/tasks/15/edit" for ::1 at 2019-04-13 21:18:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (7.6ms) + Rendered tasks/edit.html.erb within layouts/application (14.0ms) +Completed 200 OK in 94ms (Views: 88.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/15" for ::1 at 2019-04-13 21:18:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"zQAGqqaw3EkVOhwH7bxM9/tae5iqp5swpXn8hu9N8VX0kL2dItH+q+lml4nJUbW9La3Ap/x7HZyqFiBPpJd8Kg==", "task"=>{"task_name"=>"Amazon", "description"=>"place order, use gift card", "date_due"=>""}, "commit"=>"Save Changes", "id"=>"15"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (0.8ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "place order, use gift card"], ["updated_at", "2019-04-14 04:18:56.770751"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:44 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 12ms (ActiveRecord: 2.8ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-13 21:18:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 39ms (Views: 34.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:18:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 79ms (Views: 71.9ms | ActiveRecord: 3.8ms) + + +Started GET "/tasks/15/edit" for ::1 at 2019-04-13 21:19:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (6.2ms) + Rendered tasks/edit.html.erb within layouts/application (10.9ms) +Completed 200 OK in 89ms (Views: 82.8ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/15" for ::1 at 2019-04-13 21:19:12 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"uPUDrN8itBjAHM49FL40SY+d1VTZ8v2nN6sMM/zuj0iBZbibW0OW+jxARbMwU80DWWpua48uews4xND6tzQCNw==", "task"=>{"task_name"=>"Amazon", "description"=>"place order, use gift card or points", "date_due"=>""}, "commit"=>"Save Changes", "id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (41.4ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "place order, use gift card or points"], ["updated_at", "2019-04-14 04:19:12.165115"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:44 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 51ms (ActiveRecord: 43.4ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-13 21:19:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 32ms (Views: 28.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:19:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 65ms (Views: 57.1ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 21:19:24 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (4.2ms) + Rendered tasks/new.html.erb within layouts/application (10.4ms) +Completed 200 OK in 75ms (Views: 67.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 21:19:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7dR+sb1xC0nxEcCcFArgqE9KdY9V8+86fZJOAPLZjdwT37oSjH9mTLwDtx27mrbLySnbgGrEzBh0alCIcYB28A==", "task"=>{"task_name"=>"to-do", "description"=>"test description", "date_due"=>""}, "commit"=>"Make New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (1.2ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "to-do"], ["description", "test description"], ["created_at", "2019-04-14 04:19:32.460887"], ["updated_at", "2019-04-14 04:19:32.460887"]] + ↳ app/controllers/tasks_controller.rb:24 +  (41.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 42.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:19:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 45ms (Views: 41.7ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/16" for ::1 at 2019-04-13 21:19:38 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"iZpkAqjEKX6xAttJiEWC5QYb5R1hJH62GjMn3N7a7AWHHpDcmz/pNxJvR1Rk6lORe3jds/tphU5mBEq963O1zw==", "id"=>"16"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Destroy (0.8ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 16]] + ↳ app/controllers/tasks_controller.rb:56 +  (40.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 46ms (ActiveRecord: 42.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:19:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 39ms (Views: 34.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:21:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 59ms (Views: 54.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 21:28:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (18.3ms) +Completed 200 OK in 98ms (Views: 75.4ms | ActiveRecord: 11.6ms) + + +Started PATCH "/tasks/10" for ::1 at 2019-04-13 21:28:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"pmHsd3ZX0lMXd9PbFJAab1EPynXnx7LJJO8ZsYRoCG6o5RipRawSGrQaT8b4P8sbLGzy232KSTFY2HTQscFRpA==", "id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +Completed 400 Bad Request in 5ms (ActiveRecord: 0.9ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:80:in `task_params' + app/controllers/tasks_controller.rb:44:in `update' + +Started POST "/__better_errors/cf58df77af4efef6/variables" for ::1 at 2019-04-13 21:28:56 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 21:35:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (45.7ms) +Completed 500 Internal Server Error in 76ms (ActiveRecord: 11.8ms) + + + +NoMethodError - undefined method `toggle_completed_status' for #: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___3707018366548343754_70133959165700' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___3707018366548343754_70133959165700' + +Started POST "/__better_errors/aac4c3cfe1dd2b7b/variables" for ::1 at 2019-04-13 21:35:43 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 21:36:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (9.1ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.8ms) + + + +NoMethodError - undefined method `toggle_completed_status' for nil:NilClass: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___3707018366548343754_70133958328440' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___3707018366548343754_70133958328440' + +Started POST "/__better_errors/be9bdf75c67cffce/variables" for ::1 at 2019-04-13 21:36:40 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 21:36:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (26.6ms) +Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.4ms) + + + +NoMethodError - undefined method `toggle_completed_status' for #: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___3707018366548343754_70133956763480' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___3707018366548343754_70133956763480' + +Started POST "/__better_errors/f51044e0f977db18/variables" for ::1 at 2019-04-13 21:36:58 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 21:37:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (25.8ms) +Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.5ms) + + + +NoMethodError - undefined method `toggle_completed_status' for #: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___3707018366548343754_70133966091940' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___3707018366548343754_70133966091940' + +Started POST "/__better_errors/7340b241cce0337a/variables" for ::1 at 2019-04-13 21:37:35 -0700 +Started POST "/__better_errors/7340b241cce0337a/variables" for ::1 at 2019-04-13 21:46:17 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 21:46:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 24ms (ActiveRecord: 4.3ms) + + + +SyntaxError - syntax error, unexpected '}', expecting => +...data: {toggle_completed_status});@output_buffer.safe_append=' +... ^ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:17: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:22: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:24: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/index.html.erb:12:in `' + +Started POST "/__better_errors/0bc7aed82342f4a3/variables" for ::1 at 2019-04-13 21:46:23 -0700 + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC LIMIT $1 [["LIMIT", 11]] + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-13 21:47:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected '}', expecting => +... {task.toggle_completed_status});@output_buffer.safe_append=' +... ^ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:17: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:22: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:24: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/index.html.erb:12:in `' + +Started POST "/__better_errors/75752031668e43ab/variables" for ::1 at 2019-04-13 21:47:39 -0700 + Task Load (2.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC LIMIT $1 [["LIMIT", 11]] + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-13 21:48:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (23.9ms) +Completed 500 Internal Server Error in 36ms (ActiveRecord: 0.5ms) + + + +NoMethodError - undefined method `toggle_completed_status' for #: + app/views/tasks/index.html.erb:12:in `block in _app_views_tasks_index_html_erb___3707018366548343754_70133964479400' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___3707018366548343754_70133964479400' + +Started POST "/__better_errors/dd4c0b32aaa7401d/variables" for ::1 at 2019-04-13 21:48:13 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 21:54:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (36.0ms) +Completed 500 Internal Server Error in 59ms (ActiveRecord: 8.2ms) + + + +NoMethodError - undefined method `toggle_completed_status' for #: + app/views/tasks/index.html.erb:12:in `block in _app_views_tasks_index_html_erb___3707018366548343754_70133957631820' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___3707018366548343754_70133957631820' + +Started POST "/__better_errors/4bc49f2571ae236e/variables" for ::1 at 2019-04-13 21:54:09 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 08:40:17 -0700 +  (4.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (41.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (62.7ms) +Completed 200 OK in 493ms (Views: 381.9ms | ActiveRecord: 87.1ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-14 08:41:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (64.0ms) + Rendered tasks/new.html.erb within layouts/application (71.2ms) +Completed 200 OK in 157ms (Views: 149.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 08:42:11 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"14EMIdfifaSYiYWnCpwohoLors/+HjbMIpTB4aDk9lkpisiC5uwQodWb8ialDH7lBIsAwMEpFe4rbN9pI70NdQ==", "task"=>{"task_name"=>"to-do item test 537", "description"=>"testing the destroy test", "date_due"=>""}, "commit"=>"Make New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (81.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "to-do item test 537"], ["description", "testing the destroy test"], ["created_at", "2019-04-14 15:42:11.234308"], ["updated_at", "2019-04-14 15:42:11.234308"]] + ↳ app/controllers/tasks_controller.rb:24 +  (1.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 89ms (ActiveRecord: 83.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 08:42:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 38ms (Views: 33.3ms | ActiveRecord: 0.5ms) + + +Started DELETE "/tasks/17" for ::1 at 2019-04-14 08:42:59 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"tcvMG8MNkVK/3eSVQT3gaIjkp5pQvnFwyn6c8HB4p3u7TzjF8PZRGxyweIitkjEc9YefNMrzioi2SfGRRdH+sQ==", "id"=>"17"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 17]] + ↳ app/controllers/tasks_controller.rb:56 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 64ms (ActiveRecord: 42.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 08:42:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 38ms (Views: 33.8ms | ActiveRecord: 0.4ms) + + + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2019-04-14 10:45:25 -0700 +  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (21.5ms) +Completed 200 OK in 380ms (Views: 357.2ms | ActiveRecord: 6.8ms) + + +Started GET "/tasks/15/edit" for ::1 at 2019-04-14 10:45:53 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (45.9ms) + Rendered tasks/edit.html.erb within layouts/application (66.5ms) +Completed 200 OK in 204ms (Views: 146.2ms | ActiveRecord: 0.9ms) + + +Started PATCH "/tasks/15" for ::1 at 2019-04-14 10:46:02 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+ivvb/c1R+qTyglEHZ9k/N5n09Vansmzzi91+WVRUoPDu1RYc1RlCG+Wgso5cp22CJBo6gxCTx/BQKkwLovf/A==", "task"=>{"task_name"=>"Amazon showing?", "description"=>"place order, use gift card or points", "date_due"=>""}, "commit"=>"Save Changes", "id"=>"15"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (2.2ms) UPDATE "tasks" SET "task_name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["task_name", "Amazon showing?"], ["updated_at", "2019-04-14 17:46:02.914760"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:44 +  (41.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 54ms (ActiveRecord: 44.4ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-14 10:46:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.0ms) +Completed 200 OK in 34ms (Views: 28.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 10:46:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.4ms) +Completed 200 OK in 68ms (Views: 59.1ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-14 10:50:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (12.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (8.3ms) +Started GET "/tasks/10" for ::1 at 2019-04-14 10:50:02 -0700 +Completed 200 OK in 158ms (Views: 134.7ms | ActiveRecord: 12.8ms) + + +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 33ms (Views: 28.8ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 10:50:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 64ms (Views: 55.7ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks/15/edit" for ::1 at 2019-04-14 10:50:50 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (8.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (5.5ms) + Rendered tasks/edit.html.erb within layouts/application (12.2ms) +Completed 200 OK in 98ms (Views: 81.6ms | ActiveRecord: 8.7ms) + + +Started PATCH "/tasks/15" for ::1 at 2019-04-14 10:51:11 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yjNUKashJsiAfZk8fxIDCzMJkFQo/GlFfxSbXnENwYLzo+8eL0AEKnwhErJb//pB5f4ra34g7+lwe0eXOtdM/Q==", "task"=>{"task_name"=>"Amazon - task not showing in console?", "description"=>"place order, use gift card or points", "date_due"=>""}, "commit"=>"Save Changes", "id"=>"15"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["task_name", "Amazon - task not showing in console?"], ["updated_at", "2019-04-14 17:51:11.117062"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:44 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 8ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-14 10:51:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.6ms) +Completed 200 OK in 56ms (Views: 50.7ms | ActiveRecord: 0.3ms) + + + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +  (0.9ms) BEGIN +  (0.3ms) COMMIT +  (0.3ms) BEGIN + Task Update (0.5ms) UPDATE "tasks" SET "updated_at" = $1, "completed" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-14 18:01:17.732580"], ["completed", true], ["id", 15]] +  (40.8ms) COMMIT + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +Started GET "/tasks" for ::1 at 2019-04-14 11:13:22 -0700 +  (3.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (30.8ms) +Completed 200 OK in 515ms (Views: 482.2ms | ActiveRecord: 10.1ms) + + +Started PATCH "/tasks/15" for ::1 at 2019-04-14 11:13:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"iwQ0uhzDt3tkgjqyQ8byMCoWlUm0v2SpQ+Il69/JZ1yFgMBkLzh3Msfvpq+vaSNEV3Wt5y7yn1E/1UiK6mA+lg==", "id"=>"15"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +Completed 400 Bad Request in 7ms (ActiveRecord: 0.6ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:96:in `task_params' + app/controllers/tasks_controller.rb:44:in `update' + +Started POST "/__better_errors/721d773d7707293c/variables" for ::1 at 2019-04-14 11:13:36 -0700 +Started PATCH "/tasks/14" for ::1 at 2019-04-14 11:15:00 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"iwQ0uhzDt3tkgjqyQ8byMCoWlUm0v2SpQ+Il69/JZ1yFgMBkLzh3Msfvpq+vaSNEV3Wt5y7yn1E/1UiK6mA+lg==", "id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +Completed 400 Bad Request in 25ms (ActiveRecord: 5.2ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:96:in `task_params' + app/controllers/tasks_controller.rb:44:in `update' + +Started POST "/__better_errors/edd0fd7c668a3e8f/variables" for ::1 at 2019-04-14 11:15:01 -0700 +Started PATCH "/tasks/14" for ::1 at 2019-04-14 11:22:36 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"iwQ0uhzDt3tkgjqyQ8byMCoWlUm0v2SpQ+Il69/JZ1yFgMBkLzh3Msfvpq+vaSNEV3Wt5y7yn1E/1UiK6mA+lg==", "id"=>"14"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +Completed 400 Bad Request in 42ms (ActiveRecord: 9.3ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:91:in `task_params' + app/controllers/tasks_controller.rb:44:in `update' + +Started POST "/__better_errors/df61d3e5423916f5/variables" for ::1 at 2019-04-14 11:22:37 -0700 +Started PATCH "/tasks/13" for ::1 at 2019-04-14 11:22:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"iwQ0uhzDt3tkgjqyQ8byMCoWlUm0v2SpQ+Il69/JZ1yFgMBkLzh3Msfvpq+vaSNEV3Wt5y7yn1E/1UiK6mA+lg==", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +Completed 400 Bad Request in 5ms (ActiveRecord: 0.4ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:91:in `task_params' + app/controllers/tasks_controller.rb:44:in `update' + +Started POST "/__better_errors/a95e1bf83681d396/variables" for ::1 at 2019-04-14 11:22:42 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 14:18:34 -0700 +  (5.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (46.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (77.3ms) +Completed 200 OK in 516ms (Views: 389.0ms | ActiveRecord: 109.2ms) + + +Started POST "/tasks/14" for ::1 at 2019-04-14 14:25:08 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/14"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/tasks/15" for ::1 at 2019-04-14 15:06:11 -0700 +  (42.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +ActionController::RoutingError (No route matches [POST] "/tasks/15"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-14 15:06:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (21.3ms) +Completed 200 OK in 394ms (Views: 374.9ms | ActiveRecord: 5.9ms) + + +Started POST "/tasks/13" for ::1 at 2019-04-14 15:06:22 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/13"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-14 15:12:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (20.3ms) +Completed 200 OK in 91ms (Views: 72.5ms | ActiveRecord: 8.4ms) + + +Started POST "/tasks/10" for ::1 at 2019-04-14 15:12:14 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/10"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-14 15:20:51 -0700 +  (35.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (394.3ms) +Completed 500 Internal Server Error in 426ms (ActiveRecord: 6.1ms) + + + +NameError - undefined local variable or method `toggle_complete' for #<#:0x00007fd63f3d3390>: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb__3472317908308815431_70279080412120' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__3472317908308815431_70279080412120' + +Started POST "/__better_errors/839db570a42a1ee3/variables" for ::1 at 2019-04-14 15:20:52 -0700 +Started POST "/__better_errors/839db570a42a1ee3/variables" for ::1 at 2019-04-14 15:21:39 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 15:21:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (579.2ms) +Completed 500 Internal Server Error in 598ms (ActiveRecord: 5.0ms) + + + +NameError - undefined local variable or method `toggle_complete' for #<#:0x00007fd63f034478>: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb__3472317908308815431_70279078461080' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__3472317908308815431_70279078461080' + +Started POST "/__better_errors/70a555b824af9a6f/variables" for ::1 at 2019-04-14 15:21:42 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 15:27:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (538.5ms) +Completed 500 Internal Server Error in 562ms (ActiveRecord: 9.4ms) + + + +NameError - undefined local variable or method `toggle_complete' for #<#:0x00007fd63c336c50>: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb__3472317908308815431_70279062742980' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__3472317908308815431_70279062742980' + +Started POST "/__better_errors/3f0be97002d415bb/variables" for ::1 at 2019-04-14 15:27:16 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 15:27:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (598.5ms) +Completed 500 Internal Server Error in 614ms (ActiveRecord: 0.4ms) + + + +NameError - undefined local variable or method `toggle_completed' for #<#:0x00007fd63c12c1f8>: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb__3472317908308815431_70279053796820' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__3472317908308815431_70279053796820' + +Started POST "/__better_errors/766a4e0eb66d4309/variables" for ::1 at 2019-04-14 15:27:50 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 15:28:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (14.2ms) +Completed 200 OK in 421ms (Views: 412.1ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/10/edit" for ::1 at 2019-04-14 15:29:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"10"} + Task Load (3.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (19.1ms) + Rendered tasks/edit.html.erb within layouts/application (23.4ms) +Completed 200 OK in 134ms (Views: 62.2ms | ActiveRecord: 8.6ms) + + +Started PATCH "/tasks/10" for ::1 at 2019-04-14 15:29:25 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"OzAm1adAioOuIEwa1znThlJfNjyKL6nAco0Xtb6HVCrUCHZZLxvVMipXqcH2OeS7WqBQzWM2c7XsZ+vD/sa3dg==", "task"=>{"task_name"=>"Take a break!", "description"=>"Do it! Make some tea, play your cello, stretch, learn that wheel thing.", "date_due"=>"2019-04-13"}, "commit"=>"Save Changes", "id"=>"10"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (81.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 93ms (ActiveRecord: 82.4ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-14 15:29:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.1ms) +Completed 200 OK in 31ms (Views: 24.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 15:29:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (6.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.6ms) +Completed 200 OK in 71ms (Views: 59.8ms | ActiveRecord: 6.8ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 15:29:34 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"/78laaxAlF5AMdrNKgh29knwoXStbFMYMYudc69H4QXxO9G3n7tUF+NcRtDGp6eCNJOZ2jchqOBNvPASmu64zw==", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +Completed 400 Bad Request in 3ms (ActiveRecord: 0.4ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:88:in `task_params' + app/controllers/tasks_controller.rb:44:in `update' + +Started POST "/__better_errors/0e77802a9a094228/variables" for ::1 at 2019-04-14 15:29:34 -0700 +Started GET "/tasks/10" for ::1 at 2019-04-14 15:30:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.7ms) +Completed 200 OK in 62ms (Views: 43.0ms | ActiveRecord: 3.4ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-14 15:31:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.9ms) +Completed 200 OK in 66ms (Views: 45.3ms | ActiveRecord: 3.8ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 15:31:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"/78laaxAlF5AMdrNKgh29knwoXStbFMYMYudc69H4QXxO9G3n7tUF+NcRtDGp6eCNJOZ2jchqOBNvPASmu64zw==", "id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +Completed 400 Bad Request in 21ms (ActiveRecord: 5.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:89:in `task_params' + app/controllers/tasks_controller.rb:44:in `update' + +Started POST "/__better_errors/9c0804bfe10c2e3e/variables" for ::1 at 2019-04-14 15:31:47 -0700 +Started PUT "/tasks/13" for ::1 at 2019-04-14 15:37:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"authenticity_token"=>"/78laaxAlF5AMdrNKgh29knwoXStbFMYMYudc69H4QXxO9G3n7tUF+NcRtDGp6eCNJOZ2jchqOBNvPASmu64zw==", "id"=>"13"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +Completed 400 Bad Request in 4ms (ActiveRecord: 0.9ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:89:in `task_params' + app/controllers/tasks_controller.rb:44:in `update' + +Started POST "/__better_errors/f031791372ed6a0e/variables" for ::1 at 2019-04-14 15:37:08 -0700 +Started PUT "/tasks/13" for ::1 at 2019-04-14 15:55:57 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"/78laaxAlF5AMdrNKgh29knwoXStbFMYMYudc69H4QXxO9G3n7tUF+NcRtDGp6eCNJOZ2jchqOBNvPASmu64zw==", "id"=>"13"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +Completed 500 Internal Server Error in 24ms (ActiveRecord: 9.0ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:70:in `toggle_completed' + +Started POST "/__better_errors/283049719549a41b/variables" for ::1 at 2019-04-14 15:55:57 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 15:59:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (422.3ms) +Completed 500 Internal Server Error in 433ms (ActiveRecord: 0.7ms) + + + +NameError - undefined local variable or method `toggle_completed_action' for #<#:0x00007fd63f61b008> +Did you mean? toggle_completed_action_url + toggle_completed_action_path: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb__3472317908308815431_70279080919140' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__3472317908308815431_70279080919140' + +Started POST "/__better_errors/b1354de83c1a28ab/variables" for ::1 at 2019-04-14 15:59:45 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 15:59:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 69ms (Views: 62.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 15:59:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 31ms (Views: 27.3ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:00:03 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"HUP1n84/+oXomm8DqXX0QlulPGrSxO09SD1T46aYedMTxwFB/cQ6zEv38x5F2iU2JsYExEiJFsU0Cj6CkzEgGQ==", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:70:in `toggle_completed' + +Started POST "/__better_errors/3f05dae631ab3f5f/variables" for ::1 at 2019-04-14 16:00:03 -0700 +Started POST "/__better_errors/3f05dae631ab3f5f/eval" for ::1 at 2019-04-14 16:01:06 -0700 +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:01:18 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"HUP1n84/+oXomm8DqXX0QlulPGrSxO09SD1T46aYedMTxwFB/cQ6zEv38x5F2iU2JsYExEiJFsU0Cj6CkzEgGQ==", "id"=>"14"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 168ms (ActiveRecord: 4.1ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:01:21 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"HUP1n84/+oXomm8DqXX0QlulPGrSxO09SD1T46aYedMTxwFB/cQ6zEv38x5F2iU2JsYExEiJFsU0Cj6CkzEgGQ==", "id"=>"14"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 139ms (ActiveRecord: 1.0ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:01:23 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"HUP1n84/+oXomm8DqXX0QlulPGrSxO09SD1T46aYedMTxwFB/cQ6zEv38x5F2iU2JsYExEiJFsU0Cj6CkzEgGQ==", "id"=>"14"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 170ms (ActiveRecord: 0.4ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:01:29 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"HUP1n84/+oXomm8DqXX0QlulPGrSxO09SD1T46aYedMTxwFB/cQ6zEv38x5F2iU2JsYExEiJFsU0Cj6CkzEgGQ==", "id"=>"13"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 140ms (ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:01:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 37ms (Views: 32.7ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 16:10:23 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"VXT1Xushwu11ouWHLkykG8UtHNW1RHnQ8ZzWHWj1rGJb8AGA2NoCpNbPeZrC43VvuE4key8JgiiNq7t8XVz1qA==", "id"=>"10"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (46.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:10:23.281789"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:79 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 219ms (ActiveRecord: 55.9ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 16:10:25 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"VXT1Xushwu11ouWHLkykG8UtHNW1RHnQ8ZzWHWj1rGJb8AGA2NoCpNbPeZrC43VvuE4key8JgiiNq7t8XVz1qA==", "id"=>"10"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:10:25.339768"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:79 +  (40.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 185ms (ActiveRecord: 41.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:10:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 61ms (Views: 56.1ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-14 16:10:57 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:10:57.651785"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:79 +  (40.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 216ms (ActiveRecord: 45.2ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-14 16:11:04 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"15"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:11:04.724622"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:79 +  (39.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 183ms (ActiveRecord: 40.6ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-14 16:11:06 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"15"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:11:06.490520"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:79 +  (40.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 216ms (ActiveRecord: 41.9ms) + + +Started PUT "/tasks/11" for ::1 at 2019-04-14 16:11:07 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:11:07.232888"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:79 +  (41.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 183ms (ActiveRecord: 42.4ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:11:08 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:11:08.054044"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:79 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 194ms (ActiveRecord: 41.5ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 16:11:08 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:11:08.728233"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:79 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 143ms (ActiveRecord: 2.2ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:11:09 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:11:09.527432"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:79 +  (41.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 182ms (ActiveRecord: 42.2ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:11:10 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:11:10.213380"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:79 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 182ms (ActiveRecord: 41.3ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:11:25 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"14"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:11:25.090434"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:79 +  (40.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 192ms (ActiveRecord: 41.1ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:12:25 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"13"} + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (1.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:12:25.980381"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:79 +  (41.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +No template found for TasksController#toggle_completed, rendering head :no_content +Completed 204 No Content in 326ms (ActiveRecord: 52.3ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:21:49 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"13"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (9.1ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:21:49.252551"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:79 +  (59.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +Completed 204 No Content in 123ms (ActiveRecord: 83.4ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:22:23 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"14"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:22:23.775920"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:79 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +Completed 204 No Content in 49ms (ActiveRecord: 41.8ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 16:23:27 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"JezBjh+L3Hr7O3DUmOhX7bNmuevFR6cae33RIqiVp0craDVQLHAcM1hW7Ml0R4aZzgWBRV8KXOIHSrxDnTz+jQ==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:23:27.268806"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:79 +  (42.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +Completed 204 No Content in 52ms (ActiveRecord: 43.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:23:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.6ms) +Completed 200 OK in 432ms (Views: 425.6ms | ActiveRecord: 2.9ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 16:24:41 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"LE8HAGHlraiR/2It59fk+R1XmakX2HxhIaX0j0dW8nEiy/PeUh5t4TKS/jALeDWNYDShB42Vh5ldkpnucv+ruw==", "id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:24:41.598732"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:79 +  (41.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +Redirected to +Completed 500 Internal Server Error in 73ms (ActiveRecord: 46.3ms) + + + +AbstractController::DoubleRenderError - Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".: + app/controllers/tasks_controller.rb:81:in `toggle_completed' + +Started POST "/__better_errors/a695e3e11b2ce561/variables" for ::1 at 2019-04-14 16:24:41 -0700 +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:24:59 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"LE8HAGHlraiR/2It59fk+R1XmakX2HxhIaX0j0dW8nEiy/PeUh5t4TKS/jALeDWNYDShB42Vh5ldkpnucv+ruw==", "id"=>"13"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (1.2ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:24:59.386428"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:79 +  (42.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 101ms (ActiveRecord: 55.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:24:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (12.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (20.4ms) +Completed 200 OK in 90ms (Views: 71.3ms | ActiveRecord: 12.5ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:25:00 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"o9Smp98+32HhzlC5294uvl6l21Qj8hNIzHX5a/F61mStUFJ57MUfKEKjzKQ3cf/KI8bj+rm/6LCwQpQKxNOPrg==", "id"=>"13"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:25:00.755132"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:79 +  (41.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 42.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:25:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 97ms (Views: 88.8ms | ActiveRecord: 2.3ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:26:59 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"wHo43ZI8V6G3ABzK+BK7lYMBDfRdU0wkHg/JGC2EvV/O/swDoceX6BRtgNcUvWrh/mI1Wscet9xiOKR5GC3klQ==", "id"=>"14"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:79 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:26:59.215666"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:79 +  (57.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:79 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 63ms (ActiveRecord: 58.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:26:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (9.7ms) +Completed 200 OK in 137ms (Views: 126.7ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:28:27 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"8huL4rRwkm2yJNTjOOocIKINDCcmImIJj8rf9viDQgD8n388h4tSJBFJSP7URc1U3240ibxvmfHz/bKXzSobyg==", "id"=>"14"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (1.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:28:27.364949"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:71 +  (41.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 93ms (ActiveRecord: 47.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:28:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (20.9ms) +Completed 200 OK in 147ms (Views: 119.8ms | ActiveRecord: 0.8ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:28:28 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"wGD7Q+zpqPwMIhMupW+w3YB2055oQjZfaJV4Xu5+czbO5A+d3xJota9PjzNJwGGp/RXrMPIPzacUohU/29cq/A==", "id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:28:28.641468"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:71 +  (36.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 43ms (ActiveRecord: 36.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:28:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 100ms (Views: 92.9ms | ActiveRecord: 0.8ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 16:28:30 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"irEtP57hAMTdvgIOQE5SqAYoNmm7lBTHbsoCdpO6szqENdnhrRrAjX7TnhOs4YPce0sOxyHZ7z8S/W8XphPq8A==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:28:30.571402"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:71 +  (41.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 42.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:28:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 95ms (Views: 82.3ms | ActiveRecord: 3.9ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 16:28:31 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"Wu94coqufL12UrcyCTQuI5UVtOp1cAKzuRuwxIf+GPJUa4ysuVW89NU/Ky/lm/9X6HaMRO89+UvFLN2lsldBOA==", "id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (3.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.9ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:28:31.551168"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:71 +  (41.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 51ms (ActiveRecord: 45.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:28:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (17.9ms) +Completed 200 OK in 76ms (Views: 70.7ms | ActiveRecord: 2.2ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:31:07 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"jxS3iHw1AcFJESI+8Jhn/QLbRMKrf9J+ng36FKij2ZuBkENWT87BiOp8viMcN7aJf7h8bDEyKYbiOpd1nQqAUQ==", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:31:07.909102"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:71 +  (41.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 42.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:31:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (9.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (548.7ms) +Completed 500 Internal Server Error in 569ms (ActiveRecord: 9.9ms) + + + +NameError - undefined local variable or method `toggle_completed_action' for #<#:0x00007fb052144740> +Did you mean? toggle_completed_action_url + toggle_completed_action_path: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___2546611003161225987_70197634017480' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___2546611003161225987_70197634017480' + +Started POST "/__better_errors/1fb3943f3d700d20/variables" for ::1 at 2019-04-14 16:31:08 -0700 +Started POST "/__better_errors/1fb3943f3d700d20/variables" for ::1 at 2019-04-14 16:31:27 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 16:31:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (9.5ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.4ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"toggle_completed", :controller=>"tasks"}, missing required keys: [:id]: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___2546611003161225987_70197622332900' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___2546611003161225987_70197622332900' + +Started POST "/__better_errors/78bbdf21bc290fa0/variables" for ::1 at 2019-04-14 16:31:29 -0700 +Started POST "/__better_errors/78bbdf21bc290fa0/variables" for ::1 at 2019-04-14 16:32:07 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 16:32:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 92ms (Views: 85.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-14 16:32:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (13.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (9.1ms) +Completed 200 OK in 87ms (Views: 65.6ms | ActiveRecord: 13.9ms) + + +Started GET "/tasks/13/edit" for ::1 at 2019-04-14 16:32:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"13"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (63.5ms) + Rendered tasks/edit.html.erb within layouts/application (69.3ms) +Completed 200 OK in 124ms (Views: 114.7ms | ActiveRecord: 1.5ms) + + +Started PATCH "/tasks/13" for ::1 at 2019-04-14 16:32:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"nX4uZwKlnC6dlNIXJV0WSEyFy6Ur2wjmKPRb4CgRgqw9EarrRuqlP7NgGD60avbI8MZEGcbl3PiSnSERA1SUag==", "task"=>{"task_name"=>"meal prep", "description"=>"buy and make food for the week", "date_due"=>"2019-04-21"}, "commit"=>"Save Changes", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 7ms (ActiveRecord: 0.8ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-14 16:32:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.0ms) +Completed 200 OK in 112ms (Views: 98.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:32:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (44.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (53.6ms) +Completed 200 OK in 137ms (Views: 87.4ms | ActiveRecord: 44.9ms) + + +Started GET "/tasks/14" for ::1 at 2019-04-14 16:32:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (6.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.1ms) +Completed 200 OK in 80ms (Views: 64.2ms | ActiveRecord: 6.1ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-14 16:32:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (6.1ms) +Completed 200 OK in 80ms (Views: 72.1ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/15/edit" for ::1 at 2019-04-14 16:32:48 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (13.9ms) + Rendered tasks/edit.html.erb within layouts/application (20.1ms) +Completed 200 OK in 79ms (Views: 71.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-14 16:32:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (2.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.6ms) +Completed 200 OK in 70ms (Views: 60.5ms | ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:35:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (5.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (12.4ms) +Completed 200 OK in 71ms (Views: 58.7ms | ActiveRecord: 5.0ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:36:01 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"AgHzgmDvjqoGufltI9SAwp6RQCKKNf0EyYxsgYO/tzUMhQdcUxRO46XUZXDPe1G24/J4jBB4Bvy1uwHgthbu/w==", "id"=>"14"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (1.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:36:01.053010"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:71 +  (41.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 52ms (ActiveRecord: 44.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:36:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 33ms (Views: 28.7ms | ActiveRecord: 0.7ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:36:01 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"zaC1ZvI8UdLKXWketJXGrwLLPd0i29OYCh9h3vihFg3DJEG4wceRm2kw9QNYOhfbf6gFc7iWKGB2KAy/zQhPxw==", "id"=>"14"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:36:01.829184"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:71 +  (41.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 51ms (ActiveRecord: 43.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:36:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 40ms (Views: 35.7ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:36:02 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"r/5aN/NhfFGKfOQ6bstLitN4CO7/Le1vfF3s87uCcrGheq7pwJq8GCkReCeCZJr+rhswQGVgFpcAaoGSjisrew==", "id"=>"14"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (2.1ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:36:02.725539"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:71 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 51ms (ActiveRecord: 43.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:36:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 34ms (Views: 29.5ms | ActiveRecord: 0.8ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 16:36:03 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"FBuIu6+Ytpr9V/DIbuLIYH1YmphV9ZjXmv3tLmRya38an3xlnGN20146bNWCTRkUADuiNs+4Yy/myoBPUdsytQ==", "id"=>"14"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.8ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:36:03.581078"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:71 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 42.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:36:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 34ms (Views: 29.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:38:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (481.7ms) +Completed 500 Internal Server Error in 492ms (ActiveRecord: 1.7ms) + + + +NameError - undefined local variable or method `toggle_completed' for #<#:0x00007fb04c98cb38> +Did you mean? toggle_completed_action_url: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___2546611003161225987_70197588028040' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___2546611003161225987_70197588028040' + +Started POST "/__better_errors/cd18433c310e1efc/variables" for ::1 at 2019-04-14 16:38:47 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 16:39:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (21.2ms) +Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.5ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"toggle_completed", :controller=>"tasks"}, missing required keys: [:id]: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___2546611003161225987_70197623395880' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___2546611003161225987_70197623395880' + +Started POST "/__better_errors/cf07143c43fc5f6b/variables" for ::1 at 2019-04-14 16:39:06 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 16:40:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected ':', expecting ')' +...end=( link_to "toggle", /task/:id/toggle_completed_action_ur... +... ^ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:11: syntax error, unexpected ',', expecting ')' +...id/toggle_completed_action_url, method: :put );@output_buffe... +... ^: + app/views/tasks/index.html.erb:11:in `' + +Started POST "/__better_errors/0808aebed8d3371f/variables" for ::1 at 2019-04-14 16:40:03 -0700 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC LIMIT $1 [["LIMIT", 11]] + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-14 16:40:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 90ms (Views: 84.6ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:41:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 62ms (Views: 57.1ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:41:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (11.5ms) +Completed 200 OK in 68ms (Views: 61.3ms | ActiveRecord: 1.8ms) + + +Started PUT "/task/13/toggle_completed" for ::1 at 2019-04-14 16:41:12 -0700 + +ActionController::RoutingError (No route matches [PUT] "/task/13/toggle_completed"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-14 16:41:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 53ms (Views: 49.5ms | ActiveRecord: 0.3ms) + + +Started PUT "/task/:id/toggle_completed" for ::1 at 2019-04-14 16:41:51 -0700 + +ActionController::RoutingError (No route matches [PUT] "/task/:id/toggle_completed"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-14 16:42:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 77ms (Views: 71.2ms | ActiveRecord: 1.3ms) + + +Started PUT "/task/:id/toggle_completed_action_url" for ::1 at 2019-04-14 16:42:38 -0700 + +ActionController::RoutingError (No route matches [PUT] "/task/:id/toggle_completed_action_url"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-14 16:43:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected ':', expecting ')' +...end=( link_to "toggle", /task/:id/toggle_completed_action_ur... +... ^ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:11: syntax error, unexpected ',', expecting ')' +...id/toggle_completed_action_url, method: :put );@output_buffe... +... ^: + app/views/tasks/index.html.erb:11:in `' + +Started POST "/__better_errors/c7b935906f75253d/variables" for ::1 at 2019-04-14 16:43:27 -0700 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC LIMIT $1 [["LIMIT", 11]] + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-14 16:44:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (20.0ms) +Completed 500 Internal Server Error in 35ms (ActiveRecord: 4.8ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"toggle_completed", :controller=>"tasks"}, missing required keys: [:id]: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___2546611003161225987_70197617854060' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___2546611003161225987_70197617854060' + +Started POST "/__better_errors/9b9f230d385a5b99/variables" for ::1 at 2019-04-14 16:44:08 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 16:44:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.9ms) +Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.5ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"toggle_completed", :controller=>"tasks"}, missing required keys: [:id]: + app/views/tasks/index.html.erb:11:in `block in _app_views_tasks_index_html_erb___2546611003161225987_70197623531660' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___2546611003161225987_70197623531660' + +Started POST "/__better_errors/25abed065e49a9ae/variables" for ::1 at 2019-04-14 16:44:11 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 16:46:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 60ms (Views: 55.0ms | ActiveRecord: 0.6ms) + + +Started POST "/tasks/10" for ::1 at 2019-04-14 16:46:31 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/10"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-14 16:47:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 54ms (Views: 48.8ms | ActiveRecord: 0.3ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:47:14 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"SOHA9qy46WHUHcdDFBV+7+6qYPaqTzQiCM7E0S6Ui3BGZTQon0MpKHdwW174uq+bk8lYWDACz9p0+amwGz3Sug==", "id"=>"13"} + Task Load (3.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (6.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (13.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 23:47:14.591093"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:71 +  (43.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 74ms (ActiveRecord: 66.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:47:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.0ms) +Completed 200 OK in 70ms (Views: 61.5ms | ActiveRecord: 4.1ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 16:47:16 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"iy2M/Y90yHWli7LFW6ZKcFWBYlx5PiEmKCL+3Ud+3WiFqXgjvI8IPAbmLti3CZsEKOJa8uNz2t5UFZO8cteEog==", "id"=>"13"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.9ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-14 23:47:16.223054"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:71 +  (40.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 42.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:47:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 75ms (Views: 69.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:31:11 -0700 +  (41.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (28.5ms) +Completed 200 OK in 418ms (Views: 389.3ms | ActiveRecord: 9.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:31:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (12.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (22.2ms) +Completed 200 OK in 109ms (Views: 89.2ms | ActiveRecord: 12.9ms) + + +Started PUT "/tasks/11" for ::1 at 2019-04-14 18:32:31 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"nDP9wVn4BYyYdGfZS2CVPNzGk4hhzBhXNEn8Gfj3U2yStwkfagPFxTsZ+8Snz0RIoaWrJvuB469IfpF4zV4Kpg==", "id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (1.0ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-15 01:32:31.026080"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:71 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 52ms (ActiveRecord: 42.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:32:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 60ms (Views: 54.9ms | ActiveRecord: 1.5ms) + + +Started PUT "/tasks/11" for ::1 at 2019-04-14 18:32:32 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"gPkzJQ4xw9gpCBXcmvthJlbsgKdHVXat6gJUhkrbiC2Ofcf7PcoDkYplicF2VLBSK4+4Cd0YjVWWNTnnf3LR5w==", "id"=>"11"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (1.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-15 01:32:32.639536"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:71 +  (42.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 52ms (ActiveRecord: 45.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:32:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 61ms (Views: 57.5ms | ActiveRecord: 0.6ms) + + +Started PUT "/tasks/11" for ::1 at 2019-04-14 18:32:34 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"NBSQhh5vX7yZTrL0Ok+GM7QLuEh8qRLiabYf6Ccj4P06kGRYLZSf9TojLunW4FdHyWiA5ubk6RoVgXKJEoq5Nw==", "id"=>"11"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-15 01:32:34.703526"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:71 +  (224.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 230ms (ActiveRecord: 225.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:32:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 47ms (Views: 42.0ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/11" for ::1 at 2019-04-14 18:32:36 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"XfWj/eKBiysIvc0c1M3AeM4a1b62QUHmMC5eBaShr1pTcVcj0XpLYqvQUQE4YhEMs3ntECwMuh5MGTNkkQj2kA==", "id"=>"11"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-15 01:32:36.930273"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:71 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 43.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:32:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (11.2ms) +Completed 200 OK in 50ms (Views: 44.4ms | ActiveRecord: 2.1ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-14 18:32:38 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"5LUA0CnT2346RzNcoxnkEwpA4UclIrmSGXO9JHLao2/qMfQOGigbN5kqr0FPtjVndyPZ6b9vQmplRNBFR3P6pQ==", "id"=>"15"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.8ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-15 01:32:38.159841"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:71 +  (2.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 4.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:32:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.0ms) +Completed 200 OK in 72ms (Views: 64.0ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-14 18:32:39 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"VsDCOhFJZim9UsfD02txYTrfeR4RHadTrwBxlO4Bz6tYRDbkIrKmYB4/W94/xKAVR7xBsItQXKvTNxz126iWYQ==", "id"=>"15"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-15 01:32:39.089998"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:71 +  (39.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 46ms (ActiveRecord: 40.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:32:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.8ms) +Completed 200 OK in 85ms (Views: 78.9ms | ActiveRecord: 3.2ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 18:32:41 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"qyyq8RDGTB74QTNfFtFRInkIuncgca3E68ladBsq3qqlqF4vIz2MV1ssr0L6foBWBGuC2bo8VjyX/jcVLoOHYA==", "id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-15 01:32:41.668713"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:71 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 47ms (ActiveRecord: 42.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:32:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (10.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.3ms) +Completed 200 OK in 57ms (Views: 44.5ms | ActiveRecord: 10.0ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 18:32:42 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"Bxgvbd6E6iOR/zN3sfjDuQSNsnxbZn7WInI6uzDCRJIJnNuz7X8qajKSr2pdVxLNee6K0sErhS5eRVfaBWsdWA==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (1.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-15 01:32:42.625483"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:71 +  (42.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 44.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:32:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 49ms (Views: 45.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/10/edit" for ::1 at 2019-04-14 18:32:47 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"10"} + Task Load (10.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (22.0ms) + Rendered tasks/edit.html.erb within layouts/application (27.1ms) +Completed 200 OK in 92ms (Views: 69.6ms | ActiveRecord: 10.0ms) + + +Started PATCH "/tasks/10" for ::1 at 2019-04-14 18:32:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"vAvGAJbspu9XMpMpa+BbNetRF79QpYgup2ln86544G9TM5aMHrf5XtNFdvJK4GwI465xTrm8Uls5g5uF7jkDMw==", "task"=>{"task_name"=>"Take a break!hgjhg", "description"=>"Do it! Make some tea, play your cello, stretch, learn that wheel thing.", "date_due"=>"2019-04-13"}, "commit"=>"Save Changes", "id"=>"10"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (3.8ms) UPDATE "tasks" SET "task_name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["task_name", "Take a break!hgjhg"], ["updated_at", "2019-04-15 01:32:56.642279"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:44 +  (18.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 33ms (ActiveRecord: 23.6ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-14 18:32:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (3.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.2ms) +Completed 200 OK in 96ms (Views: 82.5ms | ActiveRecord: 3.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:33:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 60ms (Views: 50.1ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-14 18:33:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (8.9ms) +Completed 200 OK in 91ms (Views: 83.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:33:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (6.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (11.7ms) +Completed 200 OK in 77ms (Views: 64.2ms | ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:43:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 69ms (Views: 64.9ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:43:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (12.9ms) +Completed 200 OK in 63ms (Views: 54.7ms | ActiveRecord: 4.2ms) + + + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] +Started PUT "/tasks/14" for ::1 at 2019-04-14 19:00:43 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"44Ft/YNhUu6G5eEOGqs3rulDovB/U8QStuhH4nUEd0rtBZkjsJqSpyWIfRP2BObalCCaXuUeP+rK3yqDQK0ugA==", "id"=>"14"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:73 + Task Update (6.9ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", "2019-04-15 02:00:43.544622"], ["updated_at", "2019-04-15 02:00:43.546295"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:73 +  (34.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:73 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 94ms (ActiveRecord: 48.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:00:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (7.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (16.3ms) +Completed 200 OK in 408ms (Views: 389.9ms | ActiveRecord: 7.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:02:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 75ms (Views: 70.6ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-14 19:02:52 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"8xj20/ny2xMLeBf7RO+hgDRsBvU8VrFwseM32AZ0Uqz9nAINygkbWqgVi+aoQHD0SQ8+W6YbSojN1Fq5M90LZg==", "id"=>"15"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:73 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 02:02:52.393244"], ["updated_at", "2019-04-15 02:02:52.394193"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:73 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:73 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 47ms (ActiveRecord: 42.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:02:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (9.8ms) +Completed 200 OK in 101ms (Views: 88.0ms | ActiveRecord: 4.3ms) + + +Started PUT "/tasks/14" for ::1 at 2019-04-14 19:03:00 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"daQw7d/VCZdPtn5yhJjBpQWDqZ2k8DQ+yRE7cB8CY1N7IMQz7C7J3uzb4m9oNxDReOCRMz69z8a1JlYRKqs6mQ==", "id"=>"14"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:73 + Task Update (1.3ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 02:03:00.121780"], ["updated_at", "2019-04-15 02:03:00.123560"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:73 +  (48.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:73 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 62ms (ActiveRecord: 52.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:03:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (7.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (15.3ms) +Completed 200 OK in 89ms (Views: 75.2ms | ActiveRecord: 7.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:04:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (31.5ms) +Completed 200 OK in 104ms (Views: 88.1ms | ActiveRecord: 6.3ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:04:36 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"tVOX9F8f6UMiPs6NzQaz0/OrJaQm/ftaRflGXvGlg0a712MqbOQpCoFTUpAhqWKnjsgdCrywAKI5zis/xAzajA==", "id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-15 02:04:36.351673"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:83 +  (40.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 47ms (ActiveRecord: 41.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:04:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (8.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (13.4ms) +Completed 200 OK in 80ms (Views: 65.4ms | ActiveRecord: 8.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:04:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 97ms (Views: 93.2ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/10/edit" for ::1 at 2019-04-14 19:04:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"10"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (43.4ms) + Rendered tasks/edit.html.erb within layouts/application (50.3ms) +Completed 200 OK in 98ms (Views: 91.6ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/10" for ::1 at 2019-04-14 19:05:06 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"FTg3HBP09c9ySiWDWdvg7hQIrP56D+hmZ9oQwvdlgBH6AGeQm6+qfvY9wFh429fTHPfKD5MWMhP5MOy0tyRjTQ==", "task"=>{"task_name"=>"Take a break today!", "description"=>"Do it! Make some tea, play your cello, stretch, learn that wheel thing.", "date_due"=>"2019-04-13"}, "commit"=>"Save Changes", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (0.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (0.6ms) UPDATE "tasks" SET "task_name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["task_name", "Take a break today!"], ["updated_at", "2019-04-15 02:05:06.514669"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:44 +  (2.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 14ms (ActiveRecord: 3.7ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-14 19:05:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.6ms) +Completed 200 OK in 76ms (Views: 65.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:05:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (15.0ms) +Completed 200 OK in 69ms (Views: 58.1ms | ActiveRecord: 4.9ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:05:23 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"QBSDEZvhDWFi8mvR5/RFH7haWz0CHyTceD/jvNkFDchOkHfPqBrNKMGf98wLW5RrxTljk5hS3yQECI7d7KxUAg==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (1.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (1.1ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 02:05:23.363990"], ["updated_at", "2019-04-15 02:05:23.366425"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:83 +  (3.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 6.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:05:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (20.7ms) +Completed 200 OK in 98ms (Views: 89.7ms | ActiveRecord: 0.9ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:05:27 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"q65ZUbY6LLhp+9x67JkVrt6PRdWOVTqSAYD0VeYbHxylKq2PhcHs8cqWQGcANsTao+x9exQYwWp9t5k007JG1g==", "id"=>"10"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (2.2ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:05:27.630742"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:83 +  (40.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 53ms (ActiveRecord: 43.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:05:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (9.3ms) +Completed 200 OK in 58ms (Views: 55.0ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:05:29 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"VuFECuVyv0tCIAn3HbH8d7BnMFsoc+DK7fDJVkbXevBYZbDU1ol/AuFNlerxHi0DzQQI9bI+GzKRx6Q3c34jOg==", "id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (1.0ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 02:05:29.574922"], ["updated_at", "2019-04-15 02:05:29.576064"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:83 +  (39.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 41.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:05:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (10.3ms) +Completed 200 OK in 59ms (Views: 48.9ms | ActiveRecord: 2.8ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:05:30 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"TJd3KK+yw2x7h2C9kmnWOj1JrJ90afWnmqRL6S2abKlCE4P2nEkDJdjq/KB+xgdOQCqUMe4kDl/mkyaIGDM1Yw==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (1.0ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:05:30.793185"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:83 +  (41.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 43.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:05:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (20.5ms) +Completed 200 OK in 86ms (Views: 82.0ms | ActiveRecord: 0.6ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:05:32 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"xKrl3c+v18PgehuvwEt17INrBjj7GSMKAFV4s0prE4LKLhED/FQXikMXh7Is5KSY/gg+lmFU2PJ8YhXSf8JKSA==", "id"=>"10"} + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 02:05:32.039738"], ["updated_at", "2019-04-15 02:05:32.040758"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:83 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 43.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:05:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 53ms (Views: 49.5ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:05:34 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"iM8C+89idS7xZGnwVGMafD1b8FoveN7yOxdWBo9Vq7CGS/Yl/Jm1Z1IJ9e24zMsIQDjI9LU1JQpHIDtnuvzyeg==", "id"=>"10"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:05:34.391865"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:83 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:05:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 67ms (Views: 61.4ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:05:35 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"HwMOArTkbgyHAifuI5X6xRxYgyVe4VcZ/hV2GT+8yBARh/rchx+uRSRvu/PPOiuxYTu7i8SsrOGCIht4ChWR2g==", "id"=>"10"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (2.8ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 02:05:35.501281"], ["updated_at", "2019-04-15 02:05:35.502571"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:83 +  (40.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 51ms (ActiveRecord: 44.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:05:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (13.2ms) +Completed 200 OK in 64ms (Views: 59.9ms | ActiveRecord: 1.3ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:05:37 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"mzKoqBh2cFGnxkDnkvtS3WzJGh1cIuya+XUZtarMFWCVtlx2K42wGASr3Pp+VIOpEaois8ZvF2KFQnTUn2VMqg==", "id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:05:37.428412"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:83 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:05:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 47ms (Views: 41.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:07:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (27.7ms) +Completed 200 OK in 106ms (Views: 90.2ms | ActiveRecord: 6.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:07:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 58ms (Views: 52.5ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:10:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected '<' + <%= completed at: + ^ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:29: syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:18:in `' + +Started POST "/__better_errors/fbb6b51cecbab064/variables" for ::1 at 2019-04-14 19:10:18 -0700 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC LIMIT $1 [["LIMIT", 11]] + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-14 19:10:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected ')' + completed at: );@output_buffer.safe_append=' + ^ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:27: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:29: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/index.html.erb:18:in `' + +Started POST "/__better_errors/96c62a589d3d248d/variables" for ::1 at 2019-04-14 19:10:45 -0700 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC LIMIT $1 [["LIMIT", 11]] + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-14 19:11:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_then or ';' or '\n' +...date_completed != nil completed at:);@output_buffer.safe_app... +... ^~~~~~~~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:21: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:26: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:28: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/index.html.erb:17:in `' + +Started POST "/__better_errors/cb87d7a9f9fc7e6c/variables" for ::1 at 2019-04-14 19:11:52 -0700 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC LIMIT $1 [["LIMIT", 11]] + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-14 19:12:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_then or ';' or '\n' +...date_completed != nil completed at: end );@output_buffer.saf... +... ^~~~~~~~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:21: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:26: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:28: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/index.html.erb:17:in `' + +Started POST "/__better_errors/a72ab1ece808cbcb/variables" for ::1 at 2019-04-14 19:12:24 -0700 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC LIMIT $1 [["LIMIT", 11]] + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-14 19:16:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_then or ';' or '\n' +...date_completed != nil completed at: end );@output_buffer.saf... +... ^~~~~~~~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:21: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:26: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views/tasks/index.html.erb:28: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/index.html.erb:17:in `' + +Started POST "/__better_errors/2dc257719854be5a/variables" for ::1 at 2019-04-14 19:16:11 -0700 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC LIMIT $1 [["LIMIT", 11]] + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-14 19:16:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 79ms (Views: 74.9ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-14 19:17:29 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"2njm2oYBG1+ZJ/wUhHQBSypWzqleBr814VM+9/05UD3U/BIEtfrbFjpKYAlo29A/VzX2B8RLRM2dZFOWyJAJ9w==", "id"=>"15"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (1.9ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:17:29.706333"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:80 +  (2.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 46ms (ActiveRecord: 10.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:17:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (15.4ms) +Completed 200 OK in 119ms (Views: 106.1ms | ActiveRecord: 0.8ms) + + +Started PUT "/tasks/11" for ::1 at 2019-04-14 19:17:34 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"HOMOYe/TJ3RWyQX5xeS4ko3WXCUUW8U44c3ZByo7mE0SZ/q/3CjnPfWkmeQpS2nm8LVki44WPsCd+rRmH5LBhw==", "id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-15 02:17:34.268903"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:80 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 41.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:17:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 58ms (Views: 51.8ms | ActiveRecord: 0.7ms) + + +Started PUT "/tasks/11" for ::1 at 2019-04-14 19:17:36 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"fx+IYvDMif68xwY6OPboS/LPLd/aABO1Pspxrzzlm3Vxm3y8wzdJtx+qmifUWTk/j6wVcUBN6E1C/RzOCUzCvw==", "id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `now' for Date:Class +Did you mean? new: + app/controllers/tasks_controller.rb:77:in `toggle_completed' + +Started POST "/__better_errors/c04f04fb413d2e8f/variables" for ::1 at 2019-04-14 19:17:36 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 19:18:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (23.2ms) +Completed 200 OK in 96ms (Views: 82.7ms | ActiveRecord: 4.0ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:18:09 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"ILpkQ2iO+NiJSaNX+3qAjkFuUGvflpbWAh52ExJis9cuPpCdW3U4kSokP0oX1VH6PA1oxUXbbS5+KRtyJ8vqHQ==", "id"=>"10"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-14 00:00:00"], ["updated_at", "2019-04-15 02:18:09.032741"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:80 +  (2.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 3.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:18:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (11.4ms) +Completed 200 OK in 56ms (Views: 47.6ms | ActiveRecord: 3.0ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:18:10 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"q0NCyc5ADIMbZiNqUDVx5x/2852ip9QTeinNOBUx3Gulx7YX/bvMyrgLv3e8mqCTYpXLMzjqL+sGHqBZIJiFoQ==", "id"=>"10"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:18:10.749729"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 42.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:18:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 48ms (Views: 42.4ms | ActiveRecord: 1.4ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:18:11 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"GAX/GZn0/bCJ/K565rkdzWBoI3MvsQZXponyT9vQMdQWgQvHqg89+SqRMmcKFsy5HQsb3bX8/a/avp8u7nloHg==", "id"=>"10"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (8.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (3.8ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-14 00:00:00"], ["updated_at", "2019-04-15 02:18:11.901400"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 62ms (ActiveRecord: 54.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:18:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (10.5ms) +Completed 200 OK in 73ms (Views: 67.1ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 19:18:14 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"/wgrD6weLcNm1NPpDk0+0ihmF2OQExl47K4ayZNRh1DxjN/Rn+XtisW5T/Ti4u+mVQUvzQpe4oCQmXeopvjemg==", "id"=>"13"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-14 00:00:00"], ["updated_at", "2019-04-15 02:18:14.549687"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:80 +  (40.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 42.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:18:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 45ms (Views: 39.3ms | ActiveRecord: 1.3ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 19:18:16 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"5hcvr56hx/PYG1zbQee4dLVk1GD3LwQxA/t+u+Aa3lXok9txrVoHunt2wMatSGkAyAfszm1i/8l/zBPa1bOHnw==", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (2.1ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:18:16.539179"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:80 +  (4.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 15ms (ActiveRecord: 6.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:18:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 55ms (Views: 49.7ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 19:18:18 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"5XRlMe6sctY57Duhl7xO8LB2y3p0jyUCHfoHMR3833fr8JHv3Veyn5qBp7x7E5+EzRXz1O7C3vphzWpQKFWGvQ==", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (4.1ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-14 00:00:00"], ["updated_at", "2019-04-15 02:18:18.290439"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 53ms (ActiveRecord: 46.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:18:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (8.7ms) +Completed 200 OK in 77ms (Views: 70.6ms | ActiveRecord: 2.3ms) + + +Started PUT "/tasks/13" for ::1 at 2019-04-14 19:18:27 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"w24M8gGdbBZ9Dw/HyWKLkzPVCGiR8V0D6zjx+De3xAbN6vgsMmasX95ik9olzVrnTrYwxgu8pvuXD5yZAh6dzA==", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:18:27.704222"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 42.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:18:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (6.5ms) +Completed 200 OK in 45ms (Views: 41.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:25:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (16.6ms) +Completed 200 OK in 96ms (Views: 76.0ms | ActiveRecord: 9.4ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:25:52 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"DL8VkbY+t6sc+lNsQ/BWnkVATeyN0JhNeGlU/1d3nAYCO+FPhcV34r+Xz3GvX4fqOCN1QhedY7UEXjmeYt7FzA==", "id"=>"10"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (3.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:25:52.257359"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 55ms (ActiveRecord: 46.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:25:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (14.3ms) +Completed 200 OK in 86ms (Views: 79.6ms | ActiveRecord: 0.7ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-14 19:25:53 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"8DDJNJRwOYK6v5WgZoEkjCyNxsbTud2+HJcWKbuTzgb+tD3qp4v5yxnSCb2KLvX4Ue7+aEn0JkZgoHtIjjqXzA==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 00:00:00"], ["updated_at", "2019-04-15 02:25:53.475025"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 47ms (ActiveRecord: 42.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:25:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 58ms (Views: 54.3ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-14 19:26:57 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"ufEf/7Q4uoerQBPm+OXg6mdTzF8IVKeUuwn4Xdl1OO+3deshh8N6zggtj/sUSjGeGjD08ZIZXGzHPpU87NxhJQ==", "id"=>"15"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 02:26:58.000024"], ["updated_at", "2019-04-15 02:26:58.000923"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:80 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 46ms (ActiveRecord: 22.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:26:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (30.8ms) +Completed 200 OK in 135ms (Views: 128.8ms | ActiveRecord: 0.9ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-14 19:27:02 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"g81BnbujNTYNGFfAxcVM4TIVgEeBnn37xD4G0NAlcnCNSbVDiFj1f651y90pap2VT3a46RvThgO4CWux5Ywrug==", "id"=>"15"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 02:27:02.182303"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 43.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:27:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (8.7ms) +Completed 200 OK in 60ms (Views: 51.2ms | ActiveRecord: 3.6ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-14 19:27:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (6.2ms) +Completed 200 OK in 73ms (Views: 58.0ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks/15/edit" for ::1 at 2019-04-14 19:27:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (9.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (5.0ms) + Rendered tasks/edit.html.erb within layouts/application (11.6ms) +Completed 200 OK in 76ms (Views: 54.7ms | ActiveRecord: 9.2ms) + + +Started PATCH "/tasks/15" for ::1 at 2019-04-14 19:27:20 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PP1UaVdlPd4kjznXhHkQOrRmDNTDg9S+wJ9RonZQE+sFbe9e0wQfPNjTslmglOlwYpG365VfUhLP8I1rPYqelA==", "task"=>{"task_name"=>"Amazon order", "description"=>"place order, use gift card or points", "date_due"=>""}, "commit"=>"Save Changes", "id"=>"15"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (2.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (1.7ms) UPDATE "tasks" SET "task_name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["task_name", "Amazon order"], ["updated_at", "2019-04-15 02:27:20.197744"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:44 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 16ms (ActiveRecord: 6.3ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-14 19:27:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (6.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (15.8ms) +Completed 200 OK in 93ms (Views: 78.6ms | ActiveRecord: 6.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:27:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 59ms (Views: 52.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 07:14:00 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (46.1ms) + Rendered tasks/new.html.erb within layouts/application (52.1ms) +Completed 200 OK in 458ms (Views: 418.8ms | ActiveRecord: 7.2ms) + + +Started POST "/tasks" for ::1 at 2019-04-15 08:01:52 -0700 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y22gCe5aRGzZGXgsdUcp87G+OmwxACaXH/qKOoEsGcmdZmSq31QpaZQLD63a13+QN92UYw43BbUWApSyAnXi5Q==", "task"=>{"task_name"=>"pack lunch", "description"=>"something yummy", "date_due"=>""}, "commit"=>"Make New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (21.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "pack lunch"], ["description", "something yummy"], ["created_at", "2019-04-15 15:01:53.368767"], ["updated_at", "2019-04-15 15:01:53.368767"]] + ↳ app/controllers/tasks_controller.rb:24 +  (1.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 58ms (ActiveRecord: 30.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 08:01:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (43.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (53.2ms) +Completed 200 OK in 411ms (Views: 362.7ms | ActiveRecord: 43.2ms) + + +Started PUT "/tasks/18" for ::1 at 2019-04-15 08:01:58 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"AoOMupYh6UtwSX38SUoR2zmSlcAsfmx242ckZWeaZ/kMB3hkpdopAtMk4eGl5cCvRPGtbrYzl46fUEkEUjM+Mw==", "id"=>"18"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (2.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (46.3ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 15:01:58.468311"], ["updated_at", "2019-04-15 15:01:58.472272"], ["id", 18]] + ↳ app/controllers/tasks_controller.rb:80 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Completed 500 Internal Server Error in 70ms (ActiveRecord: 51.9ms) + + + +ActionView::MissingTemplate - Missing template /tasks with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views" +: + app/controllers/tasks_controller.rb:82:in `toggle_completed' + +Started POST "/__better_errors/38318d61eb4b6034/variables" for ::1 at 2019-04-15 08:01:58 -0700 +Started PUT "/tasks/18" for ::1 at 2019-04-15 08:03:56 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"AoOMupYh6UtwSX38SUoR2zmSlcAsfmx242ckZWeaZ/kMB3hkpdopAtMk4eGl5cCvRPGtbrYzl46fUEkEUjM+Mw==", "id"=>"18"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (1.3ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 15:03:56.496978"], ["id", 18]] + ↳ app/controllers/tasks_controller.rb:80 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Completed 500 Internal Server Error in 46ms (ActiveRecord: 11.2ms) + + + +ActionView::MissingTemplate - Missing template tasks/tasks_path, application/tasks_path with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views" +: + app/controllers/tasks_controller.rb:82:in `toggle_completed' + +Started POST "/__better_errors/af34eee80b323a36/variables" for ::1 at 2019-04-15 08:03:56 -0700 +Started PUT "/tasks/10" for ::1 at 2019-04-15 08:04:05 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"AoOMupYh6UtwSX38SUoR2zmSlcAsfmx242ckZWeaZ/kMB3hkpdopAtMk4eGl5cCvRPGtbrYzl46fUEkEUjM+Mw==", "id"=>"10"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (1.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.8ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 15:04:05.251677"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:80 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Completed 500 Internal Server Error in 26ms (ActiveRecord: 4.9ms) + + + +ActionView::MissingTemplate - Missing template tasks/tasks_path, application/tasks_path with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views" +: + app/controllers/tasks_controller.rb:82:in `toggle_completed' + +Started POST "/__better_errors/ca6a6aa5ac697e67/variables" for ::1 at 2019-04-15 08:04:05 -0700 +Started GET "/tasks/11" for ::1 at 2019-04-15 10:12:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (21.7ms) +Completed 200 OK in 129ms (Views: 105.7ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:13:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (14.3ms) +Completed 200 OK in 94ms (Views: 76.1ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/18/edit" for ::1 at 2019-04-15 10:13:02 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"18"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (98.2ms) + Rendered tasks/edit.html.erb within layouts/application (112.3ms) +Completed 200 OK in 217ms (Views: 198.1ms | ActiveRecord: 1.0ms) + + +Started PUT "/tasks/10" for ::1 at 2019-04-15 10:14:30 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"mf6Lq9idgRvJYVY6nuYNQMxeCH9ioqEXEetDVsINVJGXen9162ZBUmoMyidySdw0sT0w0fjvWu9t3C4396QNWw==", "id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (1.0ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 17:14:30.281611"], ["updated_at", "2019-04-15 17:14:30.282965"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:80 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Completed 500 Internal Server Error in 24ms (ActiveRecord: 2.9ms) + + + +ActionView::MissingTemplate - Missing template tasks/tasks_path, application/tasks_path with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/elle/Files/ada/dev/module3-Rails/TaskList/app/views" +: + app/controllers/tasks_controller.rb:82:in `toggle_completed' + +Started POST "/__better_errors/89fac9b6a1e979fe/variables" for ::1 at 2019-04-15 10:14:30 -0700 +Started PUT "/tasks/14" for ::1 at 2019-04-15 10:15:15 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"mf6Lq9idgRvJYVY6nuYNQMxeCH9ioqEXEetDVsINVJGXen9162ZBUmoMyidySdw0sT0w0fjvWu9t3C4396QNWw==", "id"=>"14"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 17:15:15.459239"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:80 +  (2.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 35ms (ActiveRecord: 13.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:15:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 66ms (Views: 60.3ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-15 10:15:19 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"9W+erMQPlINUfJoN8Tg3bWcq7o21KKCGiGes44uRcvX762py9/RUyvcRBhAdl+YZGknWIy9lW370UMGCvjgrPw==", "id"=>"15"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (1.7ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 17:15:19.069041"], ["updated_at", "2019-04-15 17:15:19.069755"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 43.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:15:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 36ms (Views: 32.5ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-15 10:15:37 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"3wqYQDBZmDyxAbuzzdmWysR4FQML+xEGDH9UXPAZKvzRjmyeA6JYdRJsJ64hdke+uRstrZG26v5wSDk9xbBzNg==", "id"=>"15"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (2.7ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 17:15:37.709651"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:80 +  (2.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 5.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:15:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 41ms (Views: 37.7ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-15 10:15:40 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"IAsNtuivWarlj9S+g0iRRELJDVQwVltKvd30difg55Euj/lo21SZ40biSKNv50AwP6o1+qoboLLB6pkXEkm+Ww==", "id"=>"15"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 17:15:40.140207"], ["updated_at", "2019-04-15 17:15:40.141943"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:80 +  (1.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 4.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:15:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 37ms (Views: 33.9ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-15 10:15:42 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"yMmNzq+nXUGHbRxrLUfv+tLWlu+Vr+5xpqzu46ZUAJ7GTXkQnFydCCQAgHbB6D6Or7WuQQ/iFYnam4OCk/1ZVA==", "id"=>"15"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (1.1ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 17:15:42.908352"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:80 +  (39.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 41.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:15:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (43.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (47.5ms) +Completed 200 OK in 84ms (Views: 34.3ms | ActiveRecord: 43.2ms) + + +Started PUT "/tasks/15" for ::1 at 2019-04-15 10:15:48 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"vxEZtxHqL+8XcG2G3DmkzcPBJg43uA46hkC+0W8iWwGxle1pIhHvprQd8ZswlnW5vqIeoK319cL6d9OwWosCyw==", "id"=>"15"} + Task Load (3.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 17:15:48.285656"], ["updated_at", "2019-04-15 17:15:48.286861"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:80 +  (1.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 6.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:15:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 41ms (Views: 35.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:31:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (21.1ms) +Completed 200 OK in 97ms (Views: 77.1ms | ActiveRecord: 8.9ms) + + +Started PUT "/tasks/:id/toggle_completed" for ::1 at 2019-04-15 10:31:18 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"U0SsyA8ZE5dhHD81QMwc2l3FXe94xRHzxPxUZImJo09dwFgWPOLT3sJxoyisY82uIKZlQeKI6gu4yzkFvCD6hQ==", "id"=>":id"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.7ms) + + + +NoMethodError - undefined method `completed' for nil:NilClass: + app/controllers/tasks_controller.rb:72:in `toggle_completed' + +Started POST "/__better_errors/fe83c8cac66c1699/variables" for ::1 at 2019-04-15 10:31:18 -0700 +Started PUT "/tasks/:id/toggle_completed" for ::1 at 2019-04-15 10:32:45 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"U0SsyA8ZE5dhHD81QMwc2l3FXe94xRHzxPxUZImJo09dwFgWPOLT3sJxoyisY82uIKZlQeKI6gu4yzkFvCD6hQ==", "id"=>":id"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +Completed 500 Internal Server Error in 10ms (ActiveRecord: 2.0ms) + + + +NoMethodError - undefined method `[]' for nil:NilClass: + app/controllers/tasks_controller.rb:72:in `toggle_completed' + +Started POST "/__better_errors/a9abcc390c35545c/variables" for ::1 at 2019-04-15 10:32:45 -0700 +Started PUT "/tasks/:id/toggle_completed" for ::1 at 2019-04-15 10:34:00 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"U0SsyA8ZE5dhHD81QMwc2l3FXe94xRHzxPxUZImJo09dwFgWPOLT3sJxoyisY82uIKZlQeKI6gu4yzkFvCD6hQ==", "id"=>":id"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +Completed 500 Internal Server Error in 12ms (ActiveRecord: 1.8ms) + + + +NoMethodError - undefined method `[]' for nil:NilClass: + app/controllers/tasks_controller.rb:72:in `toggle_completed' + +Started POST "/__better_errors/5ec2f077a140f49e/variables" for ::1 at 2019-04-15 10:34:00 -0700 +Started GET "/tasks" for ::1 at 2019-04-15 10:54:08 -0700 +  (19.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (30.0ms) +Completed 200 OK in 429ms (Views: 390.7ms | ActiveRecord: 18.2ms) + + +Started PUT "/tasks/:id/toggle_completed" for ::1 at 2019-04-15 10:54:10 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"G1MgtsDnV/Gaq3WBoqYdFLT1fArjMr/ZiQriFtJjBpgV19Ro8xyXuDnG6ZxOCcxgyZZEpHl/RCH1PY9358pfUg==", "id"=>":id"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +Completed 500 Internal Server Error in 10ms (ActiveRecord: 1.9ms) + + + +NoMethodError - undefined method `completed' for nil:NilClass: + app/controllers/tasks_controller.rb:72:in `toggle_completed' + +Started POST "/__better_errors/04b1a47813c1ef6f/variables" for ::1 at 2019-04-15 10:54:11 -0700 +Started GET "/tasks" for ::1 at 2019-04-15 10:56:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (24.3ms) +Completed 200 OK in 110ms (Views: 85.5ms | ActiveRecord: 12.4ms) + + +Started PUT "/tasks/18/toggle_completed" for ::1 at 2019-04-15 10:56:44 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"aV3kWh/0EVOZVdQg5nHjmZFz2DknRNdBFu6CW32so4Zn2RCELA/RGjo4SD0K3jLt7BDgl70JLLlq2e86SAX6TA==", "id"=>"18"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (1.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (1.4ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-15 17:56:44.313810"], ["updated_at", "2019-04-15 17:56:44.317092"], ["id", 18]] + ↳ app/controllers/tasks_controller.rb:80 +  (40.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 52ms (ActiveRecord: 44.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:56:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (11.6ms) +Completed 200 OK in 55ms (Views: 50.3ms | ActiveRecord: 0.9ms) + + +Started PUT "/tasks/18/toggle_completed" for ::1 at 2019-04-15 10:56:45 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"l4enaZNxfuowyRU1Sm+CfxzQGs6ScD+qVvHF0dLHFGeZA1O3oIq+o5OkiSimwFMLYbMiYAg9xFIqxqiw525NrQ==", "id"=>"18"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-15 17:56:45.324439"], ["id", 18]] + ↳ app/controllers/tasks_controller.rb:80 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:56:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 53ms (Views: 47.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-18 09:30:44 -0700 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/elle/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (44.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (81.2ms) +Completed 200 OK in 558ms (Views: 427.5ms | ActiveRecord: 101.8ms) + + +Started PUT "/tasks/10/toggle_completed" for ::1 at 2019-04-18 09:30:49 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"i+eEb93lPyPEp4mTZS7CWAP5N4Bggbstre4rGSjNtlGFY3Cx7h7/amfKFY6JgRMsfpoPLvrMQNXR2UZ4HWTvmw==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (1.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (42.7ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-18 16:30:49.424860"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:80 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 98ms (ActiveRecord: 46.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-18 09:30:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.7ms) +Completed 200 OK in 46ms (Views: 42.5ms | ActiveRecord: 0.7ms) + + +Started PUT "/tasks/10/toggle_completed" for ::1 at 2019-04-18 09:30:50 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"U37EVDg9aaY8wFCU/r3y8mA9ey2N5Ec2J5pcIdhvWgxd+jCKC8ap75+tzIkSEiOGHV5DgxepvM5brTFA7cYDxg==", "id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-18 16:30:50.853964"], ["updated_at", "2019-04-18 16:30:50.854885"], ["id", 10]] + ↳ app/controllers/tasks_controller.rb:80 +  (3.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 4.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-18 09:30:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (8.2ms) +Completed 200 OK in 43ms (Views: 37.4ms | ActiveRecord: 0.7ms) + + +Started PUT "/tasks/18/toggle_completed" for ::1 at 2019-04-18 09:30:52 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"0jYA8GAhT46OUNDZ+tECBiHFoK+M7shBhGzsbHbGKJfcsvQuU9qPxy09TMQWftNyXKaYARajM7n4W4ENQ29xXQ==", "id"=>"18"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (2.8ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-18 16:30:52.030605"], ["updated_at", "2019-04-18 16:30:52.032026"], ["id", 18]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 54ms (ActiveRecord: 45.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-18 09:30:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 38ms (Views: 33.6ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/18/toggle_completed" for ::1 at 2019-04-18 09:30:53 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"8zrBXOk79Zznpf27OAc7L0Ic3HA/1xBVujpYLdKyS+P9vjWC2sA11UTIYabUqOpbP3/k3qWa663GDTVM5xsSKQ==", "id"=>"18"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (3.9ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-18 16:30:53.181888"], ["id", 18]] + ↳ app/controllers/tasks_controller.rb:80 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 52ms (ActiveRecord: 45.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-18 09:30:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 34ms (Views: 31.4ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/14/toggle_completed" for ::1 at 2019-04-18 09:30:55 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"UF0CG18R4OmYe9pI06lsYrCGDrnFDKw/QS8KG4RveUZe2fbFbOogoDsWRlU/Br0WzeU2F19BV8c9GGd6scYgjA==", "id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-18 16:30:55.609103"], ["updated_at", "2019-04-18 16:30:55.609878"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:80 +  (41.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 47ms (ActiveRecord: 41.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-18 09:30:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (7.5ms) +Completed 200 OK in 44ms (Views: 38.7ms | ActiveRecord: 0.5ms) + + +Started PUT "/tasks/14/toggle_completed" for ::1 at 2019-04-18 09:30:56 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"i/AtyL6NcftLvEs4soC7y1lZUbhnb/95OxfLvEwaWZyFdNkWjXaxsujR1yVeL2q/JDppFv0iBIFHIKbdebMAVg==", "id"=>"14"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-18 16:30:56.669629"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:80 +  (27.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 36ms (ActiveRecord: 28.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-18 09:30:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (9.2ms) +Completed 200 OK in 61ms (Views: 53.9ms | ActiveRecord: 3.0ms) + + +Started PUT "/tasks/13/toggle_completed" for ::1 at 2019-04-18 09:30:58 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"VWAOYyR8TdBTkphFWBR2bbHKKnxEFmw6Psp02zHVD51b5Pq9F4eNmfD/BFi0u6cZzKkS0t5bl8JC/Rm6BHxWVw==", "id"=>"13"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (1.4ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", true], ["date_completed", "2019-04-18 16:30:58.388352"], ["updated_at", "2019-04-18 16:30:58.389026"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:80 +  (2.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 4.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-18 09:30:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 41ms (Views: 35.7ms | ActiveRecord: 0.4ms) + + +Started PUT "/tasks/13/toggle_completed" for ::1 at 2019-04-18 09:30:59 -0700 +Processing by TasksController#toggle_completed as HTML + Parameters: {"authenticity_token"=>"xW4hbQwD3xxuMSN6AmcpMuLdtuL3W9sw3Tx7GY3PgUzL6tWzP/gfVc1cv2fuyPhGn76OTG0WIMihCxZ4uGbYhg==", "id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:66 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:80 + Task Update (1.2ms) UPDATE "tasks" SET "completed" = $1, "date_completed" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["completed", false], ["date_completed", nil], ["updated_at", "2019-04-18 16:30:59.210486"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:80 +  (42.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:80 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 43.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-18 09:30:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 42ms (Views: 38.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/13/edit" for ::1 at 2019-04-18 09:31:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"13"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (32.4ms) + Rendered tasks/edit.html.erb within layouts/application (39.8ms) +Completed 200 OK in 86ms (Views: 74.6ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/13" for ::1 at 2019-04-18 09:31:28 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"OYBSIq7WMWZBLmGSFwk47KFwcpp3IjPbND0qboHKYTSZ79au6pkId2/aq7uGPthsHTP9Jpoc58WOVFCfqo938g==", "task"=>{"task_name"=>"meal prep", "description"=>"buy and make food for the week, get bananas", "date_due"=>"2019-04-21"}, "commit"=>"Save Changes", "id"=>"13"} + Task Load (5.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 +  (2.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:44 + Task Update (0.5ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "buy and make food for the week, get bananas"], ["updated_at", "2019-04-18 16:31:29.018403"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:44 +  (41.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:44 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 61ms (ActiveRecord: 50.7ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-18 09:31:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:11 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.3ms) +Completed 200 OK in 42ms (Views: 35.7ms | ActiveRecord: 0.5ms) + + diff --git a/log/test.log b/log/test.log new file mode 100644 index 000000000..04ce9f49a --- /dev/null +++ b/log/test.log @@ -0,0 +1,9987 @@ +  (241.6ms) DROP DATABASE IF EXISTS "TaskList_test" +  (573.5ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-08 14:56:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 308ms (Views: 298.6ms | ActiveRecord: 0.0ms) +  (0.9ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (241.3ms) DROP DATABASE IF EXISTS "TaskList_test" +  (562.1ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.2ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (36.4ms) CREATE TABLE "tasks" ("id" bigserial primary key, "task_name" character varying, "description" character varying, "date_due" date, "date_completed" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (40.9ms) INSERT INTO "schema_migrations" (version) VALUES (20190409233040) +  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES +(20190409230620); + + +  (26.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) BEGIN + ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-04-10 00:06:01.798701"], ["updated_at", "2019-04-10 00:06:01.798701"]] +  (1.4ms) COMMIT + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.3ms) BEGIN +  (0.2ms) COMMIT +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (31.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (4.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-10 00:06:02.967209', '2019-04-10 00:06:02.967209'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-10 00:06:02.967209', '2019-04-10 00:06:02.967209') +  (1.4ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 17:06:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 507ms (Views: 493.5ms | ActiveRecord: 0.8ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-10 00:09:45.199589', '2019-04-10 00:09:45.199589'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-10 00:09:45.199589', '2019-04-10 00:09:45.199589') +  (40.9ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 17:09:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + Rendered tasks/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 273ms (Views: 263.3ms | ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-09 17:09:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (9.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (302.1ms) DROP DATABASE IF EXISTS "TaskList_test" +  (766.5ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (1.4ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (33.8ms) CREATE TABLE "tasks" ("id" bigserial primary key, "task_name" character varying, "description" character varying, "date_due" date, "date_completed" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "completed" boolean DEFAULT FALSE) +  (4.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES (20190411214858) +  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES +(20190409233040), +(20190409230620); + + +  (6.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (1.6ms) BEGIN + ActiveRecord::InternalMetadata Create (4.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-04-12 21:30:03.836119"], ["updated_at", "2019-04-12 21:30:03.836119"]] +  (1.3ms) COMMIT + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (41.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (4.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-12 21:30:04.328113', '2019-04-12 21:30:04.328113', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-12 21:30:04.328113', '2019-04-12 21:30:04.328113', DEFAULT) +  (1.7ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:30:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + Rendered tasks/index.html.erb within layouts/application (21.2ms) +Completed 200 OK in 219ms (Views: 210.3ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-12 21:32:32.063556', '2019-04-12 21:32:32.063556', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-12 21:32:32.063556', '2019-04-12 21:32:32.063556', DEFAULT) +  (28.7ms) COMMIT +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.4ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:32:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + Rendered tasks/index.html.erb within layouts/application (23.8ms) +Completed 200 OK in 262ms (Views: 250.5ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:32:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-12 21:33:38.469690', '2019-04-12 21:33:38.469690', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-12 21:33:38.469690', '2019-04-12 21:33:38.469690', DEFAULT) +  (13.1ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:33:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + Rendered tasks/index.html.erb within layouts/application (17.6ms) +Completed 200 OK in 271ms (Views: 262.5ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-12 21:37:48.846977', '2019-04-12 21:37:48.846977', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-12 21:37:48.846977', '2019-04-12 21:37:48.846977', DEFAULT) +  (41.7ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:37:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + Rendered tasks/index.html.erb within layouts/application (18.6ms) +Completed 200 OK in 260ms (Views: 250.1ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:37:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" DESC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (2.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 17:58:31.889554', '2019-04-13 17:58:31.889554', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 17:58:31.889554', '2019-04-13 17:58:31.889554', DEFAULT) +  (1.7ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 10:58:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 20ms (ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (40.2ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 17:58:32.056193"], ["updated_at", "2019-04-13 17:58:32.056193"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 10:58:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (356.0ms) +Completed 200 OK in 381ms (Views: 373.6ms | ActiveRecord: 0.3ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 10:58:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 13ms (Views: 5.3ms | ActiveRecord: 2.8ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 10:58:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.5ms) +  (1.2ms) ROLLBACK +  (0.3ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (15.0ms) ROLLBACK +  (6.0ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (2.5ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.9ms) ROLLBACK +  (2.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (86.7ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 10:58:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 17:58:32.677558"], ["updated_at", "2019-04-13 17:58:32.677558"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 10:58:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (24.4ms) +Completed 200 OK in 30ms (Views: 26.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.7ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:00:20.066414', '2019-04-13 18:00:20.066414', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:00:20.066414', '2019-04-13 18:00:20.066414', DEFAULT) +  (40.7ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 11:00:20 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 18:00:20.205394"], ["updated_at", "2019-04-13 18:00:20.205394"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 18ms (ActiveRecord: 0.7ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 11:00:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 18:00:20.236495"], ["updated_at", "2019-04-13 18:00:20.236495"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 11:00:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (265.5ms) +Completed 200 OK in 287ms (Views: 282.0ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 11:00:20 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (25.8ms) +Completed 200 OK in 31ms (Views: 27.7ms | ActiveRecord: 0.0ms) +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 11:00:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.6ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 11:00:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:01:00.311570', '2019-04-13 18:01:00.311570', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:01:00.311570', '2019-04-13 18:01:00.311570', DEFAULT) +  (40.6ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 18:01:00.396005"], ["updated_at", "2019-04-13 18:01:00.396005"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 11:01:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (276.9ms) +Completed 200 OK in 311ms (Views: 291.4ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 11:01:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 11:01:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (20.0ms) +Completed 200 OK in 25ms (Views: 21.7ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 11:01:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 9ms (Views: 4.2ms | ActiveRecord: 1.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 11:01:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 11:01:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 18:01:00.799014"], ["updated_at", "2019-04-13 18:01:00.799014"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (41.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:05:17.988152', '2019-04-13 18:05:17.988152', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:05:17.988152', '2019-04-13 18:05:17.988152', DEFAULT) +  (1.7ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 11:05:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (20.8ms) +Completed 200 OK in 365ms (Views: 355.3ms | ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 11:05:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 11:05:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 18:05:18.451873"], ["updated_at", "2019-04-13 18:05:18.451873"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 18:05:18.468516"], ["updated_at", "2019-04-13 18:05:18.468516"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 11:05:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 8ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 11:05:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 11:05:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (23.2ms) +Completed 200 OK in 28ms (Views: 24.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.7ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:09:04.949637', '2019-04-13 18:09:04.949637', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:09:04.949637', '2019-04-13 18:09:04.949637', DEFAULT) +  (41.1ms) COMMIT +  (0.4ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 11:09:05 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (33.1ms) +Completed 200 OK in 396ms (Views: 377.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 11:09:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 11:09:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 18:09:05.462563"], ["updated_at", "2019-04-13 18:09:05.462563"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 11:09:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.9ms) +Completed 200 OK in 12ms (Views: 4.3ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 11:09:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 11:09:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 18:09:05.537647"], ["updated_at", "2019-04-13 18:09:05.537647"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:10:21.603467', '2019-04-13 18:10:21.603467', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 18:10:21.603467', '2019-04-13 18:10:21.603467', DEFAULT) +  (40.6ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 11:10:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (16.2ms) +Completed 200 OK in 357ms (Views: 347.8ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 11:10:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 11:10:22 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (28.2ms) +Completed 200 OK in 36ms (Views: 31.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 18:10:22.100526"], ["updated_at", "2019-04-13 18:10:22.100526"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 11:10:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 11:10:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 404 Not Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 11:10:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 18:10:22.152137"], ["updated_at", "2019-04-13 18:10:22.152137"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (2.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:19:48.879751', '2019-04-13 19:19:48.879751', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:19:48.879751', '2019-04-13 19:19:48.879751', DEFAULT) +  (1.7ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 12:19:48 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 19:19:49.012766"], ["updated_at", "2019-04-13 19:19:49.012766"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 43ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 19:19:49.033618"], ["updated_at", "2019-04-13 19:19:49.033618"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 12:19:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 12:19:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 12:19:49 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (29.9ms) +Completed 200 OK in 301ms (Views: 296.4ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 12:19:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 12:19:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (14.3ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:25:22.073441', '2019-04-13 19:25:22.073441', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:25:22.073441', '2019-04-13 19:25:22.073441', DEFAULT) +  (1.5ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 12:25:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 19:25:22.136795"], ["updated_at", "2019-04-13 19:25:22.136795"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 19ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 12:25:22 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (25.8ms) +Completed 200 OK in 310ms (Views: 306.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 12:25:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 12:25:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 19:25:22.502073"], ["updated_at", "2019-04-13 19:25:22.502073"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 12:25:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 12:25:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:31:46.921994', '2019-04-13 19:31:46.921994', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:31:46.921994', '2019-04-13 19:31:46.921994', DEFAULT) +  (39.6ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 12:31:46 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 19:31:47.025472"], ["updated_at", "2019-04-13 19:31:47.025472"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 18ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 12:31:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 260ms (Views: 255.4ms | ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 12:31:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 12:31:47 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (19.5ms) +Completed 200 OK in 25ms (Views: 21.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 12:31:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 19:31:47.387741"], ["updated_at", "2019-04-13 19:31:47.387741"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 12:31:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:34:58.596303', '2019-04-13 19:34:58.596303', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:34:58.596303', '2019-04-13 19:34:58.596303', DEFAULT) +  (41.4ms) COMMIT +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 12:34:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 19:34:58.692846"], ["updated_at", "2019-04-13 19:34:58.692846"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 18ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 12:34:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 19:34:58.722120"], ["updated_at", "2019-04-13 19:34:58.722120"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 12:34:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 12:34:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (22.4ms) +Completed 200 OK in 260ms (Views: 256.0ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 12:34:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 8ms (Views: 2.9ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 12:34:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:35:33.971784', '2019-04-13 19:35:33.971784', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:35:33.971784', '2019-04-13 19:35:33.971784', DEFAULT) +  (1.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 12:35:33 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.8ms) +Completed 200 OK in 218ms (Views: 195.1ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 19:35:34.229426"], ["updated_at", "2019-04-13 19:35:34.229426"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 12:35:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +Completed 500 Internal Server Error in 19ms (ActiveRecord: 1.0ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 12:35:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.5ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 12:35:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 12:35:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 12:35:34 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 19:35:34.311736"], ["updated_at", "2019-04-13 19:35:34.311736"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:35:53.367661', '2019-04-13 19:35:53.367661', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:35:53.367661', '2019-04-13 19:35:53.367661', DEFAULT) +  (41.0ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 12:35:53 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.2ms) +Completed 200 OK in 198ms (Views: 182.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 19:35:53.646969"], ["updated_at", "2019-04-13 19:35:53.646969"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 12:35:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 12:35:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 12:35:53 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 19:35:53.699274"], ["updated_at", "2019-04-13 19:35:53.699274"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 12:35:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 12:35:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:36:53.403291', '2019-04-13 19:36:53.403291', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:36:53.403291', '2019-04-13 19:36:53.403291', DEFAULT) +  (44.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 12:36:53 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 19:36:53.498471"], ["updated_at", "2019-04-13 19:36:53.498471"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 19ms (ActiveRecord: 1.0ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 12:36:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 255ms (Views: 250.4ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 12:36:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 12:36:53 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (18.2ms) +Completed 200 OK in 23ms (Views: 19.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 12:36:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 19:36:53.837093"], ["updated_at", "2019-04-13 19:36:53.837093"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 12:36:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:38:08.370529', '2019-04-13 19:38:08.370529', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:38:08.370529', '2019-04-13 19:38:08.370529', DEFAULT) +  (40.8ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 12:38:08 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 19:38:08.463042"], ["updated_at", "2019-04-13 19:38:08.463042"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 19ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 12:38:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (27.4ms) +Completed 200 OK in 356ms (Views: 352.3ms | ActiveRecord: 0.0ms) +  (0.6ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 12:38:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 7ms (ActiveRecord: 1.8ms) +  (4.6ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 19:38:08.951380"], ["updated_at", "2019-04-13 19:38:08.951380"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 12:38:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 12:38:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 12:38:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:50:48.493431', '2019-04-13 19:50:48.493431', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 19:50:48.493431', '2019-04-13 19:50:48.493431', DEFAULT) +  (41.0ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 12:50:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 13ms (ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 19:50:48.625615"], ["updated_at", "2019-04-13 19:50:48.625615"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 12:50:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (373.5ms) +Completed 200 OK in 397ms (Views: 388.6ms | ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 12:50:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 12:50:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 12:50:49 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 19:50:49.075127"], ["updated_at", "2019-04-13 19:50:49.075127"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 12:50:49 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (20.2ms) +Completed 200 OK in 26ms (Views: 21.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:02:01.412294', '2019-04-13 20:02:01.412294', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:02:01.412294', '2019-04-13 20:02:01.412294', DEFAULT) +  (41.0ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.5ms) COMMIT +  (0.3ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 13:02:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 43ms (ActiveRecord: 0.9ms) +  (0.4ms) ROLLBACK +  (0.6ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (40.9ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:02:01.673225"], ["updated_at", "2019-04-13 20:02:01.673225"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 13:02:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (385.0ms) +Completed 200 OK in 419ms (Views: 407.9ms | ActiveRecord: 0.4ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 13:02:02 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "date_due"=>nil}} +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 20:02:02.156389"], ["updated_at", "2019-04-13 20:02:02.156389"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 9ms (ActiveRecord: 1.5ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 13:02:02 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (22.7ms) +Completed 200 OK in 30ms (Views: 24.8ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 13:02:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 12ms (Views: 5.4ms | ActiveRecord: 1.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 13:02:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:08:35.173378', '2019-04-13 20:08:35.173378', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:08:35.173378', '2019-04-13 20:08:35.173378', DEFAULT) +  (41.2ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 13:08:35 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (31.3ms) +Completed 200 OK in 393ms (Views: 370.7ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 13:08:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :name +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("description", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["description", "new task description"], ["created_at", "2019-04-13 20:08:35.662597"], ["updated_at", "2019-04-13 20:08:35.662597"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 13:08:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 13:08:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:08:35.793180"], ["updated_at", "2019-04-13 20:08:35.793180"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 13:08:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 9ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 13:08:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:11:09.180222', '2019-04-13 20:11:09.180222', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:11:09.180222', '2019-04-13 20:11:09.180222', DEFAULT) +  (40.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 13:11:09 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (22.7ms) +Completed 200 OK in 295ms (Views: 276.3ms | ActiveRecord: 0.0ms) +  (0.5ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (1.0ms) ROLLBACK +  (0.4ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (4.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.8ms) SAVEPOINT active_record_1 + Task Create (2.1ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:11:09.765886"], ["updated_at", "2019-04-13 20:11:09.765886"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 13:11:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 15ms (Views: 3.5ms | ActiveRecord: 0.5ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 13:11:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 13:11:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 13:11:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 13:11:09 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 20:11:09.836519"], ["updated_at", "2019-04-13 20:11:09.836519"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:26:27.510224', '2019-04-13 20:26:27.510224', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:26:27.510224', '2019-04-13 20:26:27.510224', DEFAULT) +  (41.1ms) COMMIT +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.5ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:26:27.593211"], ["updated_at", "2019-04-13 20:26:27.593211"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 13:26:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (240.2ms) +Completed 200 OK in 272ms (Views: 255.3ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 13:26:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 13:26:27 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 20:26:27.897542"], ["updated_at", "2019-04-13 20:26:27.897542"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 13:26:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 13:26:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 13:26:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (20.3ms) +Completed 200 OK in 26ms (Views: 21.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:26:27.982091"], ["updated_at", "2019-04-13 20:26:27.982091"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 13:26:27 -0700 +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 13:26:28 -0700 +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (41.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:32:13.115601', '2019-04-13 20:32:13.115601', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:32:13.115601', '2019-04-13 20:32:13.115601', DEFAULT) +  (1.8ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 13:32:13 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 20:32:13.212536"], ["updated_at", "2019-04-13 20:32:13.212536"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 18ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 13:32:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 275ms (Views: 269.2ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 13:32:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:32:13.535566"], ["updated_at", "2019-04-13 20:32:13.535566"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 13:32:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 8ms (Views: 2.7ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 13:32:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 13:32:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (24.3ms) +Completed 200 OK in 30ms (Views: 26.4ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 13:32:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} +Completed 406 Not Acceptable in 189ms (ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:32:13.788767"], ["updated_at", "2019-04-13 20:32:13.788767"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 13:32:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} +Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:55:03.006951', '2019-04-13 20:55:03.006951', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:55:03.006951', '2019-04-13 20:55:03.006951', DEFAULT) +  (39.9ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 13:55:03 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (34.6ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 20:55:03.106838"], ["updated_at", "2019-04-13 20:55:03.106838"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 62ms (ActiveRecord: 35.1ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 13:55:03 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (35.3ms) +Completed 200 OK in 282ms (Views: 278.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:55:03.463523"], ["updated_at", "2019-04-13 20:55:03.463523"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 13:55:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 13:55:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 13:55:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 13:55:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:55:03.506774"], ["updated_at", "2019-04-13 20:55:03.506774"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 13:55:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 13:55:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:55:53.936420', '2019-04-13 20:55:53.936420', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:55:53.936420', '2019-04-13 20:55:53.936420', DEFAULT) +  (40.5ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 13:55:54 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 20:55:54.041995"], ["updated_at", "2019-04-13 20:55:54.041995"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 13ms (ActiveRecord: 1.0ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 13:55:54 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (24.8ms) +Completed 200 OK in 310ms (Views: 304.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:55:54.392080"], ["updated_at", "2019-04-13 20:55:54.392080"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 13:55:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 9ms (Views: 3.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 13:55:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:55:54.417441"], ["updated_at", "2019-04-13 20:55:54.417441"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 13:55:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 13:55:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 13:55:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 13:55:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:59:32.499557', '2019-04-13 20:59:32.499557', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 20:59:32.499557', '2019-04-13 20:59:32.499557', DEFAULT) +  (39.9ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:59:32.571617"], ["updated_at", "2019-04-13 20:59:32.571617"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 13:59:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (332.1ms) +Completed 200 OK in 363ms (Views: 347.7ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 13:59:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 20:59:32.958124"], ["updated_at", "2019-04-13 20:59:32.958124"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 13:59:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (20.4ms) +Completed 200 OK in 26ms (Views: 21.9ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 13:59:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 13:59:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 13:59:33 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 20:59:33.019622"], ["updated_at", "2019-04-13 20:59:33.019622"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 13:59:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 13:59:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (1.3ms) ROLLBACK +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (26.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 21:00:18.251693', '2019-04-13 21:00:18.251693', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 21:00:18.251693', '2019-04-13 21:00:18.251693', DEFAULT) +  (1.4ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 14:00:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (21.0ms) +Completed 200 OK in 398ms (Views: 374.7ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (5.6ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (2.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 14:00:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (2.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 21:00:18.776129"], ["updated_at", "2019-04-13 21:00:18.776129"]] +  (1.8ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 10ms (ActiveRecord: 4.6ms) +  (3.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 14:00:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 21:00:18.844181"], ["updated_at", "2019-04-13 21:00:18.844181"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 14:00:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.6ms) +Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 0.4ms) +  (12.3ms) ROLLBACK +  (1.9ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 14:00:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 14:00:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 21:00:18.918494"], ["updated_at", "2019-04-13 21:00:18.918494"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 14:00:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 9ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 14:00:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 21:10:30.142764', '2019-04-13 21:10:30.142764', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 21:10:30.142764', '2019-04-13 21:10:30.142764', DEFAULT) +  (41.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 14:10:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (15.9ms) +Completed 200 OK in 264ms (Views: 255.3ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 14:10:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 14:10:30 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 21:10:30.509610"], ["updated_at", "2019-04-13 21:10:30.509610"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (1.0ms) ROLLBACK +  (0.9ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 14:10:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 14:10:30 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (22.3ms) +Completed 200 OK in 29ms (Views: 24.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 14:10:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (41.2ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 21:10:30.584785"], ["updated_at", "2019-04-13 21:10:30.584785"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 14:10:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.4ms) +Completed 200 OK in 12ms (Views: 4.9ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 14:10:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 21:10:30.655540"], ["updated_at", "2019-04-13 21:10:30.655540"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 14:10:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (1.1ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 21:18:33.686119', '2019-04-13 21:18:33.686119', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 21:18:33.686119', '2019-04-13 21:18:33.686119', DEFAULT) +  (50.8ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 21:18:33.779178"], ["updated_at", "2019-04-13 21:18:33.779178"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 14:18:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (22.7ms) +Completed 200 OK in 292ms (Views: 275.8ms | ActiveRecord: 0.6ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 14:18:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 14:18:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 14:18:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 14:18:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 10ms (Views: 3.5ms | ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 14:18:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 21:18:34.135593"], ["updated_at", "2019-04-13 21:18:34.135593"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 14:18:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 14:18:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 14:18:34 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 21:18:34.164831"], ["updated_at", "2019-04-13 21:18:34.164831"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (3.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.3ms) BEGIN + Fixtures Load (1.2ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 22:59:38.808616', '2019-04-13 22:59:38.808616', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 22:59:38.808616', '2019-04-13 22:59:38.808616', DEFAULT) +  (17.7ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 15:59:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 10ms (ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 22:59:38.936481"], ["updated_at", "2019-04-13 22:59:38.936481"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 15:59:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (293.2ms) +Completed 200 OK in 319ms (Views: 310.5ms | ActiveRecord: 0.3ms) +  (1.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 15:59:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (32.4ms) +Completed 200 OK in 40ms (Views: 34.3ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 22:59:39.405696"], ["updated_at", "2019-04-13 22:59:39.405696"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 22:59:39.422047"], ["updated_at", "2019-04-13 22:59:39.422047"]] +  (7.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 15:59:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (1.5ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 15:59:39 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (2.0ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 22:59:39.453607"], ["updated_at", "2019-04-13 22:59:39.453607"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.6ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 15:59:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 15:59:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 22:59:39.490545"], ["updated_at", "2019-04-13 22:59:39.490545"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-13 15:59:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 12ms (Views: 3.6ms | ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 15:59:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:00:16.711130', '2019-04-13 23:00:16.711130', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:00:16.711130', '2019-04-13 23:00:16.711130', DEFAULT) +  (27.0ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 16:00:16 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (27.4ms) +Completed 200 OK in 311ms (Views: 284.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:00:17.088640"], ["updated_at", "2019-04-13 23:00:17.088640"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 16:00:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 13ms (Views: 3.2ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:00:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 16:00:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:00:17.121840"], ["updated_at", "2019-04-13 23:00:17.121840"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 16:00:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.1ms) +Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 16:00:17 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 23:00:17.150426"], ["updated_at", "2019-04-13 23:00:17.150426"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 15ms (ActiveRecord: 1.1ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:00:17.169970"], ["updated_at", "2019-04-13 23:00:17.169970"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Clean the bathroom"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:00:17.177888"], ["updated_at", "2019-04-13 23:00:17.177888"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:00:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 16:00:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 16:00:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (3.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:02:08.039475', '2019-04-13 23:02:08.039475', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:02:08.039475', '2019-04-13 23:02:08.039475', DEFAULT) +  (39.6ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:02:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 10ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:02:08.142806"], ["updated_at", "2019-04-13 23:02:08.142806"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 16:02:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (283.1ms) +Completed 200 OK in 310ms (Views: 302.0ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 16:02:08 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 23:02:08.484863"], ["updated_at", "2019-04-13 23:02:08.484863"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:02:08.500240"], ["updated_at", "2019-04-13 23:02:08.500240"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:02:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:02:08.510429"], ["updated_at", "2019-04-13 23:02:08.510429"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Clean the bathroom"], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 +  (2.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 16:02:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 9ms (Views: 3.8ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 16:02:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 16:02:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (23.2ms) +Completed 200 OK in 30ms (Views: 25.2ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 16:02:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:02:08.587663"], ["updated_at", "2019-04-13 23:02:08.587663"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-13 16:02:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.9ms) +Completed 200 OK in 11ms (Views: 5.2ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:02:41.334181', '2019-04-13 23:02:41.334181', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:02:41.334181', '2019-04-13 23:02:41.334181', DEFAULT) +  (41.6ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (25.1ms) +Completed 200 OK in 288ms (Views: 280.6ms | ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (14.7ms) +Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 23:02:41.733415"], ["updated_at", "2019-04-13 23:02:41.733415"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 7ms (ActiveRecord: 1.3ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#create as HTML +Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.9ms) +Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:02:41.776264"], ["updated_at", "2019-04-13 23:02:41.776264"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:02:41.791589"], ["updated_at", "2019-04-13 23:02:41.791589"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:02:41.800274"], ["updated_at", "2019-04-13 23:02:41.800274"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:02:41.812861"], ["updated_at", "2019-04-13 23:02:41.812861"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-13 16:02:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.6ms) BEGIN +  (0.9ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (7.4ms) BEGIN + Fixtures Load (2.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:07:21.689066', '2019-04-13 23:07:21.689066', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:07:21.689066', '2019-04-13 23:07:21.689066', DEFAULT) +  (1.3ms) COMMIT +  (0.4ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 16:07:21 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (22.5ms) +Completed 200 OK in 445ms (Views: 424.5ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 16:07:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 23:07:22.203445"], ["updated_at", "2019-04-13 23:07:22.203445"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:07:22.219019"], ["updated_at", "2019-04-13 23:07:22.219019"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 16:07:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 12ms (Views: 3.9ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 16:07:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:07:22.247259"], ["updated_at", "2019-04-13 23:07:22.247259"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 16:07:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:07:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 16:07:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 10ms (Views: 4.3ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 16:07:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:07:22.301215"], ["updated_at", "2019-04-13 23:07:22.301215"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:07:22.307709"], ["updated_at", "2019-04-13 23:07:22.307709"]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:07:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (6.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 9ms (ActiveRecord: 6.3ms) +  (0.3ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:07:58.196395', '2019-04-13 23:07:58.196395', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:07:58.196395', '2019-04-13 23:07:58.196395', DEFAULT) +  (1.5ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:07:58.245243"], ["updated_at", "2019-04-13 23:07:58.245243"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 16:07:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (301.1ms) +Completed 200 OK in 319ms (Views: 308.9ms | ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:07:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 16:07:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 23:07:58.598175"], ["updated_at", "2019-04-13 23:07:58.598175"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 16:07:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 9ms (Views: 3.4ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 16:07:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:07:58.629167"], ["updated_at", "2019-04-13 23:07:58.629167"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 16:07:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (25.0ms) +Completed 200 OK in 34ms (Views: 27.5ms | ActiveRecord: 0.3ms) +  (2.6ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 16:07:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 16:07:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:07:58.691492"], ["updated_at", "2019-04-13 23:07:58.691492"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:07:58.695009"], ["updated_at", "2019-04-13 23:07:58.695009"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:07:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:16:16.702781', '2019-04-13 23:16:16.702781', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:16:16.702781', '2019-04-13 23:16:16.702781', DEFAULT) +  (41.1ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 16:16:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (17.5ms) +Completed 200 OK in 373ms (Views: 364.1ms | ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 16:16:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 16:16:17 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (19.7ms) +Completed 200 OK in 26ms (Views: 21.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:16:17.192779"], ["updated_at", "2019-04-13 23:16:17.192779"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 16:16:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 10ms (Views: 2.7ms | ActiveRecord: 0.7ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:16:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:16:17.217039"], ["updated_at", "2019-04-13 23:16:17.217039"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:16:17.220530"], ["updated_at", "2019-04-13 23:16:17.220530"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:16:17.224280"], ["updated_at", "2019-04-13 23:16:17.224280"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:16:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 16:16:17 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 23:16:17.246808"], ["updated_at", "2019-04-13 23:16:17.246808"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:16:17.257643"], ["updated_at", "2019-04-13 23:16:17.257643"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-13 16:16:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 16:16:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (40.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:16:58.262208', '2019-04-13 23:16:58.262208', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-13 23:16:58.262208', '2019-04-13 23:16:58.262208', DEFAULT) +  (1.7ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 16:16:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (26.7ms) +Completed 200 OK in 310ms (Views: 279.2ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-13 16:16:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 7ms (ActiveRecord: 1.4ms) +  (0.9ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:16:58.669114"], ["updated_at", "2019-04-13 23:16:58.669114"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 16:16:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.6ms) +Completed 200 OK in 13ms (Views: 5.2ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 16:16:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-13 23:16:58.705034"], ["updated_at", "2019-04-13 23:16:58.705034"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:16:58.713366"], ["updated_at", "2019-04-13 23:16:58.713366"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Clean the bathroom"], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:16:58.719492"], ["updated_at", "2019-04-13 23:16:58.719492"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:16:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-13 23:16:58.726975"], ["updated_at", "2019-04-13 23:16:58.726975"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-18"], ["created_at", "2019-04-13 23:16:58.735410"], ["updated_at", "2019-04-13 23:16:58.735410"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-13 16:16:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 16:16:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 16:16:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 16:16:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (1.6ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (41.0ms) BEGIN +  (5.0ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (6.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:15:27.376196', '2019-04-14 15:15:27.376196', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:15:27.376196', '2019-04-14 15:15:27.376196', DEFAULT) +  (2.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:15:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (39.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (114.0ms) +Completed 500 Internal Server Error in 145ms (ActiveRecord: 39.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:15:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (23.8ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:15:27.727419"], ["updated_at", "2019-04-14 15:15:27.727419"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 08:15:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (236.8ms) +Completed 200 OK in 249ms (Views: 240.2ms | ActiveRecord: 0.6ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:15:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (73.1ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:15:28 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:15:28.080566"], ["updated_at", "2019-04-14 15:15:28.080566"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:15:28.092262"], ["updated_at", "2019-04-14 15:15:28.092262"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:15:28.099475"], ["updated_at", "2019-04-14 15:15:28.099475"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-14 08:15:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (26.0ms) + Rendered tasks/edit.html.erb within layouts/application (30.2ms) +Completed 200 OK in 37ms (Views: 32.2ms | ActiveRecord: 0.4ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:15:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:15:28 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.7ms) + Rendered tasks/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 0.0ms) +  (1.5ms) ROLLBACK +  (1.6ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:15:28.175578"], ["updated_at", "2019-04-14 15:15:28.175578"]] +  (1.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:15:28.185487"], ["updated_at", "2019-04-14 15:15:28.185487"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:15:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:15:28.197254"], ["updated_at", "2019-04-14 15:15:28.197254"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190969" for 127.0.0.1 at 2019-04-14 08:15:28 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (42.3ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:15:28.206680"], ["id", 980190969]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 53ms (ActiveRecord: 43.7ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:16:22.593126', '2019-04-14 15:16:22.593126', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:16:22.593126', '2019-04-14 15:16:22.593126', DEFAULT) +  (1.6ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:16:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 10ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:16:22.644089"], ["updated_at", "2019-04-14 15:16:22.644089"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 08:16:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (8.7ms) + Rendered tasks/edit.html.erb within layouts/application (11.5ms) +Completed 200 OK in 198ms (Views: 193.8ms | ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:16:22 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.5ms) + Rendered tasks/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:16:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (28.5ms) +Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:16:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (23.3ms) +Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:16:22.939905"], ["updated_at", "2019-04-14 15:16:22.939905"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:16:22.945494"], ["updated_at", "2019-04-14 15:16:22.945494"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190965" for 127.0.0.1 at 2019-04-14 08:16:22 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:16:22.958276"], ["id", 980190965]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 6ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:16:22.967791"], ["updated_at", "2019-04-14 15:16:22.967791"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:16:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:16:22.974909"], ["updated_at", "2019-04-14 15:16:22.974909"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:16:22.981141"], ["updated_at", "2019-04-14 15:16:22.981141"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-14 08:16:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.8ms) +  (0.8ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:16:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:16:23 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:16:23.009662"], ["updated_at", "2019-04-14 15:16:23.009662"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (34.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:22:47.813943', '2019-04-14 15:22:47.813943', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:22:47.813943', '2019-04-14 15:22:47.813943', DEFAULT) +  (2.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (1.3ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (2.1ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:22:47.902865"], ["updated_at", "2019-04-14 15:22:47.902865"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:22:47 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:22:47.928096"], ["updated_at", "2019-04-14 15:22:47.928096"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 11ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:22:47 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (23.0ms) + Rendered tasks/new.html.erb within layouts/application (30.2ms) +Completed 200 OK in 283ms (Views: 278.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:22:48 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:22:48.251360"], ["updated_at", "2019-04-14 15:22:48.251360"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 08:22:48 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.6ms) + Rendered tasks/edit.html.erb within layouts/application (3.4ms) +Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:22:48.267509"], ["updated_at", "2019-04-14 15:22:48.267509"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:22:48.271744"], ["updated_at", "2019-04-14 15:22:48.271744"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:22:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:22:48.280844"], ["updated_at", "2019-04-14 15:22:48.280844"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190968" for 127.0.0.1 at 2019-04-14 08:22:48 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:22:48.290881"], ["id", 980190968]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 8ms (ActiveRecord: 1.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:22:48.302603"], ["updated_at", "2019-04-14 15:22:48.302603"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-14 08:22:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:22:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:22:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:22:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:23:29.122616', '2019-04-14 15:23:29.122616', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:23:29.122616', '2019-04-14 15:23:29.122616', DEFAULT) +  (1.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.3ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:23:29.153026"], ["updated_at", "2019-04-14 15:23:29.153026"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (11.0ms) + Rendered tasks/edit.html.erb within layouts/application (13.7ms) +Completed 200 OK in 196ms (Views: 186.5ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.5ms) + Rendered tasks/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:23:29.399057"], ["updated_at", "2019-04-14 15:23:29.399057"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (2.1ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:23:29.408251"], ["updated_at", "2019-04-14 15:23:29.408251"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:23:29.428109"], ["updated_at", "2019-04-14 15:23:29.428109"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:23:29.435452"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:23:29.445625"], ["updated_at", "2019-04-14 15:23:29.445625"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:23:29.450885"], ["updated_at", "2019-04-14 15:23:29.450885"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:23:29.459240"], ["updated_at", "2019-04-14 15:23:29.459240"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:23:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:26:02.022228', '2019-04-14 15:26:02.022228', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:26:02.022228', '2019-04-14 15:26:02.022228', DEFAULT) +  (33.9ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:26:02.102254"], ["updated_at", "2019-04-14 15:26:02.102254"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (21.7ms) + Rendered tasks/edit.html.erb within layouts/application (27.9ms) +Completed 200 OK in 290ms (Views: 273.8ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:26:02.417178"], ["updated_at", "2019-04-14 15:26:02.417178"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:26:02.445000"], ["updated_at", "2019-04-14 15:26:02.445000"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.0ms) + Rendered tasks/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:26:02.470911"], ["updated_at", "2019-04-14 15:26:02.470911"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:26:02.478353"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:26:02.487603"], ["updated_at", "2019-04-14 15:26:02.487603"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:26:02.491795"], ["updated_at", "2019-04-14 15:26:02.491795"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:26:02.499203"], ["updated_at", "2019-04-14 15:26:02.499203"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:26:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:27:08.175838', '2019-04-14 15:27:08.175838', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:27:08.175838', '2019-04-14 15:27:08.175838', DEFAULT) +  (22.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:27:08.247602"], ["updated_at", "2019-04-14 15:27:08.247602"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 20ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:27:08.269495"], ["updated_at", "2019-04-14 15:27:08.269495"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (236.5ms) +Completed 200 OK in 257ms (Views: 252.3ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:27:08.549794"], ["updated_at", "2019-04-14 15:27:08.549794"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190965" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:27:08.561783"], ["id", 980190965]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 10ms (ActiveRecord: 1.7ms) +  (1.8ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:27:08.765497"], ["updated_at", "2019-04-14 15:27:08.765497"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:27:08.769069"], ["updated_at", "2019-04-14 15:27:08.769069"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:27:08.776742"], ["updated_at", "2019-04-14 15:27:08.776742"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (22.7ms) + Rendered tasks/new.html.erb within layouts/application (26.2ms) +Completed 200 OK in 33ms (Views: 29.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:27:08.845418"], ["updated_at", "2019-04-14 15:27:08.845418"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-14 08:27:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.5ms) + Rendered tasks/edit.html.erb within layouts/application (1.9ms) +Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:27:35.369320', '2019-04-14 15:27:35.369320', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:27:35.369320', '2019-04-14 15:27:35.369320', DEFAULT) +  (1.4ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (2.8ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:27:35.414532"], ["updated_at", "2019-04-14 15:27:35.414532"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:27:35.436997"], ["updated_at", "2019-04-14 15:27:35.436997"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 8ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:27:35.457289"], ["updated_at", "2019-04-14 15:27:35.457289"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (22.7ms) + Rendered tasks/edit.html.erb within layouts/application (29.6ms) +Completed 200 OK in 252ms (Views: 247.0ms | ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:27:35.723955"], ["updated_at", "2019-04-14 15:27:35.723955"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:27:35.727564"], ["updated_at", "2019-04-14 15:27:35.727564"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:27:35.736390"], ["updated_at", "2019-04-14 15:27:35.736390"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190968" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:27:35.745030"], ["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:27:35.762778"], ["updated_at", "2019-04-14 15:27:35.762778"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:27:35 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.7ms) + Rendered tasks/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:29:05.127820', '2019-04-14 15:29:05.127820', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:29:05.127820', '2019-04-14 15:29:05.127820', DEFAULT) +  (27.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (17.2ms) +Completed 200 OK in 296ms (Views: 287.0ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.5ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:29:05.500129"], ["updated_at", "2019-04-14 15:29:05.500129"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 11ms (Views: 2.6ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:29:05.524531"], ["updated_at", "2019-04-14 15:29:05.524531"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190964" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:29:05.541444"], ["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 8ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:29:05.550928"], ["updated_at", "2019-04-14 15:29:05.550928"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:29:05.559858"], ["updated_at", "2019-04-14 15:29:05.559858"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:29:05.568587"], ["updated_at", "2019-04-14 15:29:05.568587"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (17.1ms) + Rendered tasks/new.html.erb within layouts/application (20.6ms) +Completed 200 OK in 26ms (Views: 22.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:29:05.614090"], ["updated_at", "2019-04-14 15:29:05.614090"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.6ms) + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:29:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (1.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:29:05.640534"], ["updated_at", "2019-04-14 15:29:05.640534"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:30:44.604040', '2019-04-14 15:30:44.604040', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:30:44.604040', '2019-04-14 15:30:44.604040', DEFAULT) +  (9.9ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:30:44 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (21.2ms) + Rendered tasks/new.html.erb within layouts/application (27.9ms) +Completed 200 OK in 323ms (Views: 290.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:30:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:30:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:30:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 5ms (ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:30:45.016539"], ["updated_at", "2019-04-14 15:30:45.016539"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 08:30:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.5ms) + Rendered tasks/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 10ms (Views: 3.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:30:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:30:45.039442"], ["updated_at", "2019-04-14 15:30:45.039442"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 08:30:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.4ms) +  (2.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:30:45 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:30:45.068358"], ["updated_at", "2019-04-14 15:30:45.068358"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.8ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:30:45.079489"], ["updated_at", "2019-04-14 15:30:45.079489"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:30:45.084019"], ["updated_at", "2019-04-14 15:30:45.084019"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190967" for 127.0.0.1 at 2019-04-14 08:30:45 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:30:45.093694"], ["id", 980190967]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:30:45.105899"], ["updated_at", "2019-04-14 15:30:45.105899"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:30:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (4.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 6ms (ActiveRecord: 4.5ms) +  (0.9ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:30:45.123105"], ["updated_at", "2019-04-14 15:30:45.123105"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:30:51.464034', '2019-04-14 15:30:51.464034', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:30:51.464034', '2019-04-14 15:30:51.464034', DEFAULT) +  (40.6ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check the bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:30:51.533535"], ["updated_at", "2019-04-14 15:30:51.533535"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:30:51.540271"], ["updated_at", "2019-04-14 15:30:51.540271"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (6.3ms) + Rendered tasks/edit.html.erb within layouts/application (9.2ms) +Completed 200 OK in 214ms (Views: 204.5ms | ActiveRecord: 0.6ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 13ms (Views: 7.4ms | ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:30:51.810891"], ["updated_at", "2019-04-14 15:30:51.810891"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:30:51.829837"], ["updated_at", "2019-04-14 15:30:51.829837"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190966"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:30:51.843327"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 10ms (ActiveRecord: 1.5ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:30:51.854521"], ["updated_at", "2019-04-14 15:30:51.854521"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:30:51.859436"], ["updated_at", "2019-04-14 15:30:51.859436"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:30:51.871316"], ["updated_at", "2019-04-14 15:30:51.871316"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (1.0ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:30:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.3ms) + Rendered tasks/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.0ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:38:39.651672', '2019-04-14 15:38:39.651672', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:38:39.651672', '2019-04-14 15:38:39.651672', DEFAULT) +  (40.8ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:38:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 11ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (2.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:38:39.747623"], ["updated_at", "2019-04-14 15:38:39.747623"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 08:38:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (24.5ms) + Rendered tasks/edit.html.erb within layouts/application (34.1ms) +Completed 200 OK in 299ms (Views: 291.4ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:38:40.063554"], ["updated_at", "2019-04-14 15:38:40.063554"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:38:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (6.7ms) +Completed 200 OK in 15ms (Views: 7.2ms | ActiveRecord: 1.5ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:38:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:38:40.109179"], ["updated_at", "2019-04-14 15:38:40.109179"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.9ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190965" for 127.0.0.1 at 2019-04-14 08:38:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:38:40.127734"], ["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:38:40.135607"], ["updated_at", "2019-04-14 15:38:40.135607"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:38:40.140702"], ["updated_at", "2019-04-14 15:38:40.140702"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:38:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:38:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (4.4ms) + Rendered tasks/new.html.erb within layouts/application (5.4ms) +Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:38:40.172271"], ["updated_at", "2019-04-14 15:38:40.172271"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-14 08:38:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 14ms (Views: 3.1ms | ActiveRecord: 0.6ms) +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:38:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:38:40 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:38:40.205599"], ["updated_at", "2019-04-14 15:38:40.205599"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (41.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:47:24.304087', '2019-04-14 15:47:24.304087', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:47:24.304087', '2019-04-14 15:47:24.304087', DEFAULT) +  (1.6ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:47:24.379335"], ["updated_at", "2019-04-14 15:47:24.379335"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (227.4ms) +Completed 200 OK in 261ms (Views: 245.3ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:47:24.673775"], ["updated_at", "2019-04-14 15:47:24.673775"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (20.5ms) + Rendered tasks/edit.html.erb within layouts/application (25.2ms) +Completed 200 OK in 33ms (Views: 28.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.8ms) + Rendered tasks/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:47:24.730060"], ["updated_at", "2019-04-14 15:47:24.730060"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:47:24.733473"], ["updated_at", "2019-04-14 15:47:24.733473"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:47:24.740055"], ["updated_at", "2019-04-14 15:47:24.740055"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190967" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:47:24.755637"], ["id", 980190967]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 8ms (ActiveRecord: 1.5ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:47:24 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:47:24.792502"], ["updated_at", "2019-04-14 15:47:24.792502"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (3.9ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.8ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:47:24.811621"], ["updated_at", "2019-04-14 15:47:24.811621"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (2.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:47:58.204711', '2019-04-14 15:47:58.204711', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:47:58.204711', '2019-04-14 15:47:58.204711', DEFAULT) +  (37.9ms) COMMIT +  (0.4ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:47:58.276185"], ["updated_at", "2019-04-14 15:47:58.276185"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (19.7ms) + Rendered tasks/edit.html.erb within layouts/application (25.9ms) +Completed 200 OK in 293ms (Views: 278.6ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:47:58.599962"], ["updated_at", "2019-04-14 15:47:58.599962"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:47:58.608681"], ["updated_at", "2019-04-14 15:47:58.608681"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.7ms) + Rendered tasks/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:47:58.641158"], ["updated_at", "2019-04-14 15:47:58.641158"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:47:58.669280"], ["updated_at", "2019-04-14 15:47:58.669280"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:47:58.673007"], ["updated_at", "2019-04-14 15:47:58.673007"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:47:58.679598"], ["updated_at", "2019-04-14 15:47:58.679598"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190969" for 127.0.0.1 at 2019-04-14 08:47:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:47:58.687924"], ["id", 980190969]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (12.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:51:38.766371', '2019-04-14 15:51:38.766371', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:51:38.766371', '2019-04-14 15:51:38.766371', DEFAULT) +  (1.7ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:51:38.814174"], ["updated_at", "2019-04-14 15:51:38.814174"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 08:51:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (256.6ms) +Completed 200 OK in 288ms (Views: 271.3ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:51:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:51:39 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:51:39.132773"], ["updated_at", "2019-04-14 15:51:39.132773"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:51:39.142669"], ["updated_at", "2019-04-14 15:51:39.142669"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:51:39.146402"], ["updated_at", "2019-04-14 15:51:39.146402"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:51:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:51:39.155015"], ["updated_at", "2019-04-14 15:51:39.155015"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190967" for 127.0.0.1 at 2019-04-14 08:51:39 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:51:39.163188"], ["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:51:39.171513"], ["updated_at", "2019-04-14 15:51:39.171513"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:51:39.173747"], ["updated_at", "2019-04-14 15:51:39.173747"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:51:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:51:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.9ms) +  (1.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:51:39.252813"], ["updated_at", "2019-04-14 15:51:39.252813"]] +  (3.8ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190970/edit" for 127.0.0.1 at 2019-04-14 08:51:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190970"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190970], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (22.1ms) + Rendered tasks/edit.html.erb within layouts/application (27.6ms) +Completed 200 OK in 36ms (Views: 29.1ms | ActiveRecord: 0.6ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:51:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:51:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.4ms) + Rendered tasks/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:52:25.148585', '2019-04-14 15:52:25.148585', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:52:25.148585', '2019-04-14 15:52:25.148585', DEFAULT) +  (36.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 14ms (ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:52:25.274101"], ["updated_at", "2019-04-14 15:52:25.274101"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (25.1ms) + Rendered tasks/edit.html.erb within layouts/application (32.1ms) +Completed 200 OK in 340ms (Views: 332.9ms | ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:52:25.642297"], ["updated_at", "2019-04-14 15:52:25.642297"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.6ms) + Rendered tasks/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:52:25.688292"], ["updated_at", "2019-04-14 15:52:25.688292"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:52:25.697291"], ["updated_at", "2019-04-14 15:52:25.697291"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:52:25.705516"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (2.0ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:52:25.715114"], ["updated_at", "2019-04-14 15:52:25.715114"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:52:25.721007"], ["updated_at", "2019-04-14 15:52:25.721007"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:52:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:52:25.728373"], ["updated_at", "2019-04-14 15:52:25.728373"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:52:25.730400"], ["updated_at", "2019-04-14 15:52:25.730400"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190970]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:52:40.767560', '2019-04-14 15:52:40.767560', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:52:40.767560', '2019-04-14 15:52:40.767560', DEFAULT) +  (40.8ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:52:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:52:40.916597"], ["updated_at", "2019-04-14 15:52:40.916597"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 08:52:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (25.1ms) + Rendered tasks/edit.html.erb within layouts/application (30.8ms) +Completed 200 OK in 329ms (Views: 322.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:52:41.253149"], ["updated_at", "2019-04-14 15:52:41.253149"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:52:41.255734"], ["updated_at", "2019-04-14 15:52:41.255734"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:52:41.270427"], ["updated_at", "2019-04-14 15:52:41.270427"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 08:52:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:52:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:52:41 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:52:41.299849"], ["updated_at", "2019-04-14 15:52:41.299849"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:52:41 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.8ms) + Rendered tasks/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:52:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:52:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:52:41.342702"], ["updated_at", "2019-04-14 15:52:41.342702"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:52:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:52:41.351928"], ["updated_at", "2019-04-14 15:52:41.351928"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190969" for 127.0.0.1 at 2019-04-14 08:52:41 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190969"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:52:41.360196"], ["id", 980190969]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:52:41.369267"], ["updated_at", "2019-04-14 15:52:41.369267"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:52:59.213687', '2019-04-14 15:52:59.213687', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:52:59.213687', '2019-04-14 15:52:59.213687', DEFAULT) +  (40.1ms) COMMIT +  (0.2ms) BEGIN +  (1.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (3.2ms) COMMIT +  (0.3ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:52:59.417269"], ["updated_at", "2019-04-14 15:52:59.417269"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:52:59.420443"], ["updated_at", "2019-04-14 15:52:59.420443"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:52:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 451ms (Views: 438.9ms | ActiveRecord: 0.5ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:52:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:52:59.930706"], ["updated_at", "2019-04-14 15:52:59.930706"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 08:52:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 10ms (Views: 3.6ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:52:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:52:59.955744"], ["updated_at", "2019-04-14 15:52:59.955744"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:52:59.959626"], ["updated_at", "2019-04-14 15:52:59.959626"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:52:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:52:59.968894"], ["updated_at", "2019-04-14 15:52:59.968894"]] +  (1.7ms) RELEASE SAVEPOINT active_record_1 + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (1.7ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190968" for 127.0.0.1 at 2019-04-14 08:52:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190968"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:52:59.994921"], ["id", 980190968]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 12ms (ActiveRecord: 2.1ms) +  (0.7ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (1.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:53:00.012002"], ["updated_at", "2019-04-14 15:53:00.012002"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-14 08:53:00 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (29.0ms) + Rendered tasks/edit.html.erb within layouts/application (33.3ms) +Completed 200 OK in 40ms (Views: 35.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (1.3ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:53:00 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:53:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.8ms) + Rendered tasks/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:53:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.2ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:53:00.093915"], ["updated_at", "2019-04-14 15:53:00.093915"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.9ms) +  (0.7ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:53:11.020925', '2019-04-14 15:53:11.020925', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:53:11.020925', '2019-04-14 15:53:11.020925', DEFAULT) +  (35.7ms) COMMIT +  (0.5ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:53:11.096832"], ["updated_at", "2019-04-14 15:53:11.096832"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (360.4ms) +Completed 200 OK in 391ms (Views: 374.7ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:53:11.519530"], ["updated_at", "2019-04-14 15:53:11.519530"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (21.4ms) + Rendered tasks/new.html.erb within layouts/application (26.3ms) +Completed 200 OK in 32ms (Views: 28.0ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:53:11.566580"], ["updated_at", "2019-04-14 15:53:11.566580"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:53:11.572749"], ["updated_at", "2019-04-14 15:53:11.572749"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190966"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:53:11.581393"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:53:11.590285"], ["updated_at", "2019-04-14 15:53:11.590285"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:53:11.607280"], ["updated_at", "2019-04-14 15:53:11.607280"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:53:11.611138"], ["updated_at", "2019-04-14 15:53:11.611138"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (1.0ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (14.4ms) SAVEPOINT active_record_1 + Task Create (1.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:53:11.666388"], ["updated_at", "2019-04-14 15:53:11.666388"]] +  (1.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190970/edit" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190970"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190970], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.5ms) + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:53:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:57:18.705989', '2019-04-14 15:57:18.705989', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:57:18.705989', '2019-04-14 15:57:18.705989', DEFAULT) +  (10.4ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.9ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:57:18.751551"], ["updated_at", "2019-04-14 15:57:18.751551"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:57:18.755247"], ["updated_at", "2019-04-14 15:57:18.755247"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:57:18.779592"], ["updated_at", "2019-04-14 15:57:18.779592"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 08:57:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (344.6ms) +Completed 200 OK in 372ms (Views: 360.5ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:57:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:57:19 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (21.1ms) + Rendered tasks/new.html.erb within layouts/application (25.2ms) +Completed 200 OK in 31ms (Views: 27.6ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:57:19 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:57:19.226142"], ["updated_at", "2019-04-14 15:57:19.226142"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:57:19.236311"], ["updated_at", "2019-04-14 15:57:19.236311"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 08:57:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.9ms) + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:57:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:57:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:57:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:57:19.277540"], ["updated_at", "2019-04-14 15:57:19.277540"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190968" for 127.0.0.1 at 2019-04-14 08:57:19 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190968"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:57:19.285278"], ["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:57:19.294909"], ["updated_at", "2019-04-14 15:57:19.294909"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:57:19.299656"], ["updated_at", "2019-04-14 15:57:19.299656"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:57:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:59:12.669523', '2019-04-14 15:59:12.669523', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:59:12.669523', '2019-04-14 15:59:12.669523', DEFAULT) +  (13.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:59:12.717519"], ["updated_at", "2019-04-14 15:59:12.717519"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:59:12.720812"], ["updated_at", "2019-04-14 15:59:12.720812"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:59:12 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 6ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:59:12.761448"], ["updated_at", "2019-04-14 15:59:12.761448"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 08:59:12 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (24.8ms) + Rendered tasks/edit.html.erb within layouts/application (31.9ms) +Completed 200 OK in 281ms (Views: 276.6ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:59:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 10ms (Views: 4.0ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:59:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:59:13.073755"], ["updated_at", "2019-04-14 15:59:13.073755"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 08:59:13 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:59:13.089635"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:59:13.097428"], ["updated_at", "2019-04-14 15:59:13.097428"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:59:13.100918"], ["updated_at", "2019-04-14 15:59:13.100918"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:59:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:59:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.4ms) + Rendered tasks/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:59:13 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:59:13.128154"], ["updated_at", "2019-04-14 15:59:13.128154"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:59:13.139532"], ["updated_at", "2019-04-14 15:59:13.139532"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190970" for 127.0.0.1 at 2019-04-14 08:59:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190970"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190970], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:59:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (41.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:59:51.190807', '2019-04-14 15:59:51.190807', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 15:59:51.190807', '2019-04-14 15:59:51.190807', DEFAULT) +  (1.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:59:51.267517"], ["updated_at", "2019-04-14 15:59:51.267517"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (169.1ms) +Completed 200 OK in 186ms (Views: 176.9ms | ActiveRecord: 0.6ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 15:59:51.485658"], ["updated_at", "2019-04-14 15:59:51.485658"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (6.3ms) + Rendered tasks/new.html.erb within layouts/application (9.9ms) +Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 15:59:51.548437"], ["updated_at", "2019-04-14 15:59:51.548437"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.0ms) + Rendered tasks/edit.html.erb within layouts/application (3.5ms) +Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:59:51.564522"], ["updated_at", "2019-04-14 15:59:51.564522"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 15:59:51.566766"], ["updated_at", "2019-04-14 15:59:51.566766"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:59:51.610005"], ["updated_at", "2019-04-14 15:59:51.610005"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190968" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 15:59:51.618162"], ["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:59:51.626842"], ["updated_at", "2019-04-14 15:59:51.626842"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 15:59:51.631001"], ["updated_at", "2019-04-14 15:59:51.631001"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 08:59:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:01:07.459804', '2019-04-14 16:01:07.459804', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:01:07.459804', '2019-04-14 16:01:07.459804', DEFAULT) +  (40.9ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 16:01:07.552278"], ["updated_at", "2019-04-14 16:01:07.552278"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 20ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (25.1ms) + Rendered tasks/new.html.erb within layouts/application (31.1ms) +Completed 200 OK in 272ms (Views: 267.6ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (2.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:01:07.879829"], ["updated_at", "2019-04-14 16:01:07.879829"]] +  (3.3ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:01:07.890349"], ["updated_at", "2019-04-14 16:01:07.890349"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:01:07.906438"], ["updated_at", "2019-04-14 16:01:07.906438"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190966"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 16:01:07.918707"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:01:07.926554"], ["updated_at", "2019-04-14 16:01:07.926554"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:01:07.933219"], ["updated_at", "2019-04-14 16:01:07.933219"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:01:07.941895"], ["updated_at", "2019-04-14 16:01:07.941895"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 8ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:01:07.962260"], ["updated_at", "2019-04-14 16:01:07.962260"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190970/edit" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190970"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190970], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.8ms) + Rendered tasks/edit.html.erb within layouts/application (2.5ms) +Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 09:01:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.7ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:23:27.957193', '2019-04-14 16:23:27.957193', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:23:27.957193', '2019-04-14 16:23:27.957193', DEFAULT) +  (41.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 256ms (Views: 244.9ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 16:23:28.327849"], ["updated_at", "2019-04-14 16:23:28.327849"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.9ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (21.3ms) + Rendered tasks/new.html.erb within layouts/application (26.1ms) +Completed 200 OK in 32ms (Views: 27.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:23:28.380849"], ["updated_at", "2019-04-14 16:23:28.380849"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:23:28.384128"], ["updated_at", "2019-04-14 16:23:28.384128"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.9ms) SELECT COUNT(*) FROM "tasks" +  (0.5ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root path if trying to delete a non-existant task +---------------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:23:28.393972"], ["updated_at", "2019-04-14 16:23:28.393972"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Create (63.9ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:23:28.396153"], ["updated_at", "2019-04-14 16:23:28.396153"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:23:28.476159"], ["updated_at", "2019-04-14 16:23:28.476159"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.7ms) + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 9ms (Views: 3.8ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:23:28.499647"], ["updated_at", "2019-04-14 16:23:28.499647"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190969" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190969"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 16:23:28.510398"], ["id", 980190969]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 6ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:23:28.517985"], ["updated_at", "2019-04-14 16:23:28.517985"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:23:28.523415"], ["updated_at", "2019-04-14 16:23:28.523415"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:23:28.532734"], ["updated_at", "2019-04-14 16:23:28.532734"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190972" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190972"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190972], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:23:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:24:17.774062', '2019-04-14 16:24:17.774062', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:24:17.774062', '2019-04-14 16:24:17.774062', DEFAULT) +  (39.7ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root path if trying to delete a non-existant task +---------------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:24:17.844121"], ["updated_at", "2019-04-14 16:24:17.844121"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:24:17.846790"], ["updated_at", "2019-04-14 16:24:17.846790"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:24:17.888349"], ["updated_at", "2019-04-14 16:24:17.888349"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:24:17.891990"], ["updated_at", "2019-04-14 16:24:17.891990"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 09:24:17 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (23.5ms) + Rendered tasks/new.html.erb within layouts/application (29.2ms) +Completed 200 OK in 296ms (Views: 285.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 09:24:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 16:24:18.232188"], ["updated_at", "2019-04-14 16:24:18.232188"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 09:24:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 09:24:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:24:18.265795"], ["updated_at", "2019-04-14 16:24:18.265795"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-14 09:24:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 9ms (Views: 4.0ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:24:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:24:18.287722"], ["updated_at", "2019-04-14 16:24:18.287722"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-14 09:24:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.1ms) + Rendered tasks/edit.html.erb within layouts/application (2.8ms) +Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 09:24:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:24:18.312078"], ["updated_at", "2019-04-14 16:24:18.312078"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190970" for 127.0.0.1 at 2019-04-14 09:24:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190970"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190970], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 16:24:18.320904"], ["id", 980190970]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190970 +Completed 302 Found in 9ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190970], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:24:18.330693"], ["updated_at", "2019-04-14 16:24:18.330693"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:24:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:24:18.338281"], ["updated_at", "2019-04-14 16:24:18.338281"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:30:53.127220', '2019-04-14 16:30:53.127220', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:30:53.127220', '2019-04-14 16:30:53.127220', DEFAULT) +  (31.6ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:30:53.193260"], ["updated_at", "2019-04-14 16:30:53.193260"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:30:53.196031"], ["updated_at", "2019-04-14 16:30:53.196031"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root path if trying to delete a non-existant task +---------------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (18.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:30:53.210979"], ["updated_at", "2019-04-14 16:30:53.210979"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:30:53.231974"], ["updated_at", "2019-04-14 16:30:53.231974"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 16:30:53.260153"], ["updated_at", "2019-04-14 16:30:53.260153"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:30:53.280898"], ["updated_at", "2019-04-14 16:30:53.280898"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (28.0ms) + Rendered tasks/edit.html.erb within layouts/application (34.1ms) +Completed 200 OK in 308ms (Views: 303.0ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:30:53.598212"], ["updated_at", "2019-04-14 16:30:53.598212"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:30:53.616511"], ["updated_at", "2019-04-14 16:30:53.616511"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190970" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190970"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190970], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 16:30:53.625505"], ["id", 980190970]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190970 +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190970], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:30:53.634380"], ["updated_at", "2019-04-14 16:30:53.634380"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:30:53.641301"], ["updated_at", "2019-04-14 16:30:53.641301"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (1.7ms) + Rendered tasks/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 9ms (Views: 3.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 09:30:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:32:58.534696', '2019-04-14 16:32:58.534696', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:32:58.534696', '2019-04-14 16:32:58.534696', DEFAULT) +  (13.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:32:58.584499"], ["updated_at", "2019-04-14 16:32:58.584499"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 09:32:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (219.4ms) +Completed 200 OK in 252ms (Views: 236.0ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:32:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:32:58.861242"], ["updated_at", "2019-04-14 16:32:58.861242"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:32:58.864745"], ["updated_at", "2019-04-14 16:32:58.864745"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:32:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:32:58.871222"], ["updated_at", "2019-04-14 16:32:58.871222"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 09:32:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 16:32:58.886061"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 1.3ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 09:32:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:32:58.901844"], ["updated_at", "2019-04-14 16:32:58.901844"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 09:32:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (20.0ms) + Rendered tasks/edit.html.erb within layouts/application (24.1ms) +Completed 200 OK in 31ms (Views: 25.5ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 09:32:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 09:32:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:32:58.959490"], ["updated_at", "2019-04-14 16:32:58.959490"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:32:58.961653"], ["updated_at", "2019-04-14 16:32:58.961653"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root path if trying to delete a non-existant task +---------------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:32:58.969610"], ["updated_at", "2019-04-14 16:32:58.969610"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:32:58.972346"], ["updated_at", "2019-04-14 16:32:58.972346"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 09:32:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.2ms) + Rendered tasks/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 09:32:59 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 16:32:59.030519"], ["updated_at", "2019-04-14 16:32:59.030519"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (20.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:39:18.740627', '2019-04-14 16:39:18.740627', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:39:18.740627', '2019-04-14 16:39:18.740627', DEFAULT) +  (1.5ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 09:39:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (17.6ms) +Completed 200 OK in 272ms (Views: 261.6ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 09:39:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 09:39:19 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (21.4ms) + Rendered tasks/new.html.erb within layouts/application (25.6ms) +Completed 200 OK in 31ms (Views: 26.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:39:19.121815"], ["updated_at", "2019-04-14 16:39:19.121815"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 09:39:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 12ms (Views: 3.3ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:39:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 09:39:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:39:19.155168"], ["updated_at", "2019-04-14 16:39:19.155168"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 09:39:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.0ms) + Rendered tasks/edit.html.erb within layouts/application (2.7ms) +Completed 200 OK in 9ms (Views: 4.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:39:19.173744"], ["updated_at", "2019-04-14 16:39:19.173744"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190965" for 127.0.0.1 at 2019-04-14 09:39:19 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 16:39:19.189754"], ["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.7ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:39:19.198807"], ["updated_at", "2019-04-14 16:39:19.198807"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:39:19.203346"], ["updated_at", "2019-04-14 16:39:19.203346"]] +  (2.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:39:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will give a 404 error if trying to delete a non-existant task +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:39:19.218325"], ["updated_at", "2019-04-14 16:39:19.218325"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:39:19.220875"], ["updated_at", "2019-04-14 16:39:19.220875"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:39:19.259741"], ["updated_at", "2019-04-14 16:39:19.259741"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:39:19.262293"], ["updated_at", "2019-04-14 16:39:19.262293"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.6ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190970]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 09:39:19 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 16:39:19.277531"], ["updated_at", "2019-04-14 16:39:19.277531"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:39:32.653332', '2019-04-14 16:39:32.653332', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:39:32.653332', '2019-04-14 16:39:32.653332', DEFAULT) +  (1.4ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 09:39:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 16:39:32.700836"], ["updated_at", "2019-04-14 16:39:32.700836"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 20ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 09:39:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 218ms (Views: 214.8ms | ActiveRecord: 0.5ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 09:39:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:39:32.945831"], ["updated_at", "2019-04-14 16:39:32.945831"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 09:39:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:39:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 09:39:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (24.1ms) + Rendered tasks/new.html.erb within layouts/application (29.6ms) +Completed 200 OK in 35ms (Views: 30.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:39:33.005549"], ["updated_at", "2019-04-14 16:39:33.005549"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:39:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:39:33.013214"], ["updated_at", "2019-04-14 16:39:33.013214"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 09:39:33 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 16:39:33.021055"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:39:33.028815"], ["updated_at", "2019-04-14 16:39:33.028815"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:39:33.034552"], ["updated_at", "2019-04-14 16:39:33.034552"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-14 09:39:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (2.1ms) + Rendered tasks/edit.html.erb within layouts/application (2.8ms) +Completed 200 OK in 10ms (Views: 4.3ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 09:39:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:39:33.056284"], ["updated_at", "2019-04-14 16:39:33.056284"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:39:33.059859"], ["updated_at", "2019-04-14 16:39:33.059859"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will give a 404 error if trying to delete a non-existant task +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:39:33.068273"], ["updated_at", "2019-04-14 16:39:33.068273"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:39:33.070609"], ["updated_at", "2019-04-14 16:39:33.070609"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task_name", "description", "date_due", "date_completed", "created_at", "updated_at", "completed") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:41:51.250142', '2019-04-14 16:41:51.250142', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-09', '2019-04-14 16:41:51.250142', '2019-04-14 16:41:51.250142', DEFAULT) +  (18.2ms) COMMIT +  (0.3ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (17.0ms) +Completed 200 OK in 290ms (Views: 280.9ms | ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."date_due" ASC + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (21.1ms) + Rendered tasks/new.html.erb within layouts/application (25.4ms) +Completed 200 OK in 31ms (Views: 27.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task_name"=>"new task", "description"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["task_name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 16:41:51.650803"], ["updated_at", "2019-04-14 16:41:51.650803"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------- +TasksController::create: test_0002_will not create a task with invalid params +----------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:41:51.670144"], ["updated_at", "2019-04-14 16:41:51.670144"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form_general.html.erb (3.9ms) + Rendered tasks/edit.html.erb within layouts/application (4.6ms) +Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:41:51.688655"], ["updated_at", "2019-04-14 16:41:51.688655"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/980190965" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task_name"=>"Buy groceries", "description"=>"Silk vanilla almond creamer and bacon", "date_due"=>"2019-04-15", "completed"=>"false"}, "id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "task_name" = $1, "description" = $2, "date_due" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task_name", "Buy groceries"], ["description", "Silk vanilla almond creamer and bacon"], ["date_due", "2019-04-15"], ["updated_at", "2019-04-14 16:41:51.696165"], ["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0002_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:41:51.703891"], ["updated_at", "2019-04-14 16:41:51.703891"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0003_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Clean the bathroom"], ["description", "All of it! Don't forget the floor."], ["date_due", "2020-01-01"], ["created_at", "2019-04-14 16:41:51.707470"], ["updated_at", "2019-04-14 16:41:51.707470"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------- +TasksController::destroy: test_0001_will destroy an existing task +----------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Acquire a rain jacket"], ["description", "One that is waterproof; check The Bins."], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:41:51.714924"], ["updated_at", "2019-04-14 16:41:51.714924"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "Take a break!"], ["description", "Go outside, play your cello, take your eyes away from the screen. Do it!!"], ["date_due", "2020-03-15"], ["created_at", "2019-04-14 16:41:51.717034"], ["updated_at", "2019-04-14 16:41:51.717034"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Acquire a rain jacket"], ["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take a break!"], ["LIMIT", 1]] +  (0.6ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("task_name", "description", "date_due", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task_name", "sample task"], ["description", "this is an example for a test"], ["date_due", "2019-04-19"], ["created_at", "2019-04-14 16:41:51.731245"], ["updated_at", "2019-04-14 16:41:51.731245"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190970" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190970"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190970], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 09:41:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) +  (0.8ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Finish writing this test."], ["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take another break!"], ["LIMIT", 1]] +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Finish writing this test."], ["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task_name" = $1 LIMIT $2 [["task_name", "Take another break!"], ["LIMIT", 1]] diff --git a/package.json b/package.json new file mode 100644 index 000000000..f9cbc5515 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "TaskList", + "private": true, + "dependencies": {} +} diff --git a/public/404.html b/public/404.html new file mode 100644 index 000000000..2be3af26f --- /dev/null +++ b/public/404.html @@ -0,0 +1,67 @@ + + + + The page you were looking for doesn't exist (404) + + + + + + +
+
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/422.html b/public/422.html new file mode 100644 index 000000000..c08eac0d1 --- /dev/null +++ b/public/422.html @@ -0,0 +1,67 @@ + + + + The change you wanted was rejected (422) + + + + + + +
+
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/500.html b/public/500.html new file mode 100644 index 000000000..78a030af2 --- /dev/null +++ b/public/500.html @@ -0,0 +1,66 @@ + + + + We're sorry, but something went wrong (500) + + + + + + +
+
+

We're sorry, but something went wrong.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/apple-touch-icon-precomposed.png b/public/apple-touch-icon-precomposed.png new file mode 100644 index 000000000..e69de29bb diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 000000000..e69de29bb diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 000000000..e69de29bb diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 000000000..37b576a4a --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file diff --git a/storage/.keep b/storage/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb new file mode 100644 index 000000000..d19212abd --- /dev/null +++ b/test/application_system_test_case.rb @@ -0,0 +1,5 @@ +require "test_helper" + +class ApplicationSystemTestCase < ActionDispatch::SystemTestCase + driven_by :selenium, using: :chrome, screen_size: [1400, 1400] +end diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb index 971913898..288017471 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -2,8 +2,8 @@ describe TasksController do let (:task) { - Task.create name: "sample task", description: "this is an example for a test", - completion_date: Time.now + 5.days + Task.create task_name: "sample task", description: "this is an example for a test", + date_due: Time.now + 5.days } # Tests for Wave 1 @@ -28,7 +28,7 @@ # Unskip these tests for Wave 2 describe "show" do it "can get a valid task" do - skip + # skip # Act get task_path(task.id) @@ -37,19 +37,18 @@ end it "will redirect for an invalid task" do - skip + # skip # Act get task_path(-1) # Assert must_respond_with :redirect - expect(flash[:error]).must_equal "Could not find task with id: -1" end end describe "new" do it "can get the new task page" do - skip + # skip # Act get new_task_path @@ -61,14 +60,15 @@ describe "create" do it "can create a new task" do - skip + # skip # Arrange + # Note to students: Your Task model **may** be different and you may need to modify this. task_hash = { task: { - name: "new task", + task_name: "new task", description: "new task description", - completion_date: nil, + completed: false, }, } @@ -77,52 +77,170 @@ post tasks_path, params: task_hash }.must_change "Task.count", 1 - new_task = Task.find_by(name: task_hash[:task][:name]) + new_task = Task.find_by(task_name: task_hash[:task][:task_name]) expect(new_task.description).must_equal task_hash[:task][:description] - expect(new_task.due_date.to_time.to_i).must_equal task_hash[:task][:due_date].to_i expect(new_task.completed).must_equal task_hash[:task][:completed] must_respond_with :redirect - must_redirect_to task_path(new_task.id) + must_redirect_to tasks_path + end + + # THE BELOW TEST IS GIVING AN ERROR AS FOLLOWS + # ActionController::ParameterMissing: + # param is missing or the value is empty: task + # THIS IS A TEST I ADDED AND IS NOT REQUIRED. INSPIRATION CAME FROM + # https://github.com/Ada-Developers-Academy/textbook-curriculum/blob/master/08-rails/code_samples/create_controller_test.rb + + it "will not create a task with invalid params" do + skip + task_hash = {} # invalid params + + expect { + post tasks_path, params: task_hash + }.wont_change "Task.count" + + must_respond_with :bad_request end end # Unskip and complete these tests for Wave 3 describe "edit" do it "can get the edit page for an existing task" do - skip - # Your code here + # skip + # Act + get edit_task_path(task.id) + + # Assert + must_respond_with :success end it "will respond with redirect when attempting to edit a nonexistant task" do - skip - # Your code here + # skip + get edit_task_path(-1) + + # Assert + must_respond_with :redirect end end # Uncomment and complete these tests for Wave 3 describe "update" do - # Note: If there was a way to fail to save the changes to a task, that would be a great - # thing to test. + # Note: If there was a way to fail to save the changes to a task, that would be a great thing to test. + + before do + Task.create(task_name: "Clean the bathroom", description: "All of it! Don't forget the floor.", date_due: "2020-01-01") + end + + let (:new_task_hash) { + { + task: { + task_name: "Buy groceries", + description: "Silk vanilla almond creamer and bacon", + date_due: "2019-04-15".to_date, + completed: false, + }, + } + } + + it "can update an existing task" do + # skip + + id = Task.last.id + expect { + patch task_path(id), params: new_task_hash + }.wont_change "Task.count" + + must_respond_with :redirect + + task = Task.find_by(id: id) + expect(task.task_name).must_equal new_task_hash[:task][:task_name] + expect(task.description).must_equal new_task_hash[:task][:description] + expect(task.date_due).must_equal new_task_hash[:task][:date_due] + end + + # THIS IS THE FIRST THING I TRIED WRITING. IT GAVE AN ERROR. + # ActiveModel::UnknownAttributeError: unknown attribute 'params' for Task. it "can update an existing task" do skip - # Your code here + # Arrange + change_task = Task.find_by(task_name: "Clean the bathroom") + + change_task.update(params: new_task_hash) + + # Assert + expect { }.must_change + must_respond_with :success + must_redirect_to task_path end it "will redirect to the root page if given an invalid id" do - skip - # Your code here + # skip + # Act + get task_path(-1) + + # Assert + must_respond_with :redirect end end # Complete these tests for Wave 4 describe "destroy" do - # Your tests go here + before do + Task.create(task_name: "Acquire a rain jacket", description: "One that is waterproof; check The Bins.", date_due: "2020-03-15") + Task.create(task_name: "Take a break!", description: "Go outside, play your cello, take your eyes away from the screen. Do it!!", date_due: "2020-03-15") + end + + it "will destroy an existing task" do + # skip + # Arrange + task_to_delete = Task.find_by(task_name: "Acquire a rain jacket") + + other_task = Task.find_by(task_name: "Take a break!") + + # task_to_delete.destroy + + # Assert + + # NEED HELP WITH THE NEXT THREE TESTS!!! + expect { + task_to_delete.destroy + }.must_change "Task.count", -1 + # must_respond_with :success + + # expect { + # other_task.destroy + # }.must_respond_with :success + # must_redirect_to tasks_path + end + + # it "will give a 404 error if trying to delete a non-existant task" do + # task_to_delete = Task.find_by(id: -1) + # expect { + # task_to_delete.destroy + # }.must_respond_with :missing + # end end # Complete for Wave 4 describe "toggle_complete" do - # Your tests go here + # Arrange + before do + Task.create(task_name: "Finish writing this test.", description: "One that is waterproof; check The Bins.", date_due: "2020-03-15") + + Task.create(task_name: "Take another break!", description: "For real this time.", date_due: "2019-04-14", completed: true) + end + + task_to_toggle1 = Task.find_by(task_name: "Finish writing this test.") + task_to_toggle2 = Task.find_by(task_name: "Take another break!") + # expect { + # task_to_toggle1.toggle_completed + # }.must_change task_to_toggle[:completed], true + + # Act + task_to_toggle2.toggle_completed + + # Assert + expect(task_to_toggle2[:completed]).must_equal false end end diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml new file mode 100644 index 000000000..792c25513 --- /dev/null +++ b/test/fixtures/tasks.yml @@ -0,0 +1,13 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + task_name: MyString + description: MyString + date_due: 2019-04-09 + date_completed: 2019-04-09 + +two: + task_name: MyString + description: MyString + date_due: 2019-04-09 + date_completed: 2019-04-09 diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/task_test.rb b/test/models/task_test.rb new file mode 100644 index 000000000..7928a374f --- /dev/null +++ b/test/models/task_test.rb @@ -0,0 +1,9 @@ +require "test_helper" + +describe Task do + let(:task) { Task.new } + + it "must be valid" do + value(task).must_be :valid? + end +end diff --git a/test/system/.keep b/test/system/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 000000000..10594a324 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,26 @@ +ENV["RAILS_ENV"] = "test" +require File.expand_path("../../config/environment", __FILE__) +require "rails/test_help" +require "minitest/rails" +require "minitest/reporters" # for Colorized output + +# For colorful output! +Minitest::Reporters.use!( + Minitest::Reporters::SpecReporter.new, + ENV, + Minitest.backtrace_filter +) + + +# To add Capybara feature tests add `gem "minitest-rails-capybara"` +# to the test group in the Gemfile and uncomment the following: +# require "minitest/rails/capybara" + +# Uncomment for awesome colorful output +# require "minitest/pride" + +class ActiveSupport::TestCase + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. + fixtures :all + # Add more helper methods to be used by all tests here... +end diff --git a/vendor/.keep b/vendor/.keep new file mode 100644 index 000000000..e69de29bb