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..160fe391c --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.5.5 \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..87a48610f --- /dev/null +++ b/Gemfile @@ -0,0 +1,83 @@ +source 'https://rubygems.org' +git_source(:github) { |repo| "https://github.com/#{repo}.git" } + +ruby '2.5.5' + +# 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' + gem 'debase', '>= 0.2.4.1' + gem 'ruby-debug-ide', '>= 0.7.0' +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..23d7a0d19 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,278 @@ +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.7.0) + public_suffix (>= 2.0.2, < 5.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.8.1) + binding_of_caller (0.8.0) + debug_inspector (>= 0.0.1) + bootsnap (1.4.5) + msgpack (~> 1.0) + builder (3.2.3) + byebug (11.0.1) + capybara (3.29.0) + addressable + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (~> 1.5) + xpath (~> 3.2) + childprocess (2.0.0) + rake (< 13.0) + 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) + debase (0.2.4.1) + debase-ruby_core_source (>= 0.10.2) + debase-ruby_core_source (0.10.5) + debug_inspector (0.0.3) + erubi (1.9.0) + execjs (2.7.0) + ffi (1.11.1) + formatador (0.2.5) + globalid (0.4.2) + activesupport (>= 4.2.0) + guard (2.15.1) + 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.9.1) + activesupport (>= 4.2.0) + jquery-rails (4.3.5) + 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.3.0) + 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.2) + mini_portile2 (2.4.0) + minitest (5.12.2) + minitest-rails (5.2.0) + minitest (~> 5.10) + railties (~> 5.2.0) + minitest-reporters (1.3.8) + ansi + builder + minitest (>= 5.0) + ruby-progressbar + minitest-skip (0.0.1) + minitest (~> 5.0) + msgpack (1.3.1) + nenv (0.3.0) + nio4r (2.5.2) + nokogiri (1.10.4) + mini_portile2 (~> 2.4.0) + notiffany (0.1.3) + 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 (4.0.1) + 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.2.0) + 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.3) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + regexp_parser (1.6.0) + ruby-debug-ide (0.7.0) + rake (>= 0.8.1) + ruby-progressbar (1.10.1) + ruby_dep (1.5.0) + rubyzip (1.3.0) + 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.1.0) + railties (>= 5.2.0) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + selenium-webdriver (3.142.4) + childprocess (>= 0.5, < 3.0) + rubyzip (~> 1.2, >= 1.2.2) + shellany (0.0.1) + spring (2.1.0) + 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.10) + turbolinks (5.2.1) + turbolinks-source (~> 5.2) + turbolinks-source (5.2.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + uglifier (4.2.0) + 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.1) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.4) + 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 + debase (>= 0.2.4.1) + 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) + ruby-debug-ide (>= 0.7.0) + 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.5p157 + +BUNDLED WITH + 2.0.2 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/README.md b/README.md index aff84a887..dd6a05107 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ In this wave, we will expand the actions we support and introduce forms for user 1. Create a new task: - update the task list to have a link to add a new task - this will give the user a new page with a **form** with the appropriate task fields - - the site should take the user back to the task list after the new task is added + - the site should take the user to the show page for the task that was just added 1. Verify the success of your controller actions by uncommenting the wave 2 tests and executing them with `$ rails test`. ## Wave 3 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/tasks.jpg b/app/assets/images/tasks.jpg new file mode 100644 index 000000000..e851de9b1 Binary files /dev/null and b/app/assets/images/tasks.jpg 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..8b9cd1161 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,24 @@ +/* + * 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 + */ + +.success { + background-color: lightgreen; +} + +.failure { + background-color: pink; +} + 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..676623071 --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,107 @@ +class TasksController < ApplicationController + def index + @tasks = Task.order(:id) + end + + def show + task_id = params[:id].to_i + @task = Task.find_by(id: task_id) + + if @task.nil? + redirect_to tasks_path + return + end + end + + def new + @task = Task.new + end + + def task_params + return params.require(:task).permit(:name, :description, :completed) + end + + def create + @task = Task.new(task_params) + + if @task.save + flash[:success] = "New task added successfully" + redirect_to task_path(@task.id) + return + else + flash.now[:failure] = "New task was not added successfully" + render :new + return + end + end + + def edit + @task = Task.find_by(id: params[:id]) + + if @task.nil? + redirect_to root_path + return + end + end + + def update + @task = Task.find_by(id: params[:id]) + + if @task.nil? + redirect_to root_path + return + elsif @task.update(task_params) + flash[:success] = "Task updated successfully" + redirect_to task_path(@task.id) + return + else + flash.now[:failure] = "New task was not edited successfully" + render :edit + return + end + end + + def destroy + @task = Task.find_by(id: params[:id]) + + if @task.nil? + redirect_to root_path + return + elsif @task.destroy + redirect_to tasks_path + return + else + render :show + end + end + + def make_completed + @task = Task.find_by(id: params[:id]) + + if @task.nil? + redirect_to root_path + return + else + @task.update(completed: DateTime.now) + redirect_back(fallback_location: root_path) + return + end + end + + def make_not_completed + @task = Task.find_by(id: params[:id]) + + if @task.nil? + redirect_to root_path + return + else + @task.update(completed: nil) + redirect_back(fallback_location: root_path) + return + end + end +end + +# if want to add a check box for "read", for example +# need to add to _form.html.erb, add :read in database +# and add :read in permitted tasks parameters \ No newline at end of file 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..599fc47a6 --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,3 @@ +class Task < ApplicationRecord + validates :name, presence: true +end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..2385ec782 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,22 @@ + + + + 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' %> + + + + +
+ <% flash.each do |name, message| %> +
<%= message %>
+ <% end %> +
+ + <%= 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.html.erb b/app/views/tasks/_form.html.erb new file mode 100644 index 000000000..ea95f69a0 --- /dev/null +++ b/app/views/tasks/_form.html.erb @@ -0,0 +1,11 @@ +

Please provide the following information to <%= verb_name %> a task:

+ +<%= form_with model: @task do |f| %> + <%= f.label :name %> + <%= f.text_field :name %> + + <%= f.label :description %> + <%= f.text_field :description %> + + <%= f.submit action_name, class: "submit-button" %> +<% 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..4c6fd127f --- /dev/null +++ b/app/views/tasks/edit.html.erb @@ -0,0 +1 @@ +<%= render partial: "form", locals: { action_name: "Save Edits", verb_name: "edit" } %> \ 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..93f3fe98a --- /dev/null +++ b/app/views/tasks/index.html.erb @@ -0,0 +1,30 @@ +

Task List

+ + + +<%# <%= image_tag "tasks.jpg", alt: "Picture of tasks." %> + + +
    + <% @tasks.each do |task| %> +
  1. <%= link_to "Task: #{task.name}", task_path(task.id) %>
  2. + + + <% end %> +
+ +<%= link_to "Add a new task", new_task_path %> + diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb new file mode 100644 index 000000000..dace9b53c --- /dev/null +++ b/app/views/tasks/new.html.erb @@ -0,0 +1 @@ +<%= render partial: "form", locals: { action_name: "Create New Task", verb_name: "create" } %> \ 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..14285c1c7 --- /dev/null +++ b/app/views/tasks/show.html.erb @@ -0,0 +1,21 @@ +

Task Details

+ +

Task: <%= @task.name %>

+ + + + +<%= link_to "Back to all Tasks", tasks_path %> \ 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..d89ee495f --- /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..d316d0243 --- /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: task-list_production diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc new file mode 100644 index 000000000..1026644b5 --- /dev/null +++ b/config/credentials.yml.enc @@ -0,0 +1 @@ +voiUcrhjXf3bBnohe+dHSFJximl/WSSAUszBJ1EZ4cZTAu+JyTRTCnALkNIaHuhYebUBpi3D7VB9QS5nnKmmhLsABti2VJGeczJE3j/FPg2Mm35lrcR1Ui1nx+lQ5A39kyXrm6RL/d1J9I14Msv+mx9xnHzd0wIWy8oaRaFvKpxRQBmQYxvuPw6Va/erIqiwM7961FUzw5aJDxrW4KIz+3WkHIH2OSBS3ZmewQJRrb5c2pWoi96msLf54rN8UW68FT1WMqaKfAzQNTmfNLTuVrVOoZPtHadYIxHzkpCn8OUme4XK4ITSlx6q6yO2rK+gSUSxIKkeyCIv2l2IAs2gGz4nM/Ch6MmClaXnd4QY20g86Or9htB9edXKgpLx7AeKlw7KuN5quvKntAbIZkazbdBYPUdkZmbBhKyx--SdeRhVkpNy95rehx--5eCFeyB4/9vzrA/nhsTVgw== \ No newline at end of file diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 000000000..21ed55c45 --- /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: task-list_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: task-list + + # 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: task-list_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: task-list_production + username: task-list + password: <%= ENV['TASK-LIST_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..fd384c0ee --- /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 = "task-list_#{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..65b89c89a --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,17 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + resources :tasks + # The following is included in resources + # get '/tasks', to: 'tasks#index', as: 'tasks' + # get '/tasks/new', to: 'tasks#new', as: 'new_task' + # post '/tasks', to: 'tasks#create' + # get '/tasks/:id', to: 'tasks#show', as: 'task' + # get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task' + # patch '/tasks/:id', to: 'tasks#update' + # delete '/tasks/:id', to: 'tasks#destroy' + + root 'tasks#index', as: 'root' + patch '/tasks/:id/completed', to: 'tasks#make_completed', as: 'completed_task' + patch '/tasks/:id/not_completed', to: 'tasks#make_not_completed', as: 'not_completed_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/20191001204013_create_tasks.rb b/db/migrate/20191001204013_create_tasks.rb new file mode 100644 index 000000000..e2e6c38de --- /dev/null +++ b/db/migrate/20191001204013_create_tasks.rb @@ -0,0 +1,11 @@ +class CreateTasks < ActiveRecord::Migration[5.2] + def change + create_table :tasks do |t| + t.string :name + t.string :description + t.time :completion_date + + t.timestamps + end + end +end diff --git a/db/migrate/20191003223726_change_completion_field_in_tasks.rb b/db/migrate/20191003223726_change_completion_field_in_tasks.rb new file mode 100644 index 000000000..bdf65253e --- /dev/null +++ b/db/migrate/20191003223726_change_completion_field_in_tasks.rb @@ -0,0 +1,6 @@ +class ChangeCompletionFieldInTasks < ActiveRecord::Migration[5.2] + def change + remove_column :tasks, :completion_date + add_column :tasks, :completed, :boolean + end +end diff --git a/db/migrate/20191004174321_change_completed_datatype.rb b/db/migrate/20191004174321_change_completed_datatype.rb new file mode 100644 index 000000000..8a2753d1f --- /dev/null +++ b/db/migrate/20191004174321_change_completed_datatype.rb @@ -0,0 +1,6 @@ +class ChangeCompletedDatatype < ActiveRecord::Migration[5.2] + def change + remove_column :tasks, :completed + add_column :tasks, :completed, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..f6518c009 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,26 @@ +# 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_10_04_174321) 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 "name" + t.string "description" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.datetime "completed" + 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..6ed9751b5 --- /dev/null +++ b/log/development.log @@ -0,0 +1,6106 @@ +  (482.1ms) CREATE DATABASE "task-list_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (457.0ms) CREATE DATABASE "task-list_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/" for ::1 at 2019-09-30 13:27:05 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (5.6ms) +Completed 200 OK in 42ms (Views: 14.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-09-30 15:19:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 387ms (Views: 375.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-09-30 15:21:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-09-30 15:22:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 44ms (Views: 41.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-09-30 15:23:11 -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 26ms (Views: 22.5ms | ActiveRecord: 0.0ms) + + +Started GET "/books" for ::1 at 2019-10-01 13:31:48 -0700 + +ActionController::RoutingError (No route matches [GET] "/books"): + +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-10-01 13:31:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 271ms (Views: 268.3ms | ActiveRecord: 0.0ms) + + +  (17.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (3.6ms) 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 +  (0.5ms) SELECT pg_try_advisory_lock(3827420325922003335) + ↳ bin/rails:9 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20191001204013) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (4.8ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" time, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/migrate/20191001204013_create_tasks.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20191001204013"]] + ↳ bin/rails:9 +  (0.5ms) COMMIT + ↳ bin/rails:9 + 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]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.9ms) 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-10-01 20:43:34.926814"], ["updated_at", "2019-10-01 20:43:34.926814"]] + ↳ bin/rails:9 +  (0.3ms) COMMIT + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(3827420325922003335) + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) BEGIN + Task Create (2.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "mail package"], ["description", "send to Milton"], ["completion_date", "21:45:15.887664"], ["created_at", "2019-10-01 20:45:20.928325"], ["updated_at", "2019-10-01 20:45:20.928325"]] +  (0.6ms) COMMIT + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" +  (0.2ms) BEGIN + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "clean kitchen"], ["description", "wash dishes, mop floor"], ["completion_date", "21:47:03.912966"], ["created_at", "2019-10-01 20:47:03.914650"], ["updated_at", "2019-10-01 20:47:03.914650"]] +  (1.2ms) COMMIT + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" +  (0.3ms) BEGIN + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "complete homework"], ["description", "task list project"], ["completion_date", "21:47:30.889142"], ["created_at", "2019-10-01 20:47:30.891245"], ["updated_at", "2019-10-01 20:47:30.891245"]] +  (1.4ms) COMMIT + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" +  (0.4ms) BEGIN + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "feed dog"], ["description", "treats to Max"], ["completion_date", "00:47:47.920242"], ["created_at", "2019-10-01 20:48:03.083320"], ["updated_at", "2019-10-01 20:48:03.083320"]] +  (1.2ms) COMMIT + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2019-10-01 13:52:28 -0700 +  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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 + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 185ms (Views: 176.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 13:52:38 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + + + +NameError - uninitialized constant TasksController::TASKS: + app/controllers/tasks_controller.rb:11:in `index' + +Started POST "/__better_errors/20d490121434e9aa/variables" for ::1 at 2019-10-01 13:52:38 -0700 +Started GET "/tasks" for ::1 at 2019-10-01 14:07:55 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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 + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 244ms (Views: 234.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/asdf" for ::1 at 2019-10-01 14:08:03 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/asdf"): + +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-10-01 14:08:07 -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 30ms (Views: 26.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 14:10:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `each' for nil:NilClass: + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__198295018335453052_70282021614300' + +Started POST "/__better_errors/0183e86f54963a5b/variables" for ::1 at 2019-10-01 14:10:42 -0700 +Started GET "/tasks" for ::1 at 2019-10-01 14:10:58 -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 200 OK in 31ms (Views: 29.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 14:47:58 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.9ms) +Completed 200 OK in 203ms (Views: 186.5ms | ActiveRecord: 6.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 14:52:10 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (15.7ms) +Completed 200 OK in 198ms (Views: 183.8ms | ActiveRecord: 4.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 15:03:13 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.9ms) +Completed 200 OK in 191ms (Views: 175.2ms | ActiveRecord: 5.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-01 15:03:19 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (411.3ms) +Completed 500 Internal Server Error in 428ms (ActiveRecord: 1.2ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fe7d8e5d6f8> +Did you mean? @task: + app/views/tasks/show.html.erb:2:in `_app_views_tasks_show_html_erb___4450199437918205688_70316872491100' + +Started POST "/__better_errors/4773db47a06b4bcf/variables" for ::1 at 2019-10-01 15:03:19 -0700 +Started GET "/tasks/1" for ::1 at 2019-10-01 15:03:46 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 32ms (Views: 28.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-01 15:07:27 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 237ms (Views: 194.8ms | ActiveRecord: 6.1ms) + + +Started GET "/tasks/4" for ::1 at 2019-10-01 15:07:31 -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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 43ms (Views: 35.5ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/4" for ::1 at 2019-10-01 15:08:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 28ms (Views: 23.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 15:28:40 -0700 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (20.1ms) +Completed 200 OK in 325ms (Views: 306.0ms | ActiveRecord: 5.3ms) + + +Started GET "/tasks/435" for ::1 at 2019-10-01 15:28:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"435"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 435], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 +Redirected to http://localhost:3000Could not find task with id: 435 +Completed 302 Found in 7ms (ActiveRecord: 0.8ms) + + +Started GET "/tasks/435" for ::1 at 2019-10-01 15:28:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"435"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 435], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 +Redirected to http://localhost:3000Could not find task with id: 435 +Completed 302 Found in 4ms (ActiveRecord: 0.4ms) + + +Started GET "/tasks/435" for ::1 at 2019-10-01 15:28:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"435"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 435], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 +Redirected to http://localhost:3000Could not find task with id: 435 +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + + +Started GET "/tasks/435" for ::1 at 2019-10-01 15:29:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"435"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 435], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 1.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 15:29:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (31.7ms) +Completed 200 OK in 54ms (Views: 48.2ms | ActiveRecord: 3.0ms) + + +Started GET "/tasks/29457" for ::1 at 2019-10-01 15:29:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"29457"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 29457], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 15:29:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 34ms (Views: 31.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 15:40:48 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (17.1ms) +Completed 200 OK in 208ms (Views: 192.6ms | ActiveRecord: 4.9ms) + + +Started GET "/tasks/923784" for ::1 at 2019-10-01 15:40:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"923784"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 923784], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-01 15:40:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 31ms (Views: 26.0ms | ActiveRecord: 0.3ms) + + +  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/tasks" for ::1 at 2019-10-02 09:24:20 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (19.2ms) +Completed 200 OK in 213ms (Views: 197.4ms | ActiveRecord: 5.6ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-02 09:24:27 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 38ms (Views: 28.4ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/10" for ::1 at 2019-10-02 09:24:31 -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:8 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 09:24:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 57ms (Views: 54.4ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 10:03:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 33ms (Views: 29.0ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 10:03:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 29ms (Views: 25.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 10:03:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 37ms (Views: 33.6ms | ActiveRecord: 0.5ms) + + + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2019-10-02 10:40:59 -0700 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (306.8ms) +Completed 500 Internal Server Error in 328ms (ActiveRecord: 3.8ms) + + + +NameError - undefined local variable or method `book' for #<#:0x00007f8953291e70>: + app/views/tasks/index.html.erb:14:in `_app_views_tasks_index_html_erb__1013287867877832015_70113891190940' + +Started POST "/__better_errors/60f278a1281f3544/variables" for ::1 at 2019-10-02 10:41:00 -0700 +Started GET "/tasks" for ::1 at 2019-10-02 10:41:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 267ms (Views: 264.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks.1" for ::1 at 2019-10-02 10:41:10 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 69ms (Views: 41.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks.1" for ::1 at 2019-10-02 10:41:13 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 72ms (Views: 43.6ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks.2" for ::1 at 2019-10-02 10:41:19 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 69ms (Views: 40.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks.1" for ::1 at 2019-10-02 10:41:32 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 70ms (Views: 43.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks.1" for ::1 at 2019-10-02 10:41:34 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 71ms (Views: 48.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-02 10:41:36 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 70ms (Views: 45.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 10:41:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (12.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.4ms) +Completed 200 OK in 55ms (Views: 38.1ms | ActiveRecord: 12.2ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-02 10:41:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (11.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 54ms (Views: 34.9ms | ActiveRecord: 11.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 10:41:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 37ms (Views: 32.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3" for ::1 at 2019-10-02 10:41:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (5.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 58ms (Views: 46.4ms | ActiveRecord: 5.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 10:41:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (10.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.3ms) +Completed 200 OK in 69ms (Views: 54.4ms | ActiveRecord: 10.3ms) + + +Started GET "/tasks/4" for ::1 at 2019-10-02 10:41:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (5.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 53ms (Views: 40.6ms | ActiveRecord: 5.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 10:41:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 38ms (Views: 35.0ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-10-02 13:59:48 -0700 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:6 + Rendered tasks/index.html.erb within layouts/application (221.9ms) +Completed 200 OK in 316ms (Views: 286.1ms | ActiveRecord: 9.0ms) + + +Started GET "/" for ::1 at 2019-10-02 14:00:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 47ms (Views: 43.9ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-10-02 14:00:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 37ms (Views: 33.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-02 14:00:15 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 55ms (Views: 34.6ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:00:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 32ms (Views: 28.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-02 14:00:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 64ms (Views: 56.0ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:00:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (8.8ms) +Completed 200 OK in 50ms (Views: 46.2ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-10-02 14:24:30 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (148.4ms) +Completed 200 OK in 201ms (Views: 183.3ms | ActiveRecord: 5.8ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:24:36 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (19.1ms) +Completed 200 OK in 50ms (Views: 43.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-02 14:24:52 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Mhv/mAMD/685I7HvAJolydcxxYyze+/pvPwntHGS8NSoGhyIX/PgFXGWuC9cpHud/9i111rfH8wXnI71S8drWg==", "task"=>{"name"=>"new task test", "description"=>"new task test", "completion_date"=>"Time.now"}, "commit"=>"Save Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:25 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task test"], ["description", "new task test"], ["created_at", "2019-10-02 21:24:52.786617"], ["updated_at", "2019-10-02 21:24:52.786617"]] + ↳ app/controllers/tasks_controller.rb:25 +  (1.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:25 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:24:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 28ms (Views: 24.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/5" for ::1 at 2019-10-02 14:24:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 41ms (Views: 30.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:25:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 34ms (Views: 30.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:25:55 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.3ms) +Completed 200 OK in 67ms (Views: 60.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:25:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 44ms (Views: 38.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:31:25 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.6ms) +Completed 200 OK in 43ms (Views: 40.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:31:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:32:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:32:16 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 31ms (Views: 27.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:32:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-02 14:34:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fVGq0czF11vTe42D87jyLKSWdr6DiwpYCGMDMcSHhq5q5BCkCEWlfj9M8EFO61rCpkOoBwT+8YlLaqQyGaqqkA==", "task"=>{"name"=>"new task test2", "description"=>"new task test2", "completion_date"=>"now"}, "commit"=>"Save Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:25 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task test2"], ["description", "new task test2"], ["created_at", "2019-10-02 21:34:25.593215"], ["updated_at", "2019-10-02 21:34:25.593215"]] + ↳ app/controllers/tasks_controller.rb:25 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:25 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:34:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 45ms (Views: 41.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:41:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.8ms) +Completed 200 OK in 46ms (Views: 32.7ms | ActiveRecord: 8.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:41:20 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 51ms (Views: 47.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-02 14:41:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1ry1wZzGQuCNPJWPwDjoZGcINg8kI2p/VOMc4pV7iIVMvVbRwDZdWsWJnE+cBrYwT+FGVM2Hmlr/g7Wjry4TCw==", "task"=>{"name"=>"new task test3", "description"=>"new task test3", "completion_date"=>"now"}, "commit"=>"Save Task"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +ArgumentError - no time information in "now": + app/controllers/tasks_controller.rb:24:in `create' + +Started POST "/__better_errors/049c9bdb8ddbdbdd/variables" for ::1 at 2019-10-02 14:41:32 -0700 +Started POST "/tasks" for ::1 at 2019-10-02 14:41:55 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Z8n3WgsFQYW9P0S1x2H2zy6qzEgVPsSgCbimT+yJh/5wfE0vz4UzoFEIOXd6Ml4hLH8S8ZJLP3FKsQFMMaSrwA==", "task"=>{"name"=>"new task test3", "description"=>"new task test3", "completion_date"=>"Time.now"}, "commit"=>"Save Task"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +ArgumentError - no time information in "Time.now": + app/controllers/tasks_controller.rb:24:in `create' + +Started POST "/__better_errors/f19feaeb5ef0fed1/variables" for ::1 at 2019-10-02 14:41:55 -0700 +Started POST "/tasks" for ::1 at 2019-10-02 14:42:19 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Z8n3WgsFQYW9P0S1x2H2zy6qzEgVPsSgCbimT+yJh/5wfE0vz4UzoFEIOXd6Ml4hLH8S8ZJLP3FKsQFMMaSrwA==", "task"=>{"name"=>"new task test3", "description"=>"new task test3", "completion_date"=>"'04-18-2019'"}, "commit"=>"Save Task"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +ArgumentError - argument out of range: + app/controllers/tasks_controller.rb:24:in `create' + +Started POST "/__better_errors/2613600d579fe386/variables" for ::1 at 2019-10-02 14:42:19 -0700 +Started POST "/tasks" for ::1 at 2019-10-02 14:43:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Z8n3WgsFQYW9P0S1x2H2zy6qzEgVPsSgCbimT+yJh/5wfE0vz4UzoFEIOXd6Ml4hLH8S8ZJLP3FKsQFMMaSrwA==", "task"=>{"name"=>"new task test3", "description"=>"new task test3", "completion_date"=>"12:00"}, "commit"=>"Save Task"} +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:26 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task test3"], ["description", "new task test3"], ["created_at", "2019-10-02 21:43:33.018210"], ["updated_at", "2019-10-02 21:43:33.018210"]] + ↳ app/controllers/tasks_controller.rb:26 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:26 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 29ms (ActiveRecord: 14.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:43:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 34ms (Views: 30.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 14:44:27 -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 29ms (Views: 18.2ms | ActiveRecord: 2.6ms) + + +Started POST "/tasks" for ::1 at 2019-10-02 14:44:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"oDtfW2toZ8iGhorQIP+oqu+DShLr1MyxnnkpnTvnFnw6OrxLN5h4cs4zgxB8wfb+x2o6SQJwPJQ1GYDcAbKN8g==", "task"=>{"name"=>"new task test4", "description"=>"new task test4", "completion_date"=>"12:00"}, "commit"=>"Save Task"} +  (2.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:26 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task test4"], ["description", "new task test4"], ["created_at", "2019-10-02 21:44:35.297868"], ["updated_at", "2019-10-02 21:44:35.297868"]] + ↳ app/controllers/tasks_controller.rb:26 +  (39.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:26 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 43.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:44:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 21ms (Views: 18.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:57:15 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (208.8ms) +Completed 200 OK in 259ms (Views: 239.3ms | ActiveRecord: 7.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:57:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.0ms) +Completed 200 OK in 37ms (Views: 30.0ms | ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:58:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (20.0ms) +Completed 200 OK in 44ms (Views: 29.7ms | ActiveRecord: 11.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:59:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (17.6ms) +Completed 200 OK in 45ms (Views: 37.9ms | ActiveRecord: 3.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 14:59:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.7ms) +Completed 200 OK in 38ms (Views: 28.9ms | ActiveRecord: 5.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 15:03:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (15.1ms) +Completed 200 OK in 68ms (Views: 58.2ms | ActiveRecord: 4.9ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 15:11:22 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.3ms) +Completed 200 OK in 40ms (Views: 24.8ms | ActiveRecord: 5.3ms) + + +Started POST "/tasks" for ::1 at 2019-10-02 15:11:38 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yXcjx9CP8SfNd9EE5J8t8+msrNYHnxNcLzvc4n5AnTdTdsDXjH/unYXC2MS4oXOnwUXcje4743mEW3WjRBUGuQ==", "task"=>{"name"=>"new task test5", "description"=>"new task test5", "completion_date"=>"12:00"}, "commit"=>"Save Task"} +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:28 + Task Create (1.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "new task test5"], ["description", "new task test5"], ["completion_date", "20:00:00"], ["created_at", "2019-10-02 22:11:38.670298"], ["updated_at", "2019-10-02 22:11:38.670298"]] + ↳ app/controllers/tasks_controller.rb:28 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:28 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 15:11:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 30ms (Views: 25.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 15:11:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.1ms) +Completed 200 OK in 36ms (Views: 32.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 16:13:54 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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/new.html.erb within layouts/application (16.4ms) +Completed 200 OK in 233ms (Views: 209.6ms | ActiveRecord: 4.5ms) + + +Started POST "/tasks" for ::1 at 2019-10-02 16:14:02 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"77qQXmqREs4/secUyjCtLUJ0KXk/PaSzF8oKh1WVFaN1u3NONmENdHcE7tSWDvN5ap1ZItaZVJa8qqPGb8COLQ==", "task"=>{"name"=>"new task test6", "description"=>"new task test6", "completion_date"=>"12:00"}, "commit"=>"Save Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:32 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "new task test6"], ["description", "new task test6"], ["completion_date", "12:00:00"], ["created_at", "2019-10-02 23:14:02.995892"], ["updated_at", "2019-10-02 23:14:02.995892"]] + ↳ app/controllers/tasks_controller.rb:32 +  (0.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:32 +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 8ms (ActiveRecord: 1.8ms) + + +Started GET "/tasks/10" for ::1 at 2019-10-02 16:14:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 33ms (Views: 22.4ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 16:14:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 35ms (Views: 30.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/edit" for ::1 at 2019-10-02 16:34:40 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#show as HTML + Parameters: {"id"=>"edit"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 16ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 16:34:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (164.0ms) +Completed 200 OK in 213ms (Views: 205.9ms | ActiveRecord: 3.2ms) + + +Started GET "/tasks/edit/1" for ::1 at 2019-10-02 16:34:47 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/edit/1"): + +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/1/edit" for ::1 at 2019-10-02 16:35:00 -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]] + ↳ app/controllers/tasks_controller.rb:38 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (190.7ms) +Completed 500 Internal Server Error in 204ms (ActiveRecord: 0.4ms) + + + +NoMethodError - undefined method `name' for #: + app/views/tasks/edit.html.erb:5:in `block in _app_views_tasks_edit_html_erb__1546223819901408479_70249541623520' + app/views/tasks/edit.html.erb:1:in `_app_views_tasks_edit_html_erb__1546223819901408479_70249541623520' + +Started POST "/__better_errors/531d337e07203780/variables" for ::1 at 2019-10-02 16:35:01 -0700 +Started GET "/tasks/1/edit" for ::1 at 2019-10-02 16:35: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]] + ↳ app/controllers/tasks_controller.rb:38 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.1ms) +Completed 200 OK in 24ms (Views: 20.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-10-02 16:35:53 -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]] + ↳ app/controllers/tasks_controller.rb:38 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 34ms (Views: 28.2ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-10-02 16:36:03 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"mVXqGP1H2MOSPQ3VYSnQ8bm6KmBS9LcpA96aMcUAfG6O4FBtOceq5n4KcBfcengfu2/02dWBTPhA1z0yGC1QUA==", "task"=>{"name"=>"mail package", "description"=>"send to Bryan", "completion_date"=>"2000-01-01 21:45:15 UTC"}, "commit"=>"Save Task", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:47 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:49 + Task Update (0.5ms) UPDATE "tasks" SET "description" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["description", "send to Bryan"], ["completion_date", "21:45:15"], ["updated_at", "2019-10-02 23:36:03.079927"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:49 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:49 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-02 16:36: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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 30ms (Views: 26.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 16:36:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 43ms (Views: 34.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 17:18:43 -0700 +  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (149.6ms) +Completed 200 OK in 199ms (Views: 179.5ms | ActiveRecord: 5.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-02 17:18:54 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.9ms) +Completed 200 OK in 39ms (Views: 33.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-02 17:19:08 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"AIRjnGD3hwNviNeldqBg+6KKsJnPi4urYuHdT+a+diCahYCMPAeYuSc93mUqnj6vimPAwiYve47JgXQO3Ovtrg==", "task"=>{"name"=>"new task test7", "description"=>"new task test7", "completion_date"=>"6:00"}, "commit"=>"Save Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "new task test7"], ["description", "new task test7"], ["completion_date", "06:00:00"], ["created_at", "2019-10-03 00:19:08.382730"], ["updated_at", "2019-10-03 00:19:08.382730"]] + ↳ app/controllers/tasks_controller.rb:27 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 26ms (ActiveRecord: 1.9ms) + + +Started GET "/tasks/11" for ::1 at 2019-10-02 17:19:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 32ms (Views: 21.6ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 17:19:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 36ms (Views: 30.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/11" for ::1 at 2019-10-02 17:19:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 42ms (Views: 35.0ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks/11/edit" for ::1 at 2019-10-02 17:19:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:37 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (7.1ms) +Completed 200 OK in 54ms (Views: 48.1ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/11" for ::1 at 2019-10-02 17:19:36 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Xa34yCV6NNU1k+d8E4h4pKTDNsWJbwwQmdx9tWEOcGVKGEK94fpG8Nmkmr6u29BKphbofA4a98Ha1dq2vCNcWw==", "task"=>{"name"=>"new task test7 update", "description"=>"new task test7 update", "completion_date"=>"2000-01-01 06:00:00 UTC"}, "commit"=>"Save Task", "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:46 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Update (0.6ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "new task test7 update"], ["description", "new task test7 update"], ["updated_at", "2019-10-03 00:19:36.438853"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:48 +  (0.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 12ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks/11" for ::1 at 2019-10-02 17:19:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 43ms (Views: 37.7ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 17:19:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.5ms) +Completed 200 OK in 50ms (Views: 44.6ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/10" for ::1 at 2019-10-02 17:19:51 -0700 +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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 35ms (Views: 30.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 17:19:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 31ms (Views: 26.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-02 17:20: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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 37ms (Views: 32.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 17:29:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application +  (3.4ms) SELECT COUNT(*) FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (17.8ms) +Completed 500 Internal Server Error in 27ms (ActiveRecord: 3.4ms) + + + +NoMethodError - undefined method `[]' for nil:NilClass: + app/views/tasks/index.html.erb:6:in `block in _app_views_tasks_index_html_erb___1135800931105403810_70103954720220' + app/views/tasks/index.html.erb:5:in `_app_views_tasks_index_html_erb___1135800931105403810_70103954720220' + +Started POST "/__better_errors/3069875ad2d3af82/variables" for ::1 at 2019-10-02 17:29:13 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-02 17:29:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 31ms (Views: 26.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-02 17:31:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + Rendered tasks/index.html.erb within layouts/application (11.7ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.4ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +NoMethodError - undefined method `sort_by!' for # +Did you mean? sort_by: + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb___1135800931105403810_70103924057400' + +Started POST "/__better_errors/e17a1fc6c493ae85/variables" for ::1 at 2019-10-02 17:31:59 -0700 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.3ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-02 17:45:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected & +'.freeze; @tasks.sort_by! {&:id} + ^: + app/views/tasks/index.html.erb:4:in `' + +Started POST "/__better_errors/3e98dd9ffccef6a2/variables" for ::1 at 2019-10-02 17:45:25 -0700 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/" for ::1 at 2019-10-03 10:11:07 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (172.5ms) +Completed 200 OK in 255ms (Views: 236.4ms | ActiveRecord: 4.6ms) + + +Started DELETE "/tasks/11" for ::1 at 2019-10-03 10:11:12 -0700 + +NameError - uninitialized constant BooksController: + +Started POST "/__better_errors/c91a98f2b94da6fd/variables" for ::1 at 2019-10-03 10:11:12 -0700 +Started DELETE "/tasks/11" for ::1 at 2019-10-03 10:11:39 -0700 + +NameError - uninitialized constant BooksController: + +Started POST "/__better_errors/3fc064fc1a0c40a4/variables" for ::1 at 2019-10-03 10:11:40 -0700 +Started DELETE "/tasks/11" for ::1 at 2019-10-03 10:12:19 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"TGGLf6pdaawKUjc9hvg3LMyPNj6tpJPzy85weS07AF5b1DEKbt0bieZlSv87q5/CzlrohyrRaCKIx9d68BYsYA==", "id"=>"11"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:67 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:74 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 11]] + ↳ app/controllers/tasks_controller.rb:74 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:74 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 22ms (ActiveRecord: 7.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 10:12:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (8.9ms) +Completed 200 OK in 44ms (Views: 40.9ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 10:13:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (21.2ms) +Completed 200 OK in 64ms (Views: 53.8ms | ActiveRecord: 3.2ms) + + +Started DELETE "/tasks/10" for ::1 at 2019-10-03 10:13:24 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"84QiYDYqR95x88GZCagZbzLeTlyUQRClSWq6kEhwDbzkMZgV8qo1+53EvFu0+7GBMAuQ5RM063QKYx2TlV0hgg==", "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:65 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 10]] + ↳ app/controllers/tasks_controller.rb:70 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 10:13:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 40ms (Views: 27.4ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/9" for ::1 at 2019-10-03 10:16:44 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"rn7PuQCNfAZ46fa++gmphjcQisR7V1EadOgUe11zUm+5y3XMxA0OI5Tei3xHWgFoNcVUffwiqss34bN4gF5+UQ==", "id"=>"9"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 9]] + ↳ app/controllers/tasks_controller.rb:70 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 10:16:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 37ms (Views: 32.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-03 10:19:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 36ms (Views: 29.4ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-03 10:20:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (8.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 35ms (Views: 22.0ms | ActiveRecord: 8.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 14:49:17 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (160.4ms) +Completed 200 OK in 215ms (Views: 200.1ms | ActiveRecord: 4.5ms) + + +Started DELETE "/tasks/8" for ::1 at 2019-10-03 14:49:24 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"nju6M85BMmsLtxHiaxGIj63srUe8WSRl/8PfGTINJGWJjgBGCsFATueAbCDWQiBhrzlz/jss37S8ynga7yAIWw==", "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:65 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 8]] + ↳ app/controllers/tasks_controller.rb:70 +  (40.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 41.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 14:49:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 30ms (Views: 25.8ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/7" for ::1 at 2019-10-03 14:49:33 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"bM8jkYUN0R6Lsn1ZIpMN36ZdX5+xFu9JZ6Al4tyEZ4R7epnkQY2jO2eFAJufwKUxpIiBJjZjFJgkqYLhAalLug==", "id"=>"7"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 7]] + ↳ app/controllers/tasks_controller.rb:70 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 14:49:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (12.2ms) +Completed 200 OK in 39ms (Views: 33.7ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:14:04 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (163.4ms) +Completed 200 OK in 204ms (Views: 183.5ms | ActiveRecord: 8.4ms) + + +Started DELETE "/tasks/6" for ::1 at 2019-10-03 15:14:10 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"5VrtM6rPGk9zF49/WerG5VLpY+Y1ygN321C8pi9FlAry71dGbk9oap8g8r3kuW4LUDy9X7K/+KaYWRul8mi4NA==", "id"=>"6"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (1.1ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 6]] + ↳ app/controllers/tasks_controller.rb:70 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 14ms (ActiveRecord: 4.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:14:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (9.6ms) +Completed 200 OK in 34ms (Views: 30.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/5" for ::1 at 2019-10-03 15:14:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 59ms (Views: 50.8ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:14:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 79ms (Views: 72.4ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-10-03 15:14:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (13.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:37 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (19.7ms) +Completed 200 OK in 66ms (Views: 48.4ms | ActiveRecord: 13.4ms) + + +Started PATCH "/tasks/5" for ::1 at 2019-10-03 15:14:32 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SjXH7FGadhoaT9iR9F/wv/AuBsKv+wfhivE548p8+r/fB4AI+Qpj9l56f5yb7IK8S4ngaTGy2ZK53MCyqhM7Fw==", "task"=>{"name"=>"new task test updated", "description"=>"new task test updated", "completion_date"=>""}, "commit"=>"Save Task", "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:46 +  (0.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:51 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "new task test updated"], ["description", "new task test updated"], ["updated_at", "2019-10-03 22:14:32.341507"], ["id", 5]] + ↳ app/controllers/tasks_controller.rb:51 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:51 +Redirected to http://localhost:3000/tasks/5 +Completed 302 Found in 52ms (ActiveRecord: 41.7ms) + + +Started GET "/tasks/5" for ::1 at 2019-10-03 15:14:32 -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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 40ms (Views: 35.3ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:14:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (14.7ms) +Completed 200 OK in 59ms (Views: 51.4ms | ActiveRecord: 2.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:19:33 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (196.9ms) +Completed 200 OK in 248ms (Views: 229.3ms | ActiveRecord: 7.1ms) + + +Started GET "/" for ::1 at 2019-10-03 15:19:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 43ms (Views: 40.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-03 15:20:05 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (17.0ms) +Completed 200 OK in 41ms (Views: 37.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-03 15:20:12 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"rsA0OEd+0Z3fzfMtwBuJyWxWDCkeLbntHehbHWpWwoQ0wdcoG47OJ5d4+u2cJdedRL98cveJSci2iPJcUANZCg==", "task"=>{"name"=>"new task test", "description"=>"new task test", "completion_date"=>""}, "commit"=>"Save Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task test"], ["description", "new task test"], ["created_at", "2019-10-03 22:20:12.201052"], ["updated_at", "2019-10-03 22:20:12.201052"]] + ↳ app/controllers/tasks_controller.rb:27 +  (40.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 48ms (ActiveRecord: 41.0ms) + + +Started GET "/tasks/12" for ::1 at 2019-10-03 15:20:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"12"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 26ms (Views: 19.2ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:20:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (22.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (35.5ms) +Completed 200 OK in 63ms (Views: 32.2ms | ActiveRecord: 22.8ms) + + +Started GET "/tasks/12/edit" for ::1 at 2019-10-03 15:20:21 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"12"} + Task Load (7.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:37 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.5ms) +Completed 200 OK in 37ms (Views: 24.1ms | ActiveRecord: 7.5ms) + + +Started PATCH "/tasks/12" for ::1 at 2019-10-03 15:20:27 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jXQnoRNunKD5J4xYXHIXiuV0lkWtAnUMT3sWOjGOMch/tHj8p7BI6WCetSAqYkXlWmN3DUUYCwV1/HmmZIcDSw==", "task"=>{"name"=>"new task test edit", "description"=>"new task test", "completion_date"=>""}, "commit"=>"Save Task", "id"=>"12"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:46 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:51 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["name", "new task test edit"], ["updated_at", "2019-10-03 22:20:27.800009"], ["id", 12]] + ↳ app/controllers/tasks_controller.rb:51 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:51 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 8ms (ActiveRecord: 1.7ms) + + +Started GET "/tasks/12" for ::1 at 2019-10-03 15:20:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"12"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 25ms (Views: 19.7ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:20:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 31ms (Views: 26.0ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/12" for ::1 at 2019-10-03 15:20:35 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"0me3E2CHii5FQSrBmeWbk7eC/JkGvaSlhFcRp5IqsUzF0g1mpAf4C6l2VwMktjN9tVciIIHIX3THXrakTwedcg==", "id"=>"12"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 12]] + ↳ app/controllers/tasks_controller.rb:70 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:20:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 35ms (Views: 31.9ms | ActiveRecord: 0.5ms) + + + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" +Started GET "/" for ::1 at 2019-10-03 15:32:08 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (297.5ms) +Completed 200 OK in 335ms (Views: 318.8ms | ActiveRecord: 4.3ms) + + +Started DELETE "/tasks/3" for ::1 at 2019-10-03 15:32:21 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"FEnQ3jDdsovG1gfzYiz2RmBxQWtNujiIvHlnkab4EJoD/Gqr9F3ArirhejHff16oYqSf0srPw1n/cMCSe9U8pA==", "id"=>"3"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 3]] + ↳ app/controllers/tasks_controller.rb:70 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 42.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:32:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 32ms (Views: 29.4ms | ActiveRecord: 0.3ms) + + + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" +  (0.5ms) SELECT pg_try_advisory_lock(3827420325922003335) + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to ChangeCompletionFieldInTasks (20191003223726) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (42.6ms) ALTER TABLE "tasks" RENAME COLUMN "completion_date" TO "completed" + ↳ db/migrate/20191003223726_change_completion_field_in_tasks.rb:3 +  (2.8ms) ALTER TABLE "tasks" ALTER COLUMN "completed" TYPE boolean + ↳ db/migrate/20191003223726_change_completion_field_in_tasks.rb:4 +  (0.1ms) ROLLBACK + ↳ bin/rails:9 +  (0.3ms) SELECT pg_advisory_unlock(3827420325922003335) + ↳ bin/rails:9 +  (0.2ms) SELECT pg_try_advisory_lock(3827420325922003335) + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to ChangeCompletionFieldInTasks (20191003223726) +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (4.7ms) ALTER TABLE "tasks" DROP COLUMN "completion_date" + ↳ db/migrate/20191003223726_change_completion_field_in_tasks.rb:3 +  (0.6ms) ALTER TABLE "tasks" ADD "completed" boolean + ↳ db/migrate/20191003223726_change_completion_field_in_tasks.rb:4 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20191003223726"]] + ↳ bin/rails:9 +  (0.4ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (0.1ms) COMMIT + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(3827420325922003335) + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" +Started GET "/" for ::1 at 2019-10-03 15:47:26 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (202.6ms) +Completed 200 OK in 293ms (Views: 278.3ms | ActiveRecord: 4.1ms) + + +Started DELETE "/tasks/5" for ::1 at 2019-10-03 15:47:33 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"CC5o1Bj8W77Nko9uJtF2ZAPSQMptcA+xzs9tutA8Xaofm9Kh3HwpmyGl8qybgt6KAQeec+oF9GCNxsq5DRFxlA==", "id"=>"5"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 5]] + ↳ app/controllers/tasks_controller.rb:70 +  (95.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 107ms (ActiveRecord: 97.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:47:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 55ms (Views: 52.1ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-03 15:47:36 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (20.7ms) +Completed 200 OK in 47ms (Views: 42.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-03 15:47:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"8BZT5r8M4yl1RJguVBfMPn6YdOPemWzd21gw7i2HxZhqF7D24/z8kz3xke4IKZJqVnEEuDc9nPhwOJmvF9JeFg==", "task"=>{"name"=>"new task test", "description"=>"new task test", "completed"=>""}, "commit"=>"Save Task"} +  (3.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (4.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task test"], ["description", "new task test"], ["created_at", "2019-10-03 22:47:43.601456"], ["updated_at", "2019-10-03 22:47:43.601456"]] + ↳ app/controllers/tasks_controller.rb:27 +  (3.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 18ms (ActiveRecord: 10.9ms) + + +Started GET "/tasks/13" for ::1 at 2019-10-03 15:47:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (2.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 35ms (Views: 28.3ms | ActiveRecord: 2.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:47:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 38ms (Views: 32.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 15:55:30 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (175.9ms) +Completed 200 OK in 229ms (Views: 213.7ms | ActiveRecord: 4.1ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-03 15:55:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (284.4ms) +Completed 500 Internal Server Error in 297ms (ActiveRecord: 0.8ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0936e978> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295807031620' + +Started POST "/__better_errors/7bfae0bcf40b707f/variables" for ::1 at 2019-10-03 15:55:35 -0700 +Started GET "/tasks/2" for ::1 at 2019-10-03 15:56:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (544.8ms) +Completed 500 Internal Server Error in 565ms (ActiveRecord: 3.6ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde05e3c980> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295779145080' + +Started POST "/__better_errors/a676724ef5c743dd/variables" for ::1 at 2019-10-03 15:56:56 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 15:57:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 38ms (Views: 35.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-03 15:57:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (13.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (437.2ms) +Completed 500 Internal Server Error in 467ms (ActiveRecord: 13.8ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0a024ac8> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295813696300' + +Started POST "/__better_errors/abeb187925327ef4/variables" for ::1 at 2019-10-03 15:57:06 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:00:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (14.8ms) +Completed 200 OK in 51ms (Views: 36.3ms | ActiveRecord: 3.9ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-03 16:00:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (3.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (415.2ms) +Completed 500 Internal Server Error in 434ms (ActiveRecord: 3.6ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde09385c90> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295807079120' + +Started POST "/__better_errors/42383be60691b5b4/variables" for ::1 at 2019-10-03 16:00:37 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 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" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (14.7ms) +Completed 200 OK in 46ms (Views: 38.9ms | ActiveRecord: 3.3ms) + + +Started GET "/tasks/2/completed" for ::1 at 2019-10-03 16:02:10 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/2/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-10-03 16:03:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (15.7ms) +Completed 200 OK in 39ms (Views: 29.8ms | ActiveRecord: 5.3ms) + + +Started GET "/tasks/2/completed" for ::1 at 2019-10-03 16:03:02 -0700 +Processing by TasksController#completed as HTML + Parameters: {"id"=>"2"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (422.7ms) +Completed 500 Internal Server Error in 435ms (ActiveRecord: 1.0ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde05cedd90> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295778452280' + app/controllers/tasks_controller.rb:89:in `completed' + +Started POST "/__better_errors/17e1416ec5b115bc/variables" for ::1 at 2019-10-03 16:03:02 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:04:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (17.2ms) +Completed 200 OK in 58ms (Views: 48.0ms | ActiveRecord: 2.9ms) + + +Started GET "/tasks/2/completed" for ::1 at 2019-10-03 16:04:59 -0700 +Processing by TasksController#completed as HTML + Parameters: {"id"=>"2"} + Task Load (16.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (476.9ms) +Completed 500 Internal Server Error in 506ms (ActiveRecord: 16.7ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0773b8f0> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295792243440' + app/controllers/tasks_controller.rb:89:in `completed' + +Started POST "/__better_errors/abdb595b13dfb6a5/variables" for ::1 at 2019-10-03 16:05:00 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:05:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 35ms (Views: 29.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/2/completed" for ::1 at 2019-10-03 16:05:07 -0700 +Processing by TasksController#completed as HTML + Parameters: {"id"=>"2"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (434.6ms) +Completed 500 Internal Server Error in 444ms (ActiveRecord: 1.2ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0a065af0> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295813825560' + app/controllers/tasks_controller.rb:89:in `completed' + +Started POST "/__better_errors/d6b6b3d8ce387b3c/variables" for ::1 at 2019-10-03 16:05:08 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:06:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (12.0ms) +Completed 200 OK in 37ms (Views: 28.6ms | ActiveRecord: 2.8ms) + + +Started GET "/tasks/2/completed" for ::1 at 2019-10-03 16:06:29 -0700 +Processing by TasksController#completed as HTML + Parameters: {"id"=>"2"} + Task Load (24.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 + Rendering tasks/completed.html.erb within layouts/application + Rendered tasks/completed.html.erb within layouts/application (0.5ms) +Completed 200 OK in 57ms (Views: 26.2ms | ActiveRecord: 24.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:09:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (15.5ms) +Completed 200 OK in 57ms (Views: 44.7ms | ActiveRecord: 4.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:09:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 27ms (Views: 24.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-03 16:09:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (439.8ms) +Completed 500 Internal Server Error in 453ms (ActiveRecord: 0.4ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde05e6fe48> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295807706080' + +Started POST "/__better_errors/78973ca1cde9454c/variables" for ::1 at 2019-10-03 16:09:40 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:11:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (15.2ms) +Completed 200 OK in 44ms (Views: 34.9ms | ActiveRecord: 5.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:11:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 29ms (Views: 27.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:11:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:11:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 35ms (Views: 32.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/13" for ::1 at 2019-10-03 16:12:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (455.2ms) +Completed 500 Internal Server Error in 464ms (ActiveRecord: 0.2ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde09401e08> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295807333260' + +Started POST "/__better_errors/ac43738255eb4ac2/variables" for ::1 at 2019-10-03 16:12:39 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:12:41 -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 17ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_then or ';' or '\n' +...( if task.completed == nil puts "nil" end );@output_buffer.s... +... ^~~~ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/views/tasks/index.html.erb:9: syntax error, unexpected keyword_end, expecting ')' +...completed == nil puts "nil" end );@output_buffer.safe_append... +... ^~~ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/views/tasks/index.html.erb:14: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/views/tasks/index.html.erb:23: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/views/tasks/index.html.erb:25: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/index.html.erb:9:in `' + +Started POST "/__better_errors/076c979ccbb63348/variables" for ::1 at 2019-10-03 16:12:42 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-03 16:14:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 35ms (Views: 31.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-03 16:14:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (5.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + Rendered tasks/show.html.erb within layouts/application (374.4ms) +Completed 500 Internal Server Error in 396ms (ActiveRecord: 6.1ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +NameError - undefined local variable or method `task' for #<#:0x00007fde0a020568> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295813687180' + +Started POST "/__better_errors/91937aae0ae63846/variables" for ::1 at 2019-10-03 16:14:18 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:18:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (15.6ms) +Completed 200 OK in 48ms (Views: 38.0ms | ActiveRecord: 4.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:18:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (7.7ms) +Completed 200 OK in 56ms (Views: 52.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-03 16:18:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (3.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (458.0ms) +Completed 500 Internal Server Error in 475ms (ActiveRecord: 3.5ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0a114280> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295814186480' + +Started POST "/__better_errors/608e4977b6efcf06/variables" for ::1 at 2019-10-03 16:18:22 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:19:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (14.1ms) +Completed 200 OK in 55ms (Views: 45.9ms | ActiveRecord: 2.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:19:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (9.5ms) +Completed 200 OK in 43ms (Views: 38.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:19:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 33ms (Views: 29.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-03 16:19:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (429.8ms) +Completed 500 Internal Server Error in 442ms (ActiveRecord: 1.4ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde05c8ab78> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295778253380' + +Started POST "/__better_errors/3f64b9c5221049f2/variables" for ::1 at 2019-10-03 16:19:35 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:21:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 45ms (Views: 38.9ms | ActiveRecord: 0.7ms) + + +Started POST "/__better_errors/ac43738255eb4ac2/variables" for ::1 at 2019-10-03 16:21:33 -0700 +Started GET "/tasks" for ::1 at 2019-10-03 16:21:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 36ms (Views: 32.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:21:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 42ms (Views: 39.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-10-03 16:21:37 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (16.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:37 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (23.7ms) +Completed 200 OK in 89ms (Views: 63.3ms | ActiveRecord: 16.3ms) + + +Started GET "/tasks/2/completed" for ::1 at 2019-10-03 16:21:45 -0700 +Processing by TasksController#completed as HTML + Parameters: {"id"=>"2"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 + Rendering tasks/completed.html.erb within layouts/application + Rendered tasks/completed.html.erb within layouts/application (0.7ms) +Completed 200 OK in 34ms (Views: 28.4ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-03 16:21:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (8.8ms) +Completed 200 OK in 47ms (Views: 41.0ms | ActiveRecord: 1.2ms) + + + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2019-10-04 09:56:36 -0700 + +SyntaxError - syntax error, unexpected '=' + @task.update(completed: = true) + ^: + app/controllers/tasks_controller.rb:94:in `' + +Started POST "/__better_errors/ef65be97e8edc85a/variables" for ::1 at 2019-10-04 09:56:36 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 09:56:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (24.8ms) +Completed 200 OK in 50ms (Views: 34.6ms | ActiveRecord: 11.1ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 09:56:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (293.1ms) +Completed 500 Internal Server Error in 313ms (ActiveRecord: 1.4ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde04c14e88> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295769703620' + +Started POST "/__better_errors/5aa7ffb4fdb55cf4/variables" for ::1 at 2019-10-04 09:56:57 -0700 +Started GET "/tasks/2" for ::1 at 2019-10-04 09:59:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (557.3ms) +Completed 500 Internal Server Error in 578ms (ActiveRecord: 3.1ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0a0e6600> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295814112360' + +Started POST "/__better_errors/79cfac971b793b95/variables" for ::1 at 2019-10-04 09:59:03 -0700 +Started GET "/tasks/2" for ::1 at 2019-10-04 09:59:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (532.6ms) +Completed 500 Internal Server Error in 541ms (ActiveRecord: 0.3ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0a298368> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295814981780' + +Started POST "/__better_errors/f59f9a262c60211e/variables" for ::1 at 2019-10-04 09:59:09 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 09:59:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.5ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.4ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"completed", :controller=>"tasks", :id=>nil}, missing required keys: [:id]: + app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb__1912350547787333982_70295761776200' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__1912350547787333982_70295761776200' + +Started POST "/__better_errors/8b6bfce949ddd203/variables" for ::1 at 2019-10-04 09:59:17 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:00:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.4ms) +Completed 200 OK in 40ms (Views: 33.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:00:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (25.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (333.4ms) +Completed 500 Internal Server Error in 375ms (ActiveRecord: 25.0ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde05c01968> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295777973420' + +Started POST "/__better_errors/e0a3a53806776a9b/variables" for ::1 at 2019-10-04 10:00:05 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:00:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 33ms (Views: 29.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/4" for ::1 at 2019-10-04 10:00:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (2.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (421.2ms) +Completed 500 Internal Server Error in 435ms (ActiveRecord: 2.9ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde03d3c6e0> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295761840200' + +Started POST "/__better_errors/46df90810a85fad7/variables" for ::1 at 2019-10-04 10:00:08 -0700 +Started GET "/tasks/4" for ::1 at 2019-10-04 10:00:48 -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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (532.5ms) +Completed 500 Internal Server Error in 544ms (ActiveRecord: 0.7ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde05be15c8> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295777907620' + +Started POST "/__better_errors/00ebfd214527268e/variables" for ::1 at 2019-10-04 10:00:49 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:00:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (8.4ms) +Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.7ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"completed", :controller=>"tasks"}, missing required keys: [:id]: + app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb__1912350547787333982_70295760429780' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__1912350547787333982_70295760429780' + +Started POST "/__better_errors/99f005c6623f5e24/variables" for ::1 at 2019-10-04 10:00:51 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:01:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 36ms (Views: 33.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:01:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (3.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (430.9ms) +Completed 500 Internal Server Error in 452ms (ActiveRecord: 3.4ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde03d34ff8> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295761825640' + +Started POST "/__better_errors/a93d26e1cc386dbe/variables" for ::1 at 2019-10-04 10:01:58 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10: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" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 39ms (Views: 35.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:03:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (420.2ms) +Completed 500 Internal Server Error in 436ms (ActiveRecord: 0.4ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde05d93560> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295778795320' + +Started POST "/__better_errors/ac9746a6baad4bb8/variables" for ::1 at 2019-10-04 10:03:25 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:05:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.3ms) +Completed 200 OK in 46ms (Views: 37.2ms | ActiveRecord: 3.1ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:05:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (15.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (446.1ms) +Completed 500 Internal Server Error in 485ms (ActiveRecord: 15.7ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde05e74f38> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295779257380' + +Started POST "/__better_errors/fda4ed60853cd11a/variables" for ::1 at 2019-10-04 10:05:09 -0700 +Started GET "/task" for ::1 at 2019-10-04 10:05:53 -0700 + +ActionController::RoutingError (No route matches [GET] "/task"): + +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-10-04 10:05:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (18.8ms) +Completed 200 OK in 50ms (Views: 33.8ms | ActiveRecord: 8.9ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:05:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (11.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (428.1ms) +Completed 500 Internal Server Error in 462ms (ActiveRecord: 11.4ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde07681f40> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295791868660' + +Started POST "/__better_errors/02391e9fd957bbd8/variables" for ::1 at 2019-10-04 10:05:57 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:05:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.5ms) +Completed 200 OK in 38ms (Views: 33.9ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:06:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (18.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (468.6ms) +Completed 500 Internal Server Error in 505ms (ActiveRecord: 18.2ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0a078790> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295813867760' + +Started POST "/__better_errors/80a0466cd852e687/variables" for ::1 at 2019-10-04 10:06:36 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:07:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 37ms (Views: 32.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:07:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (20.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (428.3ms) +Completed 500 Internal Server Error in 465ms (ActiveRecord: 20.0ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde07638ef8> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295791719100' + +Started POST "/__better_errors/849a85bcf9551486/variables" for ::1 at 2019-10-04 10:07:11 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:07:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 36ms (Views: 31.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/4" for ::1 at 2019-10-04 10:07:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (455.7ms) +Completed 500 Internal Server Error in 472ms (ActiveRecord: 0.9ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0948f780> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295807623640' + +Started POST "/__better_errors/3339fed7edf307ad/variables" for ::1 at 2019-10-04 10:07:25 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:11:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.2ms) +Completed 200 OK in 60ms (Views: 51.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:11:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (20.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (430.0ms) +Completed 500 Internal Server Error in 467ms (ActiveRecord: 20.6ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde09132b00> +Did you mean? @task: + app/views/tasks/show.html.erb:5:in `_app_views_tasks_show_html_erb__1342810711881010015_70295805870460' + +Started POST "/__better_errors/6be09895ad2b932b/variables" for ::1 at 2019-10-04 10:11:35 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:12:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (8.6ms) +Completed 200 OK in 36ms (Views: 31.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:12:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (16.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 55ms (Views: 33.1ms | ActiveRecord: 16.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 10:13:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 28ms (Views: 23.3ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:13:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (22.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 500 Internal Server Error in 39ms (ActiveRecord: 22.5ms) + + + +SyntaxError - syntax error, unexpected ')' +... want to mark as complete?"} %);@output_buffer.safe_append=' +... ^ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/views/tasks/show.html.erb:13: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/views/tasks/show.html.erb:15: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/show.html.erb:5:in `' + +Started POST "/__better_errors/6313d01d67a24b3e/variables" for ::1 at 2019-10-04 10:13:28 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:14:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 58ms (Views: 51.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:14:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (6.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 56ms (Views: 44.0ms | ActiveRecord: 6.0ms) + + +Started PATCH "/tasks/2/completed" for ::1 at 2019-10-04 10:14:23 -0700 +Processing by TasksController#completed as HTML + Parameters: {"authenticity_token"=>"dz6L2d6K8uoygHSo2pFBd2eAEcDYPce3EPgel8VaBgVgizGsGgqAz963CWpnwumZZVXPeV9IPGZT8bmUGHcqOw==", "id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 31ms (Views: 27.1ms | ActiveRecord: 0.4ms) + + + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" +Started PATCH "/tasks/2/completed" for ::1 at 2019-10-04 10:16:51 -0700 +Processing by TasksController#completed as HTML + Parameters: {"authenticity_token"=>"k6CHR+JBaBQP388UzweEtDUDde6bUzPkNmRPJNJi/XeEFT0yJsEaMePostZyVCxaN9arVxwmyDV1begnD0/RSQ==", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 36ms (Views: 20.1ms | ActiveRecord: 4.7ms) + + +Started GET "/tasks/2/completed" for ::1 at 2019-10-04 10:18:58 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/2/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-10-04 10:19:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (19.5ms) +Completed 200 OK in 67ms (Views: 58.8ms | ActiveRecord: 2.8ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:19:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (2.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 39ms (Views: 19.7ms | ActiveRecord: 2.8ms) + + +Started PATCH "/tasks/2/completed" for ::1 at 2019-10-04 10:19:07 -0700 +Processing by TasksController#completed as HTML + Parameters: {"authenticity_token"=>"omaHjnTezSm5lCZX4hbsMYLthzYaukc3px8lDmCdcZe10z37sF6/DFWjW5VfRUTfgDhZj53PvObkFoINvbBdqQ==", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:85 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-10-04 17:19:07.537235"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:85 +  (10.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:85 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 17ms (ActiveRecord: 11.7ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 10:19:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 30ms (Views: 24.2ms | ActiveRecord: 0.3ms) + + + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2019-10-04 10:28: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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (11.0ms) +Completed 200 OK in 38ms (Views: 27.8ms | ActiveRecord: 5.8ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-04 10:28:57 -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 36ms (Views: 30.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-04 10:29:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KHaPXNoNG7lT6rNh4dKenfA//mjzwm8ZPqMt5lAW5Gqyd2xMhv0EAxtfuqG97MDJ2NaOMxpmnzyVw4SnakN/5A==", "task"=>{"name"=>"L upper case test", "description"=>"upper case"}, "commit"=>"Save Task"} +  (1.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "L upper case test"], ["description", "upper case"], ["created_at", "2019-10-04 17:29:22.710531"], ["updated_at", "2019-10-04 17:29:22.710531"]] + ↳ app/controllers/tasks_controller.rb:27 +  (40.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/14 +Completed 302 Found in 49ms (ActiveRecord: 42.2ms) + + +Started GET "/tasks/14" for ::1 at 2019-10-04 10:29:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 30ms (Views: 25.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 10:29:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (14.4ms) +Completed 200 OK in 59ms (Views: 51.5ms | ActiveRecord: 4.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 10:31:59 -0700 + +SyntaxError - syntax error, unexpected tSYMBEG, expecting '|' + Task.sort_by { |:name| :name.downcase } + ^ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/controllers/tasks_controller.rb:4: syntax error, unexpected '}', expecting keyword_end +...t_by { |:name| :name.downcase } +... ^ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/controllers/tasks_controller.rb:95: syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/tasks_controller.rb:4:in `' + +Started POST "/__better_errors/bbf0aaf25b7f9aae/variables" for ::1 at 2019-10-04 10:31:59 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:32:09 -0700 + +SyntaxError - syntax error, unexpected tSYMBEG, expecting '|' + @tasks = Task.sort_by { |:name| :name.downcase } + ^ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/controllers/tasks_controller.rb:3: syntax error, unexpected '}', expecting keyword_end +...t_by { |:name| :name.downcase } +... ^ +/Users/ga-youngjin/ada/classwork/week9/day1/task-list/app/controllers/tasks_controller.rb:94: syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/tasks_controller.rb:3:in `' + +Started POST "/__better_errors/293e0f2c57a951b7/variables" for ::1 at 2019-10-04 10:32:09 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:32:17 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `sort_by' for #: + app/controllers/tasks_controller.rb:3:in `index' + +Started POST "/__better_errors/1a577ad5b5a5b1dd/variables" for ::1 at 2019-10-04 10:32:17 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:32:27 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `sort_by' for #: + app/controllers/tasks_controller.rb:3:in `index' + +Started POST "/__better_errors/a6711876fdf18d1b/variables" for ::1 at 2019-10-04 10:32:27 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 10:32:33 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (14.3ms) +Completed 200 OK in 41ms (Views: 32.7ms | ActiveRecord: 3.3ms) + + +  (0.2ms) SELECT pg_try_advisory_lock(3827420325922003335) + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to ChangeCompletedDatatype (20191004174321) +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (3.0ms) ALTER TABLE "tasks" ALTER COLUMN "completed" TYPE DateTime + ↳ db/migrate/20191004174321_change_completed_datatype.rb:3 +  (0.1ms) ROLLBACK + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(3827420325922003335) + ↳ bin/rails:9 +  (0.2ms) SELECT pg_try_advisory_lock(3827420325922003335) + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to ChangeCompletedDatatype (20191004174321) +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (1.2ms) ALTER TABLE "tasks" ALTER COLUMN "completed" TYPE timestamp + ↳ db/migrate/20191004174321_change_completed_datatype.rb:3 +  (0.1ms) ROLLBACK + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(3827420325922003335) + ↳ bin/rails:9 +  (0.2ms) SELECT pg_try_advisory_lock(3827420325922003335) + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to ChangeCompletedDatatype (20191004174321) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (1.1ms) ALTER TABLE "tasks" DROP COLUMN "completed" + ↳ db/migrate/20191004174321_change_completed_datatype.rb:3 +  (0.6ms) ALTER TABLE "tasks" ADD "completed" timestamp + ↳ db/migrate/20191004174321_change_completed_datatype.rb:4 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20191004174321"]] + ↳ bin/rails:9 +  (1.4ms) COMMIT + ↳ bin/rails:9 + 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]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (0.2ms) COMMIT + ↳ bin/rails:9 +  (0.4ms) SELECT pg_advisory_unlock(3827420325922003335) + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2019-10-04 10:49:34 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (14.0ms) +Completed 200 OK in 46ms (Views: 33.0ms | ActiveRecord: 6.8ms) + + +Started GET "/tasks/4" for ::1 at 2019-10-04 10:49:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 41ms (Views: 34.5ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/4/completed" for ::1 at 2019-10-04 10:49:48 -0700 + +AbstractController::ActionNotFound - The action 'completed' could not be found for TasksController: + +Started POST "/__better_errors/5429dd3533321b9f/variables" for ::1 at 2019-10-04 10:49:48 -0700 +Started GET "/tasks/" for ::1 at 2019-10-04 10:50:21 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (17.2ms) +Completed 200 OK in 46ms (Views: 38.2ms | ActiveRecord: 3.7ms) + + +Started GET "/tasks/4" for ::1 at 2019-10-04 10:51:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 31ms (Views: 18.0ms | ActiveRecord: 3.0ms) + + +Started PATCH "/tasks/4/completed" for ::1 at 2019-10-04 10:51:19 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"F8FuYCUufjTikqwi88oLuBFdz2r0Q5ShqFpyjvvr8jAAdNQV4a4MEQ6l0eBOmaNWE4gR03M2b3DrU9WNJsbeDg==", "id"=>"4"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:85 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 17:51:19.802514"], ["updated_at", "2019-10-04 17:51:19.804529"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:85 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:85 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 10:51: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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 53ms (Views: 47.3ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 10:57:09 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.5ms) +Completed 200 OK in 50ms (Views: 38.1ms | ActiveRecord: 6.8ms) + + +Started GET "/tasks/14" for ::1 at 2019-10-04 10:57:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (3.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 61ms (Views: 24.8ms | ActiveRecord: 10.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:57:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 29ms (Views: 25.1ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 10:57:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (7.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 41ms (Views: 29.8ms | ActiveRecord: 7.6ms) + + +Started PATCH "/tasks/2/completed" for ::1 at 2019-10-04 11:00:26 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"nSITNe+nhM195qFslnyI5z5arYZQe+oP5JNSaQEH/QeKl6lAKyf26JHR3K4rLyAJPI9zP9cOEd6nmvVq3CrROQ==", "id"=>"2"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:79 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:85 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 18:00:26.519483"], ["updated_at", "2019-10-04 18:00:26.521696"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:85 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:85 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 26ms (ActiveRecord: 6.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:00:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (8.7ms) +Completed 200 OK in 36ms (Views: 31.4ms | ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:04: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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.5ms) +Completed 200 OK in 66ms (Views: 51.2ms | ActiveRecord: 4.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:11:09 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.9ms) +Completed 200 OK in 62ms (Views: 50.5ms | ActiveRecord: 6.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:11:38 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 30ms (Views: 27.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/not_completed" for ::1 at 2019-10-04 11:11:44 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"rBMeY9MrOZlP8TgBfPrNeEY2SK/gYhZdJ8VkIkUCIpO7pqQWF6tLvKPGRcPBqWWWROOWFmcX7YxkzMMhmC8OrQ==", "id"=>"2"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:98 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (1.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 18:11:44.495669"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 3.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:11:44 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 43ms (Views: 37.8ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/14/completed" for ::1 at 2019-10-04 11:11:48 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"hx49lpr+F8RIO6+c+iY8JwIIlktEGzFftYmIRTf7mRCQq4fjXn5l4aQM0l5HdZTJAN1I8sNuyo72gC9G6ta1Lg==", "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:85 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 18:11:48.269751"], ["updated_at", "2019-10-04 18:11:48.271274"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:91 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:11:48 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (9.0ms) +Completed 200 OK in 32ms (Views: 25.9ms | ActiveRecord: 2.8ms) + + +Started PATCH "/tasks/14/not_completed" for ::1 at 2019-10-04 11:11:49 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"/CpNt0PwjNuA/Fcm9DBHgGOEbh/J0JtinGvkZPJnwxnrn/fCh3D+/mzLKuRJY+9uYVGwpk6lYLPfYkNnL0rvJw==", "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:98 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 18:11:49.625483"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:11:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 37ms (Views: 32.3ms | ActiveRecord: 1.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 11:11:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (5.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 41ms (Views: 27.7ms | ActiveRecord: 5.0ms) + + +Started PATCH "/tasks/2/completed" for ::1 at 2019-10-04 11:11:57 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"lNgNcbio53LBytnIrla1asOUgdfnRAxxxGk7INSS2PqDbbcEfCiVVy39pAoTBR2EwUFfbmAx96CHYJwjCb/0xA==", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:85 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (18.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 18:11:57.506874"], ["updated_at", "2019-10-04 18:11:57.508087"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 27ms (ActiveRecord: 20.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:11:57 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 36ms (Views: 28.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/completed" for ::1 at 2019-10-04 11:18:36 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"g4/DS2XM1Q9h1ujsErKceuFqGjpWstn4x9Ss+agdLxOUOnk+oUynKo3hlS6v4TSU47/Eg9HHIimE3Qv6dTADLQ==", "id"=>"1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:85 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 18:18:36.273829"], ["updated_at", "2019-10-04 18:18:36.274594"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:18:36 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 33ms (Views: 30.4ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/1/not_completed" for ::1 at 2019-10-04 11:18:41 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"PaSa6xONhfYOqw15iFvkg8xmK3PSX/RRQWG96ntox8oqESCe1w330+KccLs1CExtzrP1ylUqD4ACaBrppkXr9A==", "id"=>"1"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:98 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 18:18:41.541254"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 4.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:18: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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (8.0ms) +Completed 200 OK in 43ms (Views: 39.4ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:23:17 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 45ms (Views: 41.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/14" for ::1 at 2019-10-04 11:23:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (7.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (309.9ms) +Completed 500 Internal Server Error in 331ms (ActiveRecord: 7.3ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde0a2ab698> +Did you mean? @task: + app/views/tasks/show.html.erb:6:in `_app_views_tasks_show_html_erb__1342810711881010015_70295778918480' + +Started POST "/__better_errors/d11372b214039f31/variables" for ::1 at 2019-10-04 11:23:22 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 11:23:30 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 36ms (Views: 31.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:24:44 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 92ms (Views: 87.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/14/edit" for ::1 at 2019-10-04 11:24:48 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"14"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.9ms) +Completed 200 OK in 64ms (Views: 28.0ms | ActiveRecord: 22.4ms) + + +Started GET "/tasks/14/edit" for ::1 at 2019-10-04 11:25:09 -0700 +Processing by TasksController#edit as HTML + Parameters: {"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:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.6ms) +Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 11:26:38 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 31ms (Views: 24.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 12:37:52 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 37ms (Views: 32.9ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/14" for ::1 at 2019-10-04 12:37:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (432.3ms) +Completed 500 Internal Server Error in 441ms (ActiveRecord: 0.5ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fde03d8e3c8> +Did you mean? @task: + app/views/tasks/show.html.erb:6:in `_app_views_tasks_show_html_erb__1342810711881010015_70295762007820' + +Started POST "/__better_errors/c9a2ae9ec54f716c/variables" for ::1 at 2019-10-04 12:37:56 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 12:38:14 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.8ms) +Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/14" for ::1 at 2019-10-04 12:38:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 37ms (Views: 28.6ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 12:38:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (31.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 74ms (Views: 35.3ms | ActiveRecord: 31.5ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-10-04 12:38:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (8.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.7ms) + Rendered tasks/edit.html.erb within layouts/application (3.9ms) +Completed 200 OK in 44ms (Views: 29.3ms | ActiveRecord: 8.6ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-04 12:38:42 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (6.0ms) + Rendered tasks/new.html.erb within layouts/application (12.2ms) +Completed 200 OK in 56ms (Views: 46.3ms | ActiveRecord: 0.0ms) + + +Started PATCH "/tasks/2/not_completed" for ::1 at 2019-10-04 12:38:48 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"SDCQ/gMBvElCHZELZuEyrGSIAOAj0p5iQbVwIl20nqtfhSqLx4HObK4q7MnbsppCZl3eWaSnZbMCvNchgJmylQ==", "id"=>"2"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:98 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 19:38:48.111735"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 12:38: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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 32ms (Views: 29.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/completed" for ::1 at 2019-10-04 12:38:49 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"Q7LD/ApF1ULTfnkSRp0ig6gCJhfqZONhYawKhg763UhUB3mJzsWnZz9JBND7zoptqtf4rm0RGLAipa2F09fxdg==", "id"=>"2"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:85 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 19:38:49.408176"], ["updated_at", "2019-10-04 19:38:49.409897"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 12:38: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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 31ms (Views: 27.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/14" for ::1 at 2019-10-04 12:40:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (6.6ms) +Completed 200 OK in 36ms (Views: 30.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 12:40:14 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (9.5ms) +Completed 200 OK in 54ms (Views: 49.4ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-04 12:40:21 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.9ms) + Rendered tasks/new.html.erb within layouts/application (9.5ms) +Completed 200 OK in 45ms (Views: 40.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/14" for ::1 at 2019-10-04 12:47:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 36ms (Views: 28.9ms | ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 12:47:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (16.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (25.9ms) +Completed 200 OK in 66ms (Views: 38.4ms | ActiveRecord: 16.5ms) + + +Started GET "/tasks/14/edit" for ::1 at 2019-10-04 12:47:21 -0700 +Processing by TasksController#edit as HTML + Parameters: {"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:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.6ms) + Rendered tasks/edit.html.erb within layouts/application (5.7ms) +Completed 200 OK in 34ms (Views: 29.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/14/edit" for ::1 at 2019-10-04 12:47:24 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"14"} + Task Load (24.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.3ms) + Rendered tasks/edit.html.erb within layouts/application (6.4ms) +Completed 200 OK in 65ms (Views: 35.0ms | ActiveRecord: 24.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 14:40: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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.1ms) +Completed 200 OK in 56ms (Views: 41.7ms | ActiveRecord: 8.4ms) + + +Started GET "/" for ::1 at 2019-10-04 14:40:47 -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"."name" ASC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (9.8ms) +Completed 200 OK in 52ms (Views: 48.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/4" for ::1 at 2019-10-04 14:40:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 63ms (Views: 26.8ms | ActiveRecord: 17.0ms) + + +Started GET "/" for ::1 at 2019-10-04 14:53:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (15.8ms) +Completed 200 OK in 53ms (Views: 35.2ms | ActiveRecord: 5.6ms) + + +Started PATCH "/tasks/13/completed" for ::1 at 2019-10-04 14:53:32 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"kiaYqYTLWXrTD7yzet51sfPi4+npVwbkhFdxdDEC1OyFkyLcQEsrXz84wXHHjd1f8Tc9UG4i/TXHXtZ37C/40g==", "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:85 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (2.2ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 21:53:32.547921"], ["updated_at", "2019-10-04 21:53:32.549569"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 4.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 14:53:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.7ms) +Completed 200 OK in 31ms (Views: 27.6ms | ActiveRecord: 1.2ms) + + +Started PATCH "/tasks/4/not_completed" for ::1 at 2019-10-04 14:53:34 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"W9asP77kz6PY6kgpVHCX6gKuJskgL+K2VzAx+dJN9nVMYxZKemS9hjTdNevpIz8EAHv4cKdaGWcUOZb6D2DaSw==", "id"=>"4"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:98 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 21:53:34.697046"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 14:53:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 36ms (Views: 32.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 14:59:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:36:in `' + +Started POST "/__better_errors/da34cfff6c66ca7d/variables" for ::1 at 2019-10-04 14:59:06 -0700 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-04 15:00:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:37:in `' + +Started POST "/__better_errors/cc182da3bf4a3e1c/variables" for ::1 at 2019-10-04 15:00:50 -0700 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-04 15:01:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (10.1ms) +Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:36:in `' + +Started POST "/__better_errors/fab3a1923880e022/variables" for ::1 at 2019-10-04 15:01:11 -0700 + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-04 15:01:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:37:in `' + +Started POST "/__better_errors/0b4deaf63a8ed42a/variables" for ::1 at 2019-10-04 15:01:30 -0700 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-04 15:01:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:35:in `' + +Started POST "/__better_errors/9bfb042b74fc7e22/variables" for ::1 at 2019-10-04 15:01:41 -0700 + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-04 15:01:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:35:in `' + +Started POST "/__better_errors/81dd9b7e78fffb1f/variables" for ::1 at 2019-10-04 15:01:50 -0700 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-04 15:02:02 -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 12ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:35:in `' + +Started POST "/__better_errors/4033c7930c8f10b4/variables" for ::1 at 2019-10-04 15:02:02 -0700 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-10-04 15:02:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 32ms (Views: 29.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/not_completed" for ::1 at 2019-10-04 15:02:44 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"Wl9spj/TTEQyfDv+D3yweFDq1yn0SYLJf1HkNI/irWpN6tbT+1M+Yd5LRjyyLxiWUj8JkHM8eRg8WEM3Us+BVA==", "id"=>"2"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:98 +  (0.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 22:02:44.586338"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:02:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 26ms (Views: 23.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:03: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (11.7ms) +Completed 200 OK in 47ms (Views: 37.8ms | ActiveRecord: 4.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:03:15 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 30ms (Views: 22.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:03:17 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (9.1ms) +Completed 200 OK in 46ms (Views: 40.9ms | ActiveRecord: 1.0ms) + + +Started PATCH "/tasks/1/completed" for ::1 at 2019-10-04 15:03:19 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"fVvULiGeOvtGPd66H08atPQFxD671ZANXFnqKd2j81Rq7m5b5R5I3qoKo3iiHLJa9tAahzyga9wfUE0qAI7fag==", "id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:85 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 22:03:19.178158"], ["updated_at", "2019-10-04 22:03:19.179538"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:03: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 26ms (Views: 22.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/not_completed" for ::1 at 2019-10-04 15:03:24 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"0tYJ10eWECeADIVP9bbRgTicX2hWeWeb8PcbV0AY+G/FY7OigxZiAmw7+I1I5XlvOkmB0dEMnEqz/rxUnTXUUQ==", "id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:98 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 22:03:24.768443"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:03:24 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 30ms (Views: 25.0ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/13/not_completed" for ::1 at 2019-10-04 15:03:35 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"NJ2oyBXNt/im3ejU7qr3VDD5M6Hyn3TD+54qZesZjdwjKBK90U3F3UrqlRZT+V+6MiztGHXqjxK4l41mNjSh4g==", "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:98 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 22:03:35.537836"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:03: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 24ms (Views: 19.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/completed" for ::1 at 2019-10-04 15:03:37 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"EPlVSIv5lQ48l2UVsKa1Jqmg4CaH/z3QJdWcpgmtSZwHTO89T3nnK9CgGNcN9R3Iq3U+nwCKxgFm3Dul1IBlog==", "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:85 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 22:03:37.339416"], ["updated_at", "2019-10-04 22:03:37.340706"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:03:37 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 29ms (Views: 25.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-04 15:03:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.7ms) + Rendered tasks/new.html.erb within layouts/application (7.0ms) +Completed 200 OK in 51ms (Views: 45.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-04 15:03:55 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"I8ZXnwI0dc6lW/i/HMEaKZV37PvvyILjoRX0s3lno+m5x7SPXsRqdO3u8X9A/0R9vZ6coAZscsYKdV3yQzI4Zw==", "task"=>{"name"=>"new task test5", "description"=>"new task test5"}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:33 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task test5"], ["description", "new task test5"], ["created_at", "2019-10-04 22:03:55.640833"], ["updated_at", "2019-10-04 22:03:55.640833"]] + ↳ app/controllers/tasks_controller.rb:33 +  (40.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:33 +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 47ms (ActiveRecord: 41.6ms) + + +Started GET "/tasks/15" for ::1 at 2019-10-04 15:03:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 29ms (Views: 25.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/15/edit" for ::1 at 2019-10-04 15:04:01 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (13.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (6.0ms) + Rendered tasks/edit.html.erb within layouts/application (11.4ms) +Completed 200 OK in 63ms (Views: 45.2ms | ActiveRecord: 13.4ms) + + +Started PATCH "/tasks/15" for ::1 at 2019-10-04 15:04:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kLycS9ukwDCvwMwAr+aZgFCkZDrato8wHmxEjUVNIPFuyCrXa1AIx9dmsnlflimoiFHPAE1qnA4Dyhx+B5s3og==", "task"=>{"name"=>"new task test5 edittttt", "description"=>"new task test5 editttt"}, "commit"=>"Save Edits", "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:52 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (1.2ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "new task test5 edittttt"], ["description", "new task test5 editttt"], ["updated_at", "2019-10-04 22:04:07.602621"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:57 +  (39.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 50ms (ActiveRecord: 42.1ms) + + +Started GET "/tasks/15" for ::1 at 2019-10-04 15:04:07 -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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:04:10 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 36ms (Views: 30.1ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/15/completed" for ::1 at 2019-10-04 15:04:12 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"uREurWHt5uc5dbj0awVla+BM6SYcip6euvUEWonMDBSupJTYpW2UwtVCxTbWVs2F4pk3n5v/ZU/5/KNZVOEgKg==", "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:85 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 22:04:12.332767"], ["updated_at", "2019-10-04 22:04:12.334274"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:04: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 29ms (Views: 24.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/15/edit" for ::1 at 2019-10-04 15:04:14 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"15"} + Task Load (16.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.1ms) + Rendered tasks/edit.html.erb within layouts/application (6.2ms) +Completed 200 OK in 57ms (Views: 30.9ms | ActiveRecord: 16.6ms) + + +Started PATCH "/tasks/15" for ::1 at 2019-10-04 15:04:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"8LABJPSq2ts0QCU9xzcjNWJCvvahapa7zpWk5Rx0E2sOxLe4RF4SLEzmW0Q3R5MdurcVzDa2hYXTM/wWXqIEOA==", "task"=>{"name"=>"new task test5 edittttt", "description"=>"new task test5 editttt"}, "commit"=>"Save Edits", "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:52 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 +  (1.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 8ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks/15" for ::1 at 2019-10-04 15:04:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 38ms (Views: 34.7ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/15/not_completed" for ::1 at 2019-10-04 15:04:20 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"b4dlVWtC9fxExo37EB0Di016rxvix6DmRprNX1w/njF4Mt8gr8KH2ajx8DmtTqtlT69xomWyWzcFk2pcgRKyDw==", "id"=>"15"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:98 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 22:04:20.701412"], ["id", 15]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:04: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 28ms (Views: 24.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/15" for ::1 at 2019-10-04 15:04:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (2.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 34ms (Views: 22.7ms | ActiveRecord: 2.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:07:04 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 36ms (Views: 30.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:07:05 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 35ms (Views: 27.1ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:07:23 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 28ms (Views: 23.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:08:18 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:09: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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 36ms (Views: 32.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/completed" for ::1 at 2019-10-04 15:15:32 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"/zzH3i0L1WhUVseZbSPLP0LLMHLgRZBc9f4XUg58BkroiX2r6YunTbhhulvQcGPRQB7uy2cwa42297BR01EqdA==", "id"=>"1"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:85 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 22:15:32.507432"], ["updated_at", "2019-10-04 22:15:32.508480"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 3.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:15:32 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 32ms (Views: 28.8ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:17:31 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 29ms (Views: 22.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:20:01 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (10.1ms) +Completed 200 OK in 34ms (Views: 24.5ms | ActiveRecord: 5.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:20:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (3.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 57ms (Views: 45.0ms | ActiveRecord: 3.8ms) + + +Started PATCH "/tasks/1/not_completed" for ::1 at 2019-10-04 15:20:04 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"ovUE0Fm0hjNQfh2XktWd7APQvkSPQvtCr9BIFIsu0cu1QL6lnTT0FrxJYFUvhjUCAQVg/Qg3AJPs2e8XVgP99Q==", "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:98 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 22:20:04.302154"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 10ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:20:04 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 27ms (Views: 22.5ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/1/completed" for ::1 at 2019-10-04 15:20:05 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"oCORgDFYXm0GINHQwcbpRJmOmrJaaHySQ/A4nmXiXdG3liv19dgsSOoXrBJ8lUGqm1tEC90dh0MA+Z+duM9x7w==", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:85 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 22:20:05.197493"], ["updated_at", "2019-10-04 22:20:05.198293"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:91 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:20:05 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.0ms) +Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:20:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (18.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (24.0ms) +Completed 200 OK in 60ms (Views: 33.5ms | ActiveRecord: 18.4ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 15:20:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 43ms (Views: 35.1ms | ActiveRecord: 0.9ms) + + +Started PATCH "/tasks/2/completed" for ::1 at 2019-10-04 15:20:32 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"LIdDLx5iqwNEKplVa/nKplWSroPno/dCxD8i6CTl7PA7Mvla2uLZJqgd5JfWqmJIV0dwOmDWDJOHNoXr+cjAzg==", "id"=>"2"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:85 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (1.7ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 22:20:32.841241"], ["updated_at", "2019-10-04 22:20:32.842624"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 10ms (ActiveRecord: 4.2ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 15:20:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 24ms (Views: 19.7ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/not_completed" for ::1 at 2019-10-04 15:20:35 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"q5/3BaMGPyP4nslQqpTJvAHulknchCwPfiStL9fM7Xi8Kk1wZ4ZNBhSptJIXx2FSAztI8Fvx1949LQosCuHBRg==", "id"=>"2"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:98 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 22:20:35.206914"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 8ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-04 15:20:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 28ms (Views: 22.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:25:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (6.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (13.1ms) +Completed 200 OK in 61ms (Views: 46.0ms | ActiveRecord: 6.6ms) + + +Started DELETE "/tasks/14" for ::1 at 2019-10-04 15:25:06 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"P/UgHMoBk8yCB1LY8CF2j4O9torLOqFjKtEheM6L/ggoQJppDoHh6W4wLxpNct5hgWhoM0xPWrJp2IZ7E6bSNg==", "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:71 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:76 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 14]] + ↳ app/controllers/tasks_controller.rb:76 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:76 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:25:06 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (7.7ms) +Completed 200 OK in 51ms (Views: 46.5ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/15" for ::1 at 2019-10-04 15:25:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (21.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 63ms (Views: 35.7ms | ActiveRecord: 21.2ms) + + +Started DELETE "/tasks/15" for ::1 at 2019-10-04 15:25:11 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"Ez8PZ/lrSkkjU1b2W4MdoYjtvoqp4BwS3QQfgH9DxMAEirUSPes4bM9kKzTm0LVPijhgMy6V58OeDbiDom7o/g==", "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:71 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:76 + Task Destroy (1.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 15]] + ↳ app/controllers/tasks_controller.rb:76 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:76 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 3.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:25: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 33ms (Views: 29.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/13/edit" for ::1 at 2019-10-04 15:25:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"13"} + Task Load (28.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.5ms) + Rendered tasks/edit.html.erb within layouts/application (8.8ms) +Completed 200 OK in 77ms (Views: 41.7ms | ActiveRecord: 28.7ms) + + +Started PATCH "/tasks/13" for ::1 at 2019-10-04 15:25:22 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jltqTgJPzvh4MwM49ERCut4Xqm7Mk4RHrd48mYM/zb70mPT1xgNxDO4i8/2oiUD2vMZC33rBggp2/4sZUFgA0g==", "task"=>{"name"=>"new task test edittt", "description"=>"new task tested editt"}, "commit"=>"Save Edits", "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:52 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "new task test edittt"], ["description", "new task tested editt"], ["updated_at", "2019-10-04 22:25:22.502066"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:57 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 52ms (ActiveRecord: 40.9ms) + + +Started GET "/tasks/13" for ::1 at 2019-10-04 15:25:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:26: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (9.9ms) +Completed 200 OK in 43ms (Views: 33.8ms | ActiveRecord: 3.9ms) + + +Started GET "/tasks/13/edit" for ::1 at 2019-10-04 15:26:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"13"} + Task Load (7.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (7.3ms) + Rendered tasks/edit.html.erb within layouts/application (9.3ms) +Completed 200 OK in 65ms (Views: 51.5ms | ActiveRecord: 7.5ms) + + +Started PATCH "/tasks/13" for ::1 at 2019-10-04 15:26:22 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7J6Gl1J6rjcrhyHQqvxBzhHpH/zwIVo4Bm2wvD1bl4+WXRgsljYRw72W0RX2MUOCczj3TUZzXHXdTAc87jxa4w==", "task"=>{"name"=>"new task test edittt2", "description"=>"new task tested editt2"}, "commit"=>"Save Edits", "id"=>"13"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:52 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "new task test edittt2"], ["description", "new task tested editt2"], ["updated_at", "2019-10-04 22:26:22.845972"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:57 +  (39.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/13/edit +Completed 302 Found in 50ms (ActiveRecord: 41.8ms) + + +Started GET "/tasks/13/edit" for ::1 at 2019-10-04 15:26:22 -0700 +Processing by TasksController#edit 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:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.1ms) + Rendered tasks/edit.html.erb within layouts/application (4.1ms) +Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13" for ::1 at 2019-10-04 15:26:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"L9mpYCJQtvGlhIIiYSAv+Lpwmz5cW0bzW45+7PpkUwY4bBMV5tDE1Emz/+Dcc4cWuKVFh9suvSIYh9nvJ0l/OA==", "task"=>{"name"=>"new task test edittt2", "description"=>"new task tested editt2"}, "commit"=>"Save Edits", "id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:52 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 +  (0.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 13ms (ActiveRecord: 3.2ms) + + +Started GET "/tasks/13" for ::1 at 2019-10-04 15:26:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 24ms (Views: 20.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/13/edit" for ::1 at 2019-10-04 15:26:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.3ms) + Rendered tasks/edit.html.erb within layouts/application (8.0ms) +Completed 200 OK in 34ms (Views: 29.7ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/13" for ::1 at 2019-10-04 15:26:45 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"enmYp93g0vF2g1ThbhbCkcFDbYJk+DumcRGpVJXxoNAAugYcGaxtBeCSpCQy28Ddo5KFM9KqPeuqMB7URpZtvA==", "task"=>{"name"=>"new task test edittt3", "description"=>"new task tested editt3"}, "commit"=>"Save Edits", "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:52 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "new task test edittt3"], ["description", "new task tested editt3"], ["updated_at", "2019-10-04 22:26:45.678550"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 11ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks/13" for ::1 at 2019-10-04 15:26:45 -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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 33ms (Views: 29.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:26: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 38ms (Views: 34.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/13/edit" for ::1 at 2019-10-04 15:26:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"13"} + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.8ms) + Rendered tasks/edit.html.erb within layouts/application (4.0ms) +Completed 200 OK in 34ms (Views: 27.5ms | ActiveRecord: 2.1ms) + + +Started PATCH "/tasks/13" for ::1 at 2019-10-04 15:26:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y9tnMLhPe5T/ixsSDx3JEgSsOs5LJem3pM8iS5xAQQEZGPmLfAPEYGma69dT0MteZn3Sf/137/p/7pXLTyeMbQ==", "task"=>{"name"=>"new task test edittt4", "description"=>"new task tested editt4"}, "commit"=>"Save Edits", "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:52 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (1.1ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "new task test edittt4"], ["description", "new task tested editt4"], ["updated_at", "2019-10-04 22:26:54.356308"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 10ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks/13" for ::1 at 2019-10-04 15:26:54 -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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 40ms (Views: 34.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:26: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (10.3ms) +Completed 200 OK in 47ms (Views: 40.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:35:23 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (11.5ms) +Completed 500 Internal Server Error in 22ms (ActiveRecord: 1.0ms) + + + +NoMethodError - undefined method `description' for nil:NilClass: + app/views/tasks/index.html.erb:13:in `block in _app_views_tasks_index_html_erb__1912350547787333982_70295778819320' + app/views/tasks/index.html.erb:9:in `_app_views_tasks_index_html_erb__1912350547787333982_70295778819320' + +Started POST "/__better_errors/3ee45da30b550acc/variables" for ::1 at 2019-10-04 15:35:24 -0700 +Started GET "/tasks" for ::1 at 2019-10-04 15:56:17 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 33ms (Views: 28.3ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-04 15:56: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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 30ms (Views: 22.6ms | ActiveRecord: 3.4ms) + + +Started PATCH "/tasks/1/not_completed" for ::1 at 2019-10-04 15:56:25 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"36V+EmCKb5wMLapfG5tYfHuKw/2VQ07HkUvOqFKbRuTIEMRnpAodueAa152myPCSeV8dRBI2tRbSQmmrj7Zq2g==", "id"=>"1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:98 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:104 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 22:56:25.856346"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:104 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:104 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:56: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 48ms (Views: 44.8ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/4/completed" for ::1 at 2019-10-04 15:56:31 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"cFO2qDQnj/oHOhaWVIRujc/Juwsg9vVI0NSdJahPLBNn5gzd8Kf93+sNa1Tp18ZjzRxlsqeDDpmT3TomdWIALQ==", "id"=>"4"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:85 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 22:56:31.170991"], ["updated_at", "2019-10-04 22:56:31.172648"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:91 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:56:31 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 30ms (Views: 26.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-04 15:57:05 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (12.5ms) +Completed 200 OK in 43ms (Views: 31.5ms | ActiveRecord: 6.8ms) + + +Started GET "/tasks" for ::1 at 2019-10-08 22:40:23 -0700 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (61.3ms) +Completed 200 OK in 327ms (Views: 262.6ms | ActiveRecord: 49.6ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-08 22:40:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (13.3ms) + Rendered tasks/new.html.erb within layouts/application (16.0ms) +Completed 200 OK in 42ms (Views: 37.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-08 22:40:55 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0g1Y7U1TUeIkfqYbIO/9fpYgJcaL/arG2ljKsRkLBVBIDLv9EaNOWGzLr9t80aMqvslVnWJZWuNxOGPwI16e3g==", "task"=>{"name"=>"send bryan a test", "description"=>"\"good morning\""}, "commit"=>"Create New Task"} +  (0.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "send bryan a test"], ["description", "\"good morning\""], ["created_at", "2019-10-09 05:40:55.139286"], ["updated_at", "2019-10-09 05:40:55.139286"]] + ↳ app/controllers/tasks_controller.rb:27 +  (112.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/18 +Completed 302 Found in 120ms (ActiveRecord: 113.7ms) + + +Started GET "/tasks/18" for ::1 at 2019-10-08 22:40:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 27ms (Views: 21.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-08 22:40:58 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (10.5ms) +Completed 200 OK in 40ms (Views: 37.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/18/edit" for ::1 at 2019-10-08 22:41:02 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"18"} + Task Load (4.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:37 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.9ms) + Rendered tasks/edit.html.erb within layouts/application (3.7ms) +Completed 200 OK in 41ms (Views: 28.2ms | ActiveRecord: 4.8ms) + + +Started PATCH "/tasks/18" for ::1 at 2019-10-08 22:41:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"LeJPgfDvxxd0/EunUKIhUjCK9hPtw11/Ql265CaSc7Vp9SUzEJYFo7Yp5MxSV8+2PwdhVkcP3vLFrmYNR7eVQQ==", "task"=>{"name"=>"send bryan a test", "description"=>"\"good night\""}, "commit"=>"Save Edits", "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:46 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:51 + Task Update (0.4ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "\"good night\""], ["updated_at", "2019-10-09 05:41:08.186539"], ["id", 18]] + ↳ app/controllers/tasks_controller.rb:51 +  (39.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:51 +Redirected to http://localhost:3000/tasks/18 +Completed 302 Found in 50ms (ActiveRecord: 41.0ms) + + +Started GET "/tasks/18" for ::1 at 2019-10-08 22:41:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 38ms (Views: 32.4ms | ActiveRecord: 0.9ms) + + +Started PATCH "/tasks/18/completed" for ::1 at 2019-10-08 22:41:11 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"vT1HrY3LFtjLVBWadNUiKYk3uUbOQvE3nrzeeiNxK9uqiP3YSUtk/SdjaFjJhorHi+Jn/0k3CubdtXl5/lwH5Q==", "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:75 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:81 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-09 05:41:11.940873"], ["updated_at", "2019-10-09 05:41:11.942310"], ["id", 18]] + ↳ app/controllers/tasks_controller.rb:81 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:81 +Redirected to http://localhost:3000/tasks/18 +Completed 302 Found in 9ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks/18" for ::1 at 2019-10-08 22:41:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 25ms (Views: 21.1ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/18/not_completed" for ::1 at 2019-10-08 22:41:16 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"+Rw3nm4ILOiogPtwR9LMlnNL1j24P3O4JYaWg7XIy/HuqY3rqohezUS3hrL6gWR4cZ4IhD9KiGlmjzGAaOXnzw==", "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:88 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:94 + Task Update (0.8ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-09 05:41:16.154502"], ["id", 18]] + ↳ app/controllers/tasks_controller.rb:94 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:94 +Redirected to http://localhost:3000/tasks/18 +Completed 302 Found in 8ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks/18" for ::1 at 2019-10-08 22:41:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 27ms (Views: 24.3ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks/18" for ::1 at 2019-10-08 22:41:21 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"/+3F5U3QXdhJlSXGHLMb2PeghkuAikzhQm2M+B3VxD3oWH+QiVAv/aWiWASh4LM29XVY8gf/tzABZCv7wPjoAw==", "id"=>"18"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:61 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:66 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 18]] + ↳ app/controllers/tasks_controller.rb:66 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:66 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-08 22:41:21 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 29ms (Views: 25.1ms | ActiveRecord: 1.3ms) + + +Started GET "/" for ::1 at 2019-10-09 22:43:36 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (31.0ms) +Completed 200 OK in 254ms (Views: 229.7ms | ActiveRecord: 7.6ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-09 22:43:38 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 42ms (Views: 29.2ms | ActiveRecord: 3.8ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-10-09 22:43:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (4.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:37 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (11.1ms) + Rendered tasks/edit.html.erb within layouts/application (15.6ms) +Completed 200 OK in 49ms (Views: 37.7ms | ActiveRecord: 4.9ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-10-09 22:43:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Q8WeDWWd3Hx7aX3nG1SV4ELVMhAgv5Qu3/ws0WMUEf1zNHgBDMV9NXGBFQvaqh095KjX+r0C+ysalPQD2BCiqg==", "task"=>{"name"=>"mail package", "description"=>"send to Bryan"}, "commit"=>"Save Edits", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:46 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:51 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:51 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-09 22:43:42 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 57ms (Views: 54.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-09 22:43:46 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 39ms (Views: 32.9ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-09 22:43:47 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.0ms) + Rendered tasks/new.html.erb within layouts/application (6.4ms) +Completed 200 OK in 39ms (Views: 33.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-09 22:43:52 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BWCVuQLWa3J/yT7AYNWonJNYXT3n59fMOUHWBXP2aIifYXapXiZ0yDd8NwA86/bIu7EtZg5DJ+mSIX9ESaPzBg==", "task"=>{"name"=>"new task test", "description"=>"new task test"}, "commit"=>"Create New Task"} +  (0.9ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task test"], ["description", "new task test"], ["created_at", "2019-10-10 05:43:52.034946"], ["updated_at", "2019-10-10 05:43:52.034946"]] + ↳ app/controllers/tasks_controller.rb:27 +  (0.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/19 +Completed 302 Found in 10ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks/19" for ::1 at 2019-10-09 22:43:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"19"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 19], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 38ms (Views: 35.0ms | ActiveRecord: 0.3ms) + + +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/tasks" for ::1 at 2019-10-10 10:03:16 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (27.2ms) +Completed 200 OK in 225ms (Views: 207.0ms | ActiveRecord: 6.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-10 10:03: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 27ms (Views: 24.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:17:55 -0700 +  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/ga-youngjin/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/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 (40.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (56.4ms) +Completed 200 OK in 342ms (Views: 239.4ms | ActiveRecord: 88.1ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:17:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (13.6ms) + Rendered tasks/new.html.erb within layouts/application (16.7ms) +Completed 200 OK in 42ms (Views: 39.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:18:10 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.5ms) + Rendered tasks/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 34ms (Views: 30.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:18:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.5ms) + Rendered tasks/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 31ms (Views: 27.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:18:15 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.1ms) + Rendered tasks/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 30ms (Views: 24.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-15 13:18:17 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 80ms (Views: 17.7ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/1/completed" for ::1 at 2019-10-15 13:18:19 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"authenticity_token"=>"oMVH1Ggg/HTA0UPGu5OyZLCsUh10EiuD0gvUKKsjA363cP2hrKCOUSzmPgQGwBqKsnmMpPNn0FKRAnMrdg4vQA==", "id"=>"1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:77 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:83 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-15 20:18:19.809555"], ["updated_at", "2019-10-15 20:18:19.811328"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:83 +  (40.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:83 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 48ms (ActiveRecord: 41.8ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-15 13:18:19 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 28ms (Views: 24.3ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/1/not_completed" for ::1 at 2019-10-15 13:18:20 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"authenticity_token"=>"nPxEA9TNHRkTcJjUuXcD5aJVZVR3EoTm4leFOEaOuTSLSf52EE1vPP9H5RYEJKsLoIC77fBnfzehXiI7m6OVCg==", "id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:90 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:96 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-15 20:18:20.946971"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:96 +  (2.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:96 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 9ms (ActiveRecord: 4.0ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-15 13:18:20 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 55ms (Views: 52.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:18: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 44ms (Views: 33.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:18:23 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.9ms) + Rendered tasks/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 30ms (Views: 24.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:18:24 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jxsdGbEJu5HybdQLbckETmvHCDtubAl6KC61gk36VmsVGv4J7fmkK7rY3csx91oaQy54YIfI+V+DThzDd6/N5Q==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (14.0ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (3.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", ""], ["description", ""], ["created_at", "2019-10-15 20:18:24.866014"], ["updated_at", "2019-10-15 20:18:24.866014"]] + ↳ app/controllers/tasks_controller.rb:27 +  (1.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/20 +Completed 302 Found in 27ms (ActiveRecord: 19.1ms) + + +Started GET "/tasks/20" for ::1 at 2019-10-15 13:18:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"20"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 20], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 43ms (Views: 39.0ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/20" for ::1 at 2019-10-15 13:18:34 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"xFyjg8M/NrSuqyZ2HgoQIC8B+m0lXx8xgn+4cx2IezbT6Rn2B79EkUKcW7SjWbjOLdQk1KIq5ODBdh9wwKVXCA==", "id"=>"20"} + Task Load (7.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 20], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:63 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:68 + Task Destroy (9.1ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 20]] + ↳ app/controllers/tasks_controller.rb:68 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:68 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 27ms (ActiveRecord: 17.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:18:34 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 38ms (Views: 34.2ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:19:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.8ms) + Rendered tasks/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 34ms (Views: 30.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:19:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.2ms) + Rendered tasks/new.html.erb within layouts/application (4.4ms) +Completed 200 OK in 44ms (Views: 28.3ms | ActiveRecord: 4.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:19:40 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"RXkTEdHlls1VVtnxPvhluU8x7vzDb5ILxb+6pU5INxLfePABjRWJdx3j0DFixjvtZ9iepyrLYi5u3xPkdB2snA==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.4ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.7ms) + Rendered tasks/new.html.erb within layouts/application (6.1ms) +Completed 200 OK in 43ms (Views: 35.8ms | ActiveRecord: 0.6ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:19:42 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"X+lGg6tENnXeDQ30fkbC84PzJLJByz90ii6zgEeydSpIXPz2b8REUDI6cDbDFWodgSb6C8a+xKXJJxSDmp9ZFA==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.9ms) + Rendered tasks/new.html.erb within layouts/application (4.1ms) +Completed 200 OK in 56ms (Views: 51.5ms | ActiveRecord: 0.5ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:20:14 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"U9kP/Fpy2NAMZXYCtm0sAKS04ltgUpTB6NNZcD3gQWdEbLWJnvKq9eBSC8ALPoTupmE84ucnbxCr2v5z4M1tWQ==", "task"=>{"name"=>"sadf", "description"=>""}, "commit"=>"Create New Task"} +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (2.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sadf"], ["description", ""], ["created_at", "2019-10-15 20:20:14.516301"], ["updated_at", "2019-10-15 20:20:14.516301"]] + ↳ app/controllers/tasks_controller.rb:27 +  (0.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/21 +Completed 302 Found in 9ms (ActiveRecord: 3.5ms) + + +Started GET "/tasks/21" for ::1 at 2019-10-15 13:20:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"21"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 21], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 34ms (Views: 30.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/21/edit" for ::1 at 2019-10-15 13:20:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"21"} + Task Load (3.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 21], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:38 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.6ms) + Rendered tasks/edit.html.erb within layouts/application (3.2ms) +Completed 200 OK in 35ms (Views: 22.7ms | ActiveRecord: 3.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:20:29 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 29ms (Views: 25.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:21: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 31ms (Views: 28.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:21: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 34ms (Views: 31.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:21:37 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.8ms) + Rendered tasks/new.html.erb within layouts/application (5.5ms) +Completed 200 OK in 37ms (Views: 29.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:21:40 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"tQmX7JKmO26ehDPqFnbwzfSzO0A5ifHf5jk/4H/SkIkvCHT8zlYk1NYxOipKSK6Z3FpLG9AtAfpNWZahRYcLBw==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.3ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.8ms) + Rendered tasks/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 36ms (Views: 29.4ms | ActiveRecord: 0.6ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:21:42 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ArwmGcXJ3QEJV2QB3QGZlBIUVEx3T+9BVeiLwQrk68AVCZxsAUmvJOVgGcNgUjF6EMGK9fA6FJAW4SzC18nH/g==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.5ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.8ms) + Rendered tasks/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 39ms (Views: 30.5ms | ActiveRecord: 0.8ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:21:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"E8p88vd0AAE4yW2NYp04rHM+RyaB16426/o21FhWe60Ef8aHM/RyJNT+EE/fzpBCceuZnwaiVeeo85HXhXtXkw==", "task"=>{"name"=>"adf", "description"=>""}, "commit"=>"Create New Task"} +  (0.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "adf"], ["description", ""], ["created_at", "2019-10-15 20:21:43.993729"], ["updated_at", "2019-10-15 20:21:43.993729"]] + ↳ app/controllers/tasks_controller.rb:27 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/22 +Completed 302 Found in 47ms (ActiveRecord: 42.1ms) + + +Started GET "/tasks/22" for ::1 at 2019-10-15 13:21:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"22"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 22], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks/22" for ::1 at 2019-10-15 13:21:48 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"JLW+uEUFtPoEhHOQ7FgqdPnn7LUMXBVv01Di/dsPtiMzAATNgYXG3+izDlJRC4Ka+zIyDIsp7r6QWUX+BiKaHQ==", "id"=>"22"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 22], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:63 +  (0.9ms) BEGIN + ↳ app/controllers/tasks_controller.rb:68 + Task Destroy (1.9ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 22]] + ↳ app/controllers/tasks_controller.rb:68 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:68 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 4.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:21: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 33ms (Views: 28.6ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/21" for ::1 at 2019-10-15 13:21:51 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"rIfqextavT47UdRW8xdv349gesajx9HII/Kj38E6HEO7MlAO39rPG9dmqZRORMcxjbWkfySyKhlg+wTcHBcwfQ==", "id"=>"21"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 21], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:63 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:68 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 21]] + ↳ app/controllers/tasks_controller.rb:68 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:68 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:21: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 38ms (Views: 31.5ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/19/edit" for ::1 at 2019-10-15 13:21:53 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"19"} + Task Load (7.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 19], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:38 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.4ms) + Rendered tasks/edit.html.erb within layouts/application (4.9ms) +Completed 200 OK in 37ms (Views: 26.0ms | ActiveRecord: 7.4ms) + + +Started PATCH "/tasks/19" for ::1 at 2019-10-15 13:21:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"T4MitXPkalHXAuevvkkSzwTKXjZTDBdiqCB+hOxHVRzj6eFgt/7yY7ZauFvF7MAUjXsUW5BAnqpK2dWS3KHH0w==", "task"=>{"name"=>"new task test edit", "description"=>"new task test"}, "commit"=>"Save Edits", "id"=>"19"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 19], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:47 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:52 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["name", "new task test edit"], ["updated_at", "2019-10-15 20:21:56.682093"], ["id", 19]] + ↳ app/controllers/tasks_controller.rb:52 +  (0.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:52 +Redirected to http://localhost:3000/tasks/19 +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) + + +Started GET "/tasks/19" for ::1 at 2019-10-15 13:21:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"19"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 19], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 30ms (Views: 25.6ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:22:00 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 35ms (Views: 31.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/2" for ::1 at 2019-10-15 13:23:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 31ms (Views: 17.8ms | ActiveRecord: 3.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:23: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 29ms (Views: 25.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:23:05 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.7ms) + Rendered tasks/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 36ms (Views: 30.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:23:06 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VdOcDWCWGPxkvQ97SVljL2tyV41guEyeQWSW+8aFxT3P0n8dPGYHRiwIBrsVZz17Q5sn1okcvLvqBD+6/NBesw==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (13.3ms) + Rendered tasks/new.html.erb within layouts/application (15.6ms) +Completed 200 OK in 39ms (Views: 34.1ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:23:09 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"UriP9Pa+q11MPjIuz5YT86FN3kJUarOITwWGRHOf6YxFDTWBMj7ZeKAJT+xyxbsdo5gA+9MfSFkMDCFHrrLFsg==", "task"=>{"name"=>"adsf", "description"=>""}, "commit"=>"Create New Task"} +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "adsf"], ["description", ""], ["created_at", "2019-10-15 20:23:09.462569"], ["updated_at", "2019-10-15 20:23:09.462569"]] + ↳ app/controllers/tasks_controller.rb:27 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/23 +Completed 302 Found in 46ms (ActiveRecord: 40.8ms) + + +Started GET "/tasks/23" for ::1 at 2019-10-15 13:23:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"23"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 23], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 27ms (Views: 22.0ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks/23" for ::1 at 2019-10-15 13:23:12 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"3yHCAFvcP9WclNzoOEvxzB4D6otPFTDwiDYtr5ZKSw3IlHh1n1xN8HCjoSqFGFkiHNY0MshgyyHLP4qsS2dnMw==", "id"=>"23"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 23], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:64 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:69 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 23]] + ↳ app/controllers/tasks_controller.rb:69 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:69 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 46ms (ActiveRecord: 41.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:23:12 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-10-15 13:23: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]] + ↳ app/controllers/tasks_controller.rb:39 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.2ms) + Rendered tasks/edit.html.erb within layouts/application (4.3ms) +Completed 200 OK in 39ms (Views: 22.8ms | ActiveRecord: 3.9ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-10-15 13:23:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"5oB63fOw9RKELFZXWCCumWI8VQmHOI8RnvkL/XKY07vWcZzRmuhUW47EPruZ3iZExEGw4xqF4BRbkdMvyZxg7A==", "task"=>{"name"=>"mail package edit", "description"=>"send to Bryan"}, "commit"=>"Save Edits", "id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:48 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:53 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["name", "mail package edit"], ["updated_at", "2019-10-15 20:23:44.664001"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:53 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 9ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-15 13:23:44 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 40ms (Views: 34.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-10-15 13:23:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:39 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.6ms) + Rendered tasks/edit.html.erb within layouts/application (3.9ms) +Completed 200 OK in 39ms (Views: 31.4ms | ActiveRecord: 2.0ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-10-15 13:23:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"O/MQdy3AtzF87acgbaS6xdUg03PQXK3xO0Yyrmizr1ELAvZ7RJgWeHYFz8ysWjIYc102mU3hwvT+Lup807ccBg==", "task"=>{"name"=>"mail package ", "description"=>"send to Bryan"}, "commit"=>"Save Edits", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:48 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:53 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["name", "mail package "], ["updated_at", "2019-10-15 20:23:54.268887"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:53 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 8ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks/1" for ::1 at 2019-10-15 13:23:54 -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]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 34ms (Views: 30.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:23: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 43ms (Views: 37.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:24:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.9ms) + Rendered tasks/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 36ms (Views: 22.0ms | ActiveRecord: 3.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:24:07 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gMevuvn6U9i9TLauRqiKsOimVCO/yU4+4JC+OqaH/Z4axkyqpQpMYvX5v24altTkwE8keFZtvhtL8Bd7nNJmEA==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.3ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.1ms) + Rendered tasks/new.html.erb within layouts/application (5.2ms) +Completed 200 OK in 39ms (Views: 31.8ms | ActiveRecord: 0.5ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:24:13 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6AjiunN1uKAfR5PPbTU+qUHu5/+gqFyHbp+KdQ3P4Qr/vVjPt/XKhfNw7g3QZpZHQzs5Rifdp1Ytli120OLNNA==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.3ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.3ms) + Rendered tasks/new.html.erb within layouts/application (7.6ms) +Completed 200 OK in 35ms (Views: 30.5ms | ActiveRecord: 0.5ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:24:14 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"44/PEiufm5R6yxvve+3xy9kcECLhA1BxasttzxDWhTv0OnVn7x/psZb8Zi3Gvlkl28nOm2Z2q6ApwsrMzfupBQ==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.3ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.4ms) + Rendered tasks/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 36ms (Views: 30.2ms | ActiveRecord: 0.9ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:24:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"z8sS2B7iJLMttYMEXA5yhTAAsF1NvxmyBzdjLdLTK+7Yfqit2mJWlsGC/sbhXdprMtVu5MrK4mNEPsQuD/4H0A==", "task"=>{"name"=>"asd", "description"=>""}, "commit"=>"Create New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asd"], ["description", ""], ["created_at", "2019-10-15 20:24:16.331691"], ["updated_at", "2019-10-15 20:24:16.331691"]] + ↳ app/controllers/tasks_controller.rb:27 +  (40.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/24 +Completed 302 Found in 49ms (ActiveRecord: 41.6ms) + + +Started GET "/tasks/24" for ::1 at 2019-10-15 13:24:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"24"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 24], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 26ms (Views: 23.1ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks/24" for ::1 at 2019-10-15 13:24:19 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"NwXwZsD0SGqAkbWlps91OlgmIJdyhZJH0aoyfWefiwMgsEoTBHQ6T2ymyGcbnN3UWvP+LvXwaZaSo5V+urKnPQ==", "id"=>"24"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 24], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (2.9ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 24]] + ↳ app/controllers/tasks_controller.rb:70 +  (2.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 14ms (ActiveRecord: 5.4ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:24:19 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (7.7ms) +Completed 200 OK in 39ms (Views: 31.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:24:20 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.6ms) + Rendered tasks/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:24:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"nHXKQ7bzZ7dbC+r5FguuKO9sYwIIA7wSMHOODFEQig4GdClT6gN4DRO+4zlKNfB8x4UTWeGnTDebEydNa0URgA==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.1ms) + Rendered tasks/new.html.erb within layouts/application (4.2ms) +Completed 200 OK in 35ms (Views: 29.2ms | ActiveRecord: 0.4ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:24:30 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KvLmA4RlKyyVya7l3tHXShL2mdQWeCznxJH9nOvfDUM9R1x2QOVZCXn+0ydjgn+kECNHbZEN1zaHmFqfNvIhfQ==", "task"=>{"name"=>"", "description"=>"adf"}, "commit"=>"Create New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.6ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.0ms) + Rendered tasks/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 33ms (Views: 26.0ms | ActiveRecord: 0.9ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:24:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/F6D/LjWwsftocKBhnHSn11LIiQFsTZAjchWgxdOUv3r6zmJfFaw4gGWv0M7InpxX578nYLEzZHOwfGAymN+ww==", "task"=>{"name"=>"", "description"=>"adf"}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.2ms) + Rendered tasks/new.html.erb within layouts/application (5.5ms) +Completed 200 OK in 36ms (Views: 31.1ms | ActiveRecord: 0.5ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:24:34 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1dQJU+xicYdAv8AjcC9pJPbD9KTCiKrN/FW9A9RhanHCYbMmKOIDoqyIveHNfMHK9BYqHUX9URy/XBoACUxGTw==", "task"=>{"name"=>"asdf", "description"=>"adf"}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asdf"], ["description", "adf"], ["created_at", "2019-10-15 20:24:34.890950"], ["updated_at", "2019-10-15 20:24:34.890950"]] + ↳ app/controllers/tasks_controller.rb:27 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/25 +Completed 302 Found in 46ms (ActiveRecord: 40.5ms) + + +Started GET "/tasks/25" for ::1 at 2019-10-15 13:24:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"25"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 25], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 0.2ms) + + +Started DELETE "/tasks/25" for ::1 at 2019-10-15 13:24:37 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"eO1WING7eF4lVR+K7LP3+M+uSHuZEM9pdHNX9OtB42tvWOxVFTsKe8liYkhR4F8WzXuWwh5lNLg3evD3NmzPVQ==", "id"=>"25"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 25], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 25]] + ↳ app/controllers/tasks_controller.rb:70 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.9ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:24: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 28ms (Views: 24.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:24:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.5ms) + Rendered tasks/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 33ms (Views: 27.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:24:40 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"M6ZNNIcqQTrh3x5gDxiuxTbdq3w64He74M/LnM5vb+upp64k29pegKlqF6BTJvCRHjTbJ9NEh55Lr2Ld9Dr0ZQ==", "task"=>{"name"=>"", "description"=>"adf"}, "commit"=>"Create New Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.1ms) + Rendered tasks/new.html.erb within layouts/application (7.2ms) +Completed 200 OK in 36ms (Views: 30.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:24:45 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 38ms (Views: 28.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:31:42 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.8ms) + Rendered tasks/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 56ms (Views: 39.9ms | ActiveRecord: 5.2ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:31:42 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.8ms) + Rendered tasks/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 37ms (Views: 33.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:31:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"g2AfO3QakGoHzUfrUBvQIe+6XsQ4cWCjmvd3JkxYl62U1aVOsJriT+v6OintSHjP7W+Afb8Em3LZ/tAlkXW7kw==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.7ms) + Rendered tasks/new.html.erb within layouts/application (8.3ms) +Completed 200 OK in 35ms (Views: 30.8ms | ActiveRecord: 0.4ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:31:46 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pvZ9dJL4BNoLsDSkdjP2uCt5bkOVwMsZsduisHH/owSxQ8cBVnh2/+eHSWbLYF5WKayw+hK1MMjy0gWzrNKPOg==", "task"=>{"name"=>"adsf", "description"=>""}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "adsf"], ["description", ""], ["created_at", "2019-10-15 20:31:46.589991"], ["updated_at", "2019-10-15 20:31:46.589991"]] + ↳ app/controllers/tasks_controller.rb:27 +  (40.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/26 +Completed 302 Found in 48ms (ActiveRecord: 41.4ms) + + +Started GET "/tasks/26" for ::1 at 2019-10-15 13:31:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"26"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 26], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 23ms (Views: 19.2ms | ActiveRecord: 0.5ms) + + +Started DELETE "/tasks/26" for ::1 at 2019-10-15 13:31:51 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"mq9Hm1TITlUXgtE2XFEsWikeEzrmgMtSzfH80fn90NeNGv3ukEg8cPu1rPThAoS0K8vNg2H1MIOO+FvSJND86Q==", "id"=>"26"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 26], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (1.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 26]] + ↳ app/controllers/tasks_controller.rb:70 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 3.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:31: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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 30ms (Views: 27.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2019-10-15 13:31:57 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.9ms) + Rendered tasks/new.html.erb within layouts/application (5.2ms) +Completed 200 OK in 38ms (Views: 32.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:31:59 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZPBK28qyRdwy3b6bRTpJ0UFzNC5ndGLGIAyj7Q3OLmX+8anLlkJaZnpot1sZBBeFaZpEdY7QkuOLbAqsN5u16w==", "task"=>{"name"=>"", "description"=>""}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:27 + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.4ms) + Rendered tasks/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 43ms (Views: 38.3ms | ActiveRecord: 0.5ms) + + +Started POST "/tasks" for ::1 at 2019-10-15 13:32:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"y3i2NhsRPEZ5o1XjTkJbTLJkZ2m8PS7XQePfLnJLFH3czQxD35FOY5WUKCHzEfOisLG50DtI1QYC6ngtr2Y4Qw==", "task"=>{"name"=>"adsf", "description"=>""}, "commit"=>"Create New Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:27 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "adsf"], ["description", ""], ["created_at", "2019-10-15 20:32:00.805832"], ["updated_at", "2019-10-15 20:32:00.805832"]] + ↳ app/controllers/tasks_controller.rb:27 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:27 +Redirected to http://localhost:3000/tasks/27 +Completed 302 Found in 8ms (ActiveRecord: 1.1ms) + + +Started GET "/tasks/27" for ::1 at 2019-10-15 13:32:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"27"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 27], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 27ms (Views: 23.7ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/27" for ::1 at 2019-10-15 13:32:04 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"ngKsnlAvzGoeoXVw/1JcWTDnJ6DsV4Jrhs+HJXIDFi2JtxbrlK++T/KWCLJCAfS3MjL5GWsiebrFxiAmry46Ew==", "id"=>"27"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 27], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 27]] + ↳ app/controllers/tasks_controller.rb:70 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 3.6ms) + + +Started GET "/tasks" for ::1 at 2019-10-15 13:32:04 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:9 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 30ms (Views: 26.5ms | ActiveRecord: 0.4ms) + + diff --git a/log/test.log b/log/test.log new file mode 100644 index 000000000..9d3b84698 --- /dev/null +++ b/log/test.log @@ -0,0 +1,12051 @@ +  (202.1ms) DROP DATABASE IF EXISTS "task-list_test" +  (434.9ms) CREATE DATABASE "task-list_test" ENCODING = 'unicode' +  (239.7ms) DROP DATABASE IF EXISTS "task-list_test" +  (458.2ms) CREATE DATABASE "task-list_test" ENCODING = 'unicode' +  (1.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) 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.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 +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (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-09-30 13:33:48 -0700 +Processing by TasksController#index as HTML +Completed 406 Not Acceptable in 100ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (203.3ms) DROP DATABASE IF EXISTS "task-list_test" +  (451.1ms) CREATE DATABASE "task-list_test" ENCODING = 'unicode' +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-09-30 13:35:07 -0700 +Processing by TasksController#index as HTML +Completed 406 Not Acceptable in 95ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) 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 +--------------------------------------------------------- +  (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 +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) ROLLBACK +  (206.4ms) DROP DATABASE IF EXISTS "task-list_test" +  (456.4ms) CREATE DATABASE "task-list_test" ENCODING = 'unicode' +  (0.3ms) 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.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-09-30 14:07:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 312ms (Views: 303.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.5ms) ROLLBACK +  (186.6ms) DROP DATABASE IF EXISTS "task-list_test" +  (435.0ms) CREATE DATABASE "task-list_test" ENCODING = 'unicode' +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-09-30 15:19:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 167ms (Views: 156.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) 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.6ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (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 +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) 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 +  (203.7ms) DROP DATABASE IF EXISTS "task-list_test" +  (549.4ms) CREATE DATABASE "task-list_test" ENCODING = 'unicode' + SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.2ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (6.0ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" time, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20191001204013) +  (2.2ms) 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.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) 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-10-01 20:59:29.950801"], ["updated_at", "2019-10-01 20:59:29.950801"]] +  (0.5ms) 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.1ms) BEGIN +  (0.1ms) COMMIT +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (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.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update 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-10-01 13:59:30 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 13:59:30 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) 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.1ms) 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 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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::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 +  (0.1ms) 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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (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-10-01 14:00:19 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.1ms) ROLLBACK +  (0.1ms) 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.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (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-10-01 14:00:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms) +  (0.1ms) 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 +  (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.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-01 14:01:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.5ms) 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.1ms) 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.1ms) 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.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) 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 +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) 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.1ms) ROLLBACK +  (0.1ms) 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.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (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-10-01 14:02:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 216ms (Views: 206.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) 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.1ms) ROLLBACK +  (0.1ms) 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.1ms) ROLLBACK +  (0.1ms) 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.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new 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-10-01 14:02:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 150ms (Views: 142.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 14:02:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.1ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-01 14:11:08 -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 200 OK in 143ms (Views: 135.4ms | 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-10-01 14:11:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.2ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) 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.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) 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 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) 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 +  (0.1ms) 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.1ms) 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.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 14:53:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 153ms (Views: 141.4ms | ActiveRecord: 2.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-10-01 14:53:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) 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.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 14:55:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 150ms (Views: 139.0ms | ActiveRecord: 1.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-10-01 14:55:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new 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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) 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 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:04:09.961631"], ["created_at", "2019-10-01 22:04:10.017178"], ["updated_at", "2019-10-01 22:04:10.017178"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new 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 +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) 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.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-01 15:04:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 150ms (Views: 140.9ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 15:04:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 15:09:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 144ms (Views: 133.2ms | ActiveRecord: 1.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-10-01 15: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" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new 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.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:09:05.075265"], ["created_at", "2019-10-01 22:09:05.083834"], ["updated_at", "2019-10-01 22:09:05.083834"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.2" for 127.0.0.1 at 2019-10-01 15:09:05 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 35ms (Views: 10.2ms | ActiveRecord: 0.5ms) +  (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-10-01 15:09:05 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (21.1ms) +Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.3ms) +  (0.1ms) 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 +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (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.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:15:33.265463"], ["created_at", "2019-10-01 22:15:33.274503"], ["updated_at", "2019-10-01 22:15:33.274503"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.3" for 127.0.0.1 at 2019-10-01 15:15:33 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 230ms (Views: 203.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-10-01 15:15:33 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) 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 +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 15:15:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (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-10-01 15:15:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) 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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks.-1" for 127.0.0.1 at 2019-10-01 15:17:41 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 168ms (Views: 141.1ms | ActiveRecord: 1.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.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:17:41.827076"], ["created_at", "2019-10-01 22:17:41.834735"], ["updated_at", "2019-10-01 22:17:41.834735"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.4" for 127.0.0.1 at 2019-10-01 15:17:41 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (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::update: test_0001_can update 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-10-01 15:17:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 15:17:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) 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.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-01 15:19:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 150ms (Views: 140.0ms | ActiveRecord: 1.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-10-01 15:19:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:19:20.445092"], ["created_at", "2019-10-01 22:19:20.453416"], ["updated_at", "2019-10-01 22:19:20.453416"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.5" for 127.0.0.1 at 2019-10-01 15:19:20 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 24ms (Views: 4.1ms | 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-10-01 15:19:20 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 23ms (Views: 20.8ms | ActiveRecord: 1.3ms) +  (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 +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) 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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.3ms) ROLLBACK +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:28:23.565807"], ["created_at", "2019-10-01 22:28:23.576169"], ["updated_at", "2019-10-01 22:28:23.576169"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.6" for 127.0.0.1 at 2019-10-01 15:28:23 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 238ms (Views: 209.8ms | 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-10-01 15:28:23 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 15:28:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) +  (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-10-01 15:28:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new 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::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-01 15:29:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 163ms (Views: 151.8ms | ActiveRecord: 1.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-10-01 15:29:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.3ms) +  (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 +  (0.1ms) 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.3ms) 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 +------------------------------------------------------------------ +Started GET "/tasks.-1" for 127.0.0.1 at 2019-10-01 15:29:40 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 25ms (Views: 4.0ms | 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:29:40.064395"], ["created_at", "2019-10-01 22:29:40.076273"], ["updated_at", "2019-10-01 22:29:40.076273"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.7" for 127.0.0.1 at 2019-10-01 15:29:40 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:32:16.931372"], ["created_at", "2019-10-01 22:32:16.941600"], ["updated_at", "2019-10-01 22:32:16.941600"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.8" for 127.0.0.1 at 2019-10-01 15:32:16 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 240ms (Views: 211.8ms | 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-10-01 15:32:17 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (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-10-01 15:32:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 15:32:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (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 +  (0.1ms) 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.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:33:33.018967"], ["created_at", "2019-10-01 22:33:33.029316"], ["updated_at", "2019-10-01 22:33:33.029316"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.9" for 127.0.0.1 at 2019-10-01 15:33:33 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 238ms (Views: 208.4ms | ActiveRecord: 0.3ms) +  (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-10-01 15:33:33 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (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-10-01 15:33:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 15:33:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (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 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:37:32.601935"], ["created_at", "2019-10-01 22:37:32.612210"], ["updated_at", "2019-10-01 22:37:32.612210"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.10" for 127.0.0.1 at 2019-10-01 15:37:32 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (10.9ms) +Completed 200 OK in 178ms (Views: 148.4ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.5ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks.-1" for 127.0.0.1 at 2019-10-01 15:37:32 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (0.1ms) 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::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-01 15:37:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.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-10-01 15:37:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-01 15:40:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 151ms (Views: 137.4ms | ActiveRecord: 3.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-01 15:40:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (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.1ms) 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-10-01 15:40:23 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 23ms (Views: 3.1ms | ActiveRecord: 0.6ms) +  (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:40:23.638121"], ["created_at", "2019-10-01 22:40:23.675437"], ["updated_at", "2019-10-01 22:40:23.675437"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.11" for 127.0.0.1 at 2019-10-01 15:40:23 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.1ms) ROLLBACK +  (0.1ms) 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.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new 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-10-01 15:41:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 161ms (Views: 149.6ms | ActiveRecord: 2.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-10-01 15:41:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:41:25.016578"], ["created_at", "2019-10-01 22:41:25.024399"], ["updated_at", "2019-10-01 22:41:25.024399"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.12" for 127.0.0.1 at 2019-10-01 15:41:25 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 26ms (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-10-01 15:41:25 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "18:26:13.091086"], ["created_at", "2019-10-02 17:26:13.101948"], ["updated_at", "2019-10-02 17:26:13.101948"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.13" for 127.0.0.1 at 2019-10-02 10:26:13 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 251ms (Views: 219.5ms | ActiveRecord: 0.4ms) +  (0.5ms) 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-10-02 10:26:13 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (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 +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new 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-10-02 10:26:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.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-10-02 10:26:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.8ms) +  (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 +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.5ms) 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.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "18:46:43.215448"], ["created_at", "2019-10-02 17:46:43.226137"], ["updated_at", "2019-10-02 17:46:43.226137"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.14" for 127.0.0.1 at 2019-10-02 10:46:43 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 185ms (Views: 154.7ms | ActiveRecord: 0.4ms) +  (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-10-02 10:46:43 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) +  (0.3ms) 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.1ms) ROLLBACK +  (0.1ms) 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 10:46:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 10:46:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.3ms) +  (0.1ms) 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.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 15:19:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (236.2ms) +Completed 200 OK in 252ms (Views: 241.9ms | ActiveRecord: 1.6ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 15:19:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.5ms) +  (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 +---------------------------------------------------------------------------------------- +  (0.1ms) 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:19:17.081938"], ["created_at", "2019-10-02 22:19:17.091803"], ["updated_at", "2019-10-02 22:19:17.091803"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.15" for 127.0.0.1 at 2019-10-02 15:19:17 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 35ms (Views: 3.6ms | 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-10-02 15:19:17 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) +  (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 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks.-1" for 127.0.0.1 at 2019-10-02 15:20:22 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (143.2ms) +Completed 200 OK in 179ms (Views: 148.7ms | ActiveRecord: 1.5ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks.-1" for 127.0.0.1 at 2019-10-02 15:21:00 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (143.0ms) +Completed 200 OK in 181ms (Views: 148.3ms | ActiveRecord: 1.6ms) +  (0.4ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks.-1" for 127.0.0.1 at 2019-10-02 15:21:21 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (132.8ms) +Completed 200 OK in 167ms (Views: 137.2ms | ActiveRecord: 1.6ms) +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks.-1" for 127.0.0.1 at 2019-10-02 15:21:43 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (146.1ms) +Completed 200 OK in 182ms (Views: 151.2ms | ActiveRecord: 1.6ms) +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (2.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-02 15:23:33 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) 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-10-02 15:23:33 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.2ms) +Completed 200 OK in 229ms (Views: 220.0ms | ActiveRecord: 2.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.9ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:23:33.815366"], ["created_at", "2019-10-02 22:23:33.816739"], ["updated_at", "2019-10-02 22:23:33.816739"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.16" for 127.0.0.1 at 2019-10-02 15:23:33 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 30ms (Views: 3.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-10-02 15:23:33 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.5ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 15:23:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 15:23:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-02 15:26:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 22:26:35.380623"], ["updated_at", "2019-10-02 22:26:35.380623"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 19ms (ActiveRecord: 3.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) 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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (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-10-02 15:26:35 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.7ms) +Completed 200 OK in 232ms (Views: 230.4ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:26:35.640500"], ["created_at", "2019-10-02 22:26:35.641687"], ["updated_at", "2019-10-02 22:26:35.641687"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.18" for 127.0.0.1 at 2019-10-02 15:26:35 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 32ms (Views: 4.2ms | ActiveRecord: 1.5ms) +  (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-10-02 15:26:35 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms) +  (0.5ms) 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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 15:26:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 15:26:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 15:27:50 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.2ms) +Completed 200 OK in 175ms (Views: 156.6ms | ActiveRecord: 4.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-10-02 15:27:50 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 28ms (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.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:27:50.287452"], ["created_at", "2019-10-02 22:27:50.288716"], ["updated_at", "2019-10-02 22:27:50.288716"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.19" for 127.0.0.1 at 2019-10-02 15:27:50 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) ROLLBACK +  (0.6ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (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-10-02 15:27:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.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-10-02 15:27:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (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-10-02 15:27:50 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 22:27:50.328494"], ["updated_at", "2019-10-02 22:27:50.328494"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.4ms) 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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 15:28:52 -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 173ms (Views: 154.1ms | ActiveRecord: 4.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (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::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-02 15:28:53 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 22:28:53.059912"], ["updated_at", "2019-10-02 22:28:53.059912"]] +  (0.1ms) 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"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 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.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:28:53.069662"], ["created_at", "2019-10-02 22:28:53.070234"], ["updated_at", "2019-10-02 22:28:53.070234"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.22" for 127.0.0.1 at 2019-10-02 15:28:53 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 30ms (Views: 6.6ms | 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-10-02 15:28:53 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.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-10-02 15:28:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (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-10-02 15:28:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) +  (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::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-02 15:29:40 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 22:29:40.955257"], ["updated_at", "2019-10-02 22:29:40.955257"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 21ms (ActiveRecord: 5.1ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.4ms) 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 +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 15:29:40 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (12.4ms) +Completed 200 OK in 226ms (Views: 223.6ms | 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.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:29:41.210964"], ["created_at", "2019-10-02 22:29:41.212084"], ["updated_at", "2019-10-02 22:29:41.212084"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.24" for 127.0.0.1 at 2019-10-02 15:29:41 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 31ms (Views: 5.1ms | ActiveRecord: 0.5ms) +  (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-10-02 15:29:41 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (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.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update 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-10-02 15:29:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.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-10-02 15:29:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 15:36:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (131.8ms) +Completed 200 OK in 147ms (Views: 137.4ms | ActiveRecord: 1.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-10-02 15:36:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms) +  (0.3ms) 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.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 15:36:25 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.5ms) +Completed 200 OK in 20ms (Views: 10.7ms | ActiveRecord: 2.7ms) +  (0.2ms) 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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (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-10-02 15:36:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) +  (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-10-02 15:36:25 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 25ms (Views: 3.0ms | 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.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:36:25.815592"], ["created_at", "2019-10-02 22:36:25.817058"], ["updated_at", "2019-10-02 22:36:25.817058"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.25" for 127.0.0.1 at 2019-10-02 15:36:25 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 15:37:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.3ms) +Completed 200 OK in 224ms (Views: 206.3ms | ActiveRecord: 3.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 15:37:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.5ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 15:37:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:37:27.981565"], ["created_at", "2019-10-02 22:37:27.982712"], ["updated_at", "2019-10-02 22:37:27.982712"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.26" for 127.0.0.1 at 2019-10-02 15:37:27 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 28ms (Views: 4.4ms | ActiveRecord: 0.7ms) +  (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-10-02 15:37:28 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) 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.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-10-02 15:37:28 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 15:38:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (135.1ms) +Completed 200 OK in 150ms (Views: 139.7ms | ActiveRecord: 1.6ms) +  (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-10-02 15:38:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 5ms (Views: 4.3ms | 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.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:38:35.306453"], ["created_at", "2019-10-02 22:38:35.316407"], ["updated_at", "2019-10-02 22:38:35.316407"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.27" for 127.0.0.1 at 2019-10-02 15:38:35 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 24ms (Views: 3.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-10-02 15:38:35 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.3ms) +  (0.4ms) 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-10-02 15:38:35 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.0ms) +Completed 200 OK in 13ms (Views: 11.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-10-02 15:38:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) +  (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.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.1ms) 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-10-02 15:40:07 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 22:40:07.960534"], ["updated_at", "2019-10-02 22:40:07.960534"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 18ms (ActiveRecord: 3.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:40:07.971490"], ["created_at", "2019-10-02 22:40:07.972074"], ["updated_at", "2019-10-02 22:40:07.972074"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.29" for 127.0.0.1 at 2019-10-02 15:40:07 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (126.7ms) +Completed 200 OK in 155ms (Views: 133.1ms | 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-10-02 15:40:08 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms) +  (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-10-02 15:40:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.2ms) +Completed 200 OK in 15ms (Views: 11.5ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) 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.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 15:40:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.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-10-02 15:40:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 15:40:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (129.6ms) +Completed 200 OK in 150ms (Views: 139.8ms | ActiveRecord: 2.1ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 15:41:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.4ms) +  (0.3ms) 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-10-02 15:41:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (13.7ms) +Completed 200 OK in 24ms (Views: 15.6ms | ActiveRecord: 2.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:41:00.119170"], ["created_at", "2019-10-02 22:41:00.120118"], ["updated_at", "2019-10-02 22:41:00.120118"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.30" for 127.0.0.1 at 2019-10-02 15:41:00 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 25ms (Views: 3.3ms | 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-10-02 15:41:00 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) 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.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-10-02 15:41:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 22:41:00.167819"], ["updated_at", "2019-10-02 22:41:00.167819"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.6ms) +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-02 15:42:34 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 22:42:34.634315"], ["updated_at", "2019-10-02 22:42:34.634315"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 23ms (ActiveRecord: 3.8ms) +  (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-10-02 15:42:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.8ms) +Completed 200 OK in 147ms (Views: 145.4ms | ActiveRecord: 0.0ms) +  (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::update: test_0001_can update 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 +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing 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-10-02 15:42:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 15:42:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:42:34.821580"], ["created_at", "2019-10-02 22:42:34.822254"], ["updated_at", "2019-10-02 22:42:34.822254"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.33" for 127.0.0.1 at 2019-10-02 15:42:34 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 28ms (Views: 4.6ms | ActiveRecord: 0.7ms) +  (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-10-02 15:42:34 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 15:42:48 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.6ms) +Completed 200 OK in 221ms (Views: 203.7ms | ActiveRecord: 3.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.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 15:42:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.6ms) +  (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-10-02 15:42:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:42:48.479908"], ["created_at", "2019-10-02 22:42:48.480783"], ["updated_at", "2019-10-02 22:42:48.480783"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.34" for 127.0.0.1 at 2019-10-02 15:42:48 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 23ms (Views: 3.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-10-02 15:42:48 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-02 15:42:48 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 22:42:48.524963"], ["updated_at", "2019-10-02 22:42:48.524963"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.5ms) +  (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.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 15:43:33 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.7ms) +Completed 200 OK in 165ms (Views: 148.4ms | ActiveRecord: 3.4ms) +  (0.3ms) 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-10-02 15:43:33 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 22:43:33.633485"], ["updated_at", "2019-10-02 22:43:33.633485"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 4ms (ActiveRecord: 1.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.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:43:33.638791"], ["created_at", "2019-10-02 22:43:33.639834"], ["updated_at", "2019-10-02 22:43:33.639834"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.37" for 127.0.0.1 at 2019-10-02 15:43:33 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 24ms (Views: 3.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-10-02 15:43:33 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms) +  (0.5ms) 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::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 15:43:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (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-10-02 15:43:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) 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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 16:01:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (132.1ms) +Completed 200 OK in 148ms (Views: 137.2ms | ActiveRecord: 1.7ms) +  (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-10-02 16:01:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 6ms (Views: 4.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-10-02 16:01:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (32.8ms) +Completed 200 OK in 44ms (Views: 34.8ms | ActiveRecord: 2.8ms) +  (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 +  (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-10-02 16:01:56 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:01:56.981460"], ["updated_at", "2019-10-02 23:01:56.981460"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:01:56.986648"], ["created_at", "2019-10-02 23:01:56.987357"], ["updated_at", "2019-10-02 23:01:56.987357"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.39" for 127.0.0.1 at 2019-10-02 16:01:56 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 29ms (Views: 6.8ms | 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-10-02 16:01:57 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (7.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.9ms) +Completed 200 OK in 12ms (Views: 4.1ms | ActiveRecord: 7.2ms) +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 16:03:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (126.2ms) +Completed 200 OK in 141ms (Views: 131.0ms | ActiveRecord: 1.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 16:03:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) 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-10-02 16:03:03 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (31.1ms) +Completed 200 OK in 44ms (Views: 34.4ms | ActiveRecord: 2.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-10-02 16:03:03 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:03:03.307320"], ["updated_at", "2019-10-02 23:03:03.307320"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.7ms) +  (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-10-02 16:03:03 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 25ms (Views: 3.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:03:03.340642"], ["created_at", "2019-10-02 23:03:03.341251"], ["updated_at", "2019-10-02 23:03:03.341251"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.41" for 127.0.0.1 at 2019-10-02 16:03:03 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) 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.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 16:03:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (133.3ms) +Completed 200 OK in 148ms (Views: 138.1ms | ActiveRecord: 1.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-10-02 16:03:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 3.5ms | 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-10-02 16:03:17 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 23ms (Views: 3.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 (2.1ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:03:17.964955"], ["created_at", "2019-10-02 23:03:17.973912"], ["updated_at", "2019-10-02 23:03:17.973912"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.42" for 127.0.0.1 at 2019-10-02 16:03:17 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 3ms (Views: 2.9ms | 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-10-02 16:03:17 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:03:17.994214"], ["updated_at", "2019-10-02 23:03:17.994214"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.5ms) +  (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-10-02 16:03:17 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (12.2ms) +Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.0ms) +  (0.4ms) 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.1ms) 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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-02 16:06:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:06:43.616459"], ["updated_at", "2019-10-02 23:06:43.616459"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 16ms (ActiveRecord: 3.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:06:43.623611"], ["created_at", "2019-10-02 23:06:43.624842"], ["updated_at", "2019-10-02 23:06:43.624842"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.45" for 127.0.0.1 at 2019-10-02 16:06:43 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (212.6ms) +Completed 200 OK in 242ms (Views: 218.7ms | 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-10-02 16:06:43 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms) +  (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.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 16:06:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.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-10-02 16:06:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.1ms) 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 +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 16:06:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.2ms) +Completed 200 OK in 13ms (Views: 10.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 16:06:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.0ms) +Completed 200 OK in 243ms (Views: 225.4ms | ActiveRecord: 3.7ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 16:06:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 0.7ms) +  (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-10-02 16:06:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.1ms | 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-10-02 16:06:59 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:06:59.626134"], ["updated_at", "2019-10-02 23:06:59.626134"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.9ms) +  (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.1ms) 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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:06:59.638593"], ["created_at", "2019-10-02 23:06:59.639270"], ["updated_at", "2019-10-02 23:06:59.639270"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.47" for 127.0.0.1 at 2019-10-02 16:06:59 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 27ms (Views: 3.2ms | 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-10-02 16:06:59 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-02 16:08:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:08:16.165737"], ["updated_at", "2019-10-02 23:08:16.165737"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 16ms (ActiveRecord: 3.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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 16:08:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (199.3ms) +Completed 200 OK in 207ms (Views: 205.2ms | ActiveRecord: 0.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-10-02 16:08:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) 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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 16:08:16 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.7ms) +Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:08:16.418358"], ["created_at", "2019-10-02 23:08:16.418921"], ["updated_at", "2019-10-02 23:08:16.418921"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks.49" for 127.0.0.1 at 2019-10-02 16:08:16 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 25ms (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-10-02 16:08:16 -0700 +Processing by TasksController#index as + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 16:12:07 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.6ms) +Completed 200 OK in 221ms (Views: 203.8ms | ActiveRecord: 3.4ms) +  (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.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::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.0ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-02 16:12:07 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:12:07.443137"], ["updated_at", "2019-10-02 23:12:07.443137"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 5ms (ActiveRecord: 1.6ms) +  (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-10-02 16:12:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 16:12:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:12:07.464196"], ["created_at", "2019-10-02 23:12:07.464848"], ["updated_at", "2019-10-02 23:12:07.464848"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/51" for 127.0.0.1 at 2019-10-02 16:12:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"51"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 51], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 7ms (Views: 1.9ms | 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-10-02 16:12:07 -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.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) 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.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:12:45.613546"], ["created_at", "2019-10-02 23:12:45.622464"], ["updated_at", "2019-10-02 23:12:45.622464"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/52" for 127.0.0.1 at 2019-10-02 16:12:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"52"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 52], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 152ms (Views: 132.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-10-02 16:12: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 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) 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 16:12:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 16:12:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | 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-10-02 16:12:45 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:12:45.818995"], ["updated_at", "2019-10-02 23:12:45.818995"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 10ms (ActiveRecord: 1.1ms) +  (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-10-02 16:12:45 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.0ms) +Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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 +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 16:13:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (130.3ms) +Completed 200 OK in 145ms (Views: 135.2ms | ActiveRecord: 1.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-10-02 16:13:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 3.7ms | 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-10-02 16:13:03 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (31.1ms) +Completed 200 OK in 42ms (Views: 32.4ms | ActiveRecord: 2.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:13:03.980082"], ["created_at", "2019-10-02 23:13:03.980873"], ["updated_at", "2019-10-02 23:13:03.980873"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/54" for 127.0.0.1 at 2019-10-02 16:13:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"54"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 54], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 7ms (Views: 1.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-10-02 16:13:03 -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.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-10-02 16:13:04 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:13:04.006360"], ["updated_at", "2019-10-02 23:13:04.006360"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/55 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 16:50:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (134.5ms) +Completed 200 OK in 149ms (Views: 138.9ms | ActiveRecord: 1.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-10-02 16:50:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) +  (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-10-02 16:50:04 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:50:04.489566"], ["updated_at", "2019-10-02 23:50:04.489566"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/56 +Completed 302 Found in 10ms (ActiveRecord: 4.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.4ms) ROLLBACK +  (0.1ms) 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.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:50:04.505220"], ["created_at", "2019-10-02 23:50:04.506074"], ["updated_at", "2019-10-02 23:50:04.506074"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/57" for 127.0.0.1 at 2019-10-02 16:50:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"57"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 57], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.6ms | 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-10-02 16:50:04 -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.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-10-02 16:50:04 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.1ms) +Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 0.0ms) +  (0.1ms) 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.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 16:56:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (127.3ms) +Completed 200 OK in 143ms (Views: 131.9ms | ActiveRecord: 1.8ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 16:56:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 3.8ms | 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.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["completion_date", "12:00:00"], ["created_at", "2019-10-02 23:56:50.313229"], ["updated_at", "2019-10-02 23:56:50.313229"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["completion_date", "12:00:00"], ["created_at", "2019-10-02 23:56:50.316721"], ["updated_at", "2019-10-02 23:56:50.316721"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/59" for 127.0.0.1 at 2019-10-02 16:56:50 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>"12:00"}, "id"=>"59"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 59], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-02 23:56:50.350967"], ["id", 59]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/59 +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 59], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-02 16:56:50 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:56:50.374805"], ["updated_at", "2019-10-02 23:56:50.374805"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/60 +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (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-10-02 16:56:50 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.7ms) +Completed 200 OK in 15ms (Views: 13.5ms | 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:56:50.405542"], ["created_at", "2019-10-02 23:56:50.406823"], ["updated_at", "2019-10-02 23:56:50.406823"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/61" for 127.0.0.1 at 2019-10-02 16:56:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"61"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 61], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 6ms (Views: 2.0ms | 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-10-02 16:56:50 -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.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 16:57:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (127.6ms) +Completed 200 OK in 144ms (Views: 133.6ms | ActiveRecord: 1.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-10-02 16:57:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 3.9ms | 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.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["completion_date", "12:00:00"], ["created_at", "2019-10-02 23:57:46.048457"], ["updated_at", "2019-10-02 23:57:46.048457"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/62" for 127.0.0.1 at 2019-10-02 16:57:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>"Sat, 01 Jan 2000 12:00:00 UTC +00:00"}, "id"=>"62"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 62], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-02 23:57:46.084639"], ["id", 62]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/62 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 62], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["completion_date", "12:00:00"], ["created_at", "2019-10-02 23:57:46.102886"], ["updated_at", "2019-10-02 23:57:46.102886"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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-10-02 16:57:46 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:57:46.111631"], ["created_at", "2019-10-02 23:57:46.112254"], ["updated_at", "2019-10-02 23:57:46.112254"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/64" for 127.0.0.1 at 2019-10-02 16:57:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"64"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 64], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 6ms (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-10-02 16:57:46 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (12.4ms) +Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.0ms) +  (0.3ms) 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 +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-02 16:57:46 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:57:46.150829"], ["updated_at", "2019-10-02 23:57:46.150829"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/65 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-02 23:58:13.595877"], ["updated_at", "2019-10-02 23:58:13.595877"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-02 23:58:13.599012"], ["updated_at", "2019-10-02 23:58:13.599012"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/67" for 127.0.0.1 at 2019-10-02 16:58:13 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"67"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 67], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-02 23:58:13.628049"], ["id", 67]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/67 +Completed 302 Found in 11ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 67], ["LIMIT", 1]] +  (0.5ms) 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-10-02 16:58:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.4ms) +Completed 200 OK in 143ms (Views: 141.2ms | 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-10-02 16:58:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 9ms (Views: 4.7ms | 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-10-02 16:58:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + 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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "00:58:13.808773"], ["created_at", "2019-10-02 23:58:13.809431"], ["updated_at", "2019-10-02 23:58:13.809431"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/68" for 127.0.0.1 at 2019-10-02 16:58:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"68"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 68], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 4ms (Views: 1.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-10-02 16:58: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.1ms) 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-10-02 16:58:13 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-02 23:58:13.828363"], ["updated_at", "2019-10-02 23:58:13.828363"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/69 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (1.3ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-02 17:05: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/ +Completed 302 Found in 12ms (ActiveRecord: 1.7ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:05:51.155943"], ["created_at", "2019-10-03 00:05:51.175476"], ["updated_at", "2019-10-03 00:05:51.175476"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/70/edit" for 127.0.0.1 at 2019-10-02 17:05:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"70"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 70], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (13.6ms) +Completed 200 OK in 161ms (Views: 155.5ms | 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-10-02 17:05:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.0ms) +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:05:51.362120"], ["updated_at", "2019-10-03 00:05:51.362120"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/71" for 127.0.0.1 at 2019-10-02 17:05:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"71"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 71], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 00:05:51.374109"], ["id", 71]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/71 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 71], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:05:51.382130"], ["updated_at", "2019-10-03 00:05:51.382130"]] +  (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-10-02 17:05:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 00:05:51.391853"], ["updated_at", "2019-10-03 00:05:51.391853"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/73 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (1.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-02 17:05:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 17:05:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:05:51.416867"], ["created_at", "2019-10-03 00:05:51.417417"], ["updated_at", "2019-10-03 00:05:51.417417"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/74" for 127.0.0.1 at 2019-10-02 17:05:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"74"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 74], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 7ms (Views: 1.7ms | ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.5ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-10-02 17:05: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.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:06:16.531972"], ["updated_at", "2019-10-03 00:06:16.531972"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-02 17:06:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.6ms) +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:06:16.560302"], ["updated_at", "2019-10-03 00:06:16.560302"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/76" for 127.0.0.1 at 2019-10-02 17:06:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"76"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 76], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 00:06:16.566673"], ["id", 76]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/76 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 76], ["LIMIT", 1]] +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:06:16.579428"], ["created_at", "2019-10-03 00:06:16.580191"], ["updated_at", "2019-10-03 00:06:16.580191"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/77/edit" for 127.0.0.1 at 2019-10-02 17:06:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"77"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 77], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (14.4ms) +Completed 200 OK in 242ms (Views: 239.9ms | ActiveRecord: 0.3ms) +  (1.0ms) 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-10-02 17:06:16 -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/ +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-10-02 17:06:16 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 9ms (Views: 5.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-10-02 17:06:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 00:06:16.854653"], ["updated_at", "2019-10-03 00:06:16.854653"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/78 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["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-10-02 17:06:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 17:06:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:06:16.878767"], ["created_at", "2019-10-03 00:06:16.879360"], ["updated_at", "2019-10-03 00:06:16.879360"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/79" for 127.0.0.1 at 2019-10-02 17:06:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"79"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 79], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms) +  (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-10-02 17:06:16 -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.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 17:07:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (148.0ms) +Completed 200 OK in 165ms (Views: 154.0ms | ActiveRecord: 1.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-10-02 17:07:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.9ms) +  (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-10-02 17:07:55 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.4ms) +Completed 200 OK in 26ms (Views: 15.0ms | ActiveRecord: 2.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:07:55.552856"], ["created_at", "2019-10-03 00:07:55.554988"], ["updated_at", "2019-10-03 00:07:55.554988"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/80" for 127.0.0.1 at 2019-10-02 17:07:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"80"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 80], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 13ms (Views: 3.6ms | ActiveRecord: 0.5ms) +  (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-10-02 17:07:55 -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.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-10-02 17:07:55 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (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.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:07:55.583160"], ["created_at", "2019-10-03 00:07:55.583801"], ["updated_at", "2019-10-03 00:07:55.583801"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/81/edit" for 127.0.0.1 at 2019-10-02 17:07:55 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"81"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 81], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.9ms) +Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.3ms) +  (0.2ms) 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.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:07:55.603192"], ["updated_at", "2019-10-03 00:07:55.603192"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-02 17:07:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"-1"} + Task Load (2.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 8ms (ActiveRecord: 2.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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:07:55.621595"], ["updated_at", "2019-10-03 00:07:55.621595"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/83" for 127.0.0.1 at 2019-10-02 17:07:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"83"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 83], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/83 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 83], ["LIMIT", 1]] +  (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-10-02 17:07:55 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 00:07:55.637085"], ["updated_at", "2019-10-03 00:07:55.637085"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/84 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (1.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:08:08.936705"], ["updated_at", "2019-10-03 00:08:08.936705"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-02 17:08:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"-1"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.1ms) +  (0.4ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:08:08.967663"], ["updated_at", "2019-10-03 00:08:08.967663"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/86" for 127.0.0.1 at 2019-10-02 17:08:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"86"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 86], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 00:08:08.974229"], ["id", 86]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/86 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 86], ["LIMIT", 1]] +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-02 17:08:08 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 00:08:08.991754"], ["updated_at", "2019-10-03 00:08:08.991754"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/87 +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.8ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 17:08:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (215.5ms) +Completed 200 OK in 226ms (Views: 221.2ms | ActiveRecord: 1.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-10-02 17:08:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + 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.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 17:08:09 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.3ms) +Completed 200 OK in 15ms (Views: 12.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:08:09.261305"], ["created_at", "2019-10-03 00:08:09.262103"], ["updated_at", "2019-10-03 00:08:09.262103"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/88" for 127.0.0.1 at 2019-10-02 17:08:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"88"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 88], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 5ms (Views: 2.1ms | 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-10-02 17:08:09 -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.1ms) ROLLBACK +  (1.4ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:08:09.281563"], ["created_at", "2019-10-03 00:08:09.284062"], ["updated_at", "2019-10-03 00:08:09.284062"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/89/edit" for 127.0.0.1 at 2019-10-02 17:08:09 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"89"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 89], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.8ms) +Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.2ms) +  (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-10-02 17:08:09 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (2.1ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-02 17:09:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 00:09:51.093695"], ["updated_at", "2019-10-03 00:09:51.093695"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/90 +Completed 302 Found in 20ms (ActiveRecord: 3.4ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["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-10-02 17:09:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (211.2ms) +Completed 200 OK in 222ms (Views: 218.3ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 17:09:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.2ms | 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.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:09:51.342531"], ["updated_at", "2019-10-03 00:09:51.342531"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/91" for 127.0.0.1 at 2019-10-02 17:09:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>""}, "id"=>"91"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 91], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 00:09:51.348449"], ["id", 91]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/91 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 91], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:09:51.353691"], ["updated_at", "2019-10-03 00:09:51.353691"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-02 17:09:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>""}, "id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms) +  (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-10-02 17:09:51 -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/ +Completed 302 Found in 1ms (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:09:51.366495"], ["created_at", "2019-10-03 00:09:51.367725"], ["updated_at", "2019-10-03 00:09:51.367725"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/93/edit" for 127.0.0.1 at 2019-10-02 17:09:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"93"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 93], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.4ms) +Completed 200 OK in 14ms (Views: 9.6ms | 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-10-02 17:09:51 -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 13ms (Views: 5.9ms | 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-10-02 17:09: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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:09:51.409379"], ["created_at", "2019-10-03 00:09:51.409887"], ["updated_at", "2019-10-03 00:09:51.409887"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/94" for 127.0.0.1 at 2019-10-02 17:09:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"94"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 94], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["completion_date", "12:00:00"], ["created_at", "2019-10-03 00:10:15.782282"], ["updated_at", "2019-10-03 00:10:15.782282"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/95" for 127.0.0.1 at 2019-10-02 17:10:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>"12:00"}, "id"=>"95"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 95], ["LIMIT", 1]] +  (0.6ms) SAVEPOINT active_record_1 + Task Update (0.9ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 00:10:15.819271"], ["id", 95]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/95 +Completed 302 Found in 19ms (ActiveRecord: 2.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 95], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["completion_date", "12:00:00"], ["created_at", "2019-10-03 00:10:15.843517"], ["updated_at", "2019-10-03 00:10:15.843517"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-02 17:10:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>"12:00"}, "id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 2ms (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-10-02 17:10:15 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:10:15.859620"], ["created_at", "2019-10-03 00:10:15.860262"], ["updated_at", "2019-10-03 00:10:15.860262"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/97" for 127.0.0.1 at 2019-10-02 17:10:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"97"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 97], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 159ms (Views: 154.0ms | ActiveRecord: 0.6ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-02 17:10:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 17:10:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (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-10-02 17:10:16 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.2ms) +Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-02 17:10:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 00:10:16.058502"], ["updated_at", "2019-10-03 00:10:16.058502"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/98 +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:10:16.067296"], ["created_at", "2019-10-03 00:10:16.067820"], ["updated_at", "2019-10-03 00:10:16.067820"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/99/edit" for 127.0.0.1 at 2019-10-02 17:10:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"99"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 99], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.9ms) +Completed 200 OK in 5ms (Views: 3.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-10-02 17:10:16 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 17:10:41 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (18.5ms) +Completed 200 OK in 183ms (Views: 164.8ms | ActiveRecord: 4.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-10-02 17:10:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 17:10:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (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-10-02 17:10:41 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 00:10:41.625585"], ["updated_at", "2019-10-03 00:10:41.625585"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/100 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:10:41.634098"], ["created_at", "2019-10-03 00:10:41.634731"], ["updated_at", "2019-10-03 00:10:41.634731"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/101/edit" for 127.0.0.1 at 2019-10-02 17:10:41 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"101"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 101], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (1.5ms) ROLLBACK +  (0.5ms) 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-10-02 17:10:41 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:10:41.657654"], ["created_at", "2019-10-03 00:10:41.658126"], ["updated_at", "2019-10-03 00:10:41.658126"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/102" for 127.0.0.1 at 2019-10-02 17:10:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"102"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 102], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 6ms (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-10-02 17:10:41 -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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:10:41.672843"], ["updated_at", "2019-10-03 00:10:41.672843"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-02 17:10:41 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 3ms (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:10:41.681235"], ["updated_at", "2019-10-03 00:10:41.681235"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/104" for 127.0.0.1 at 2019-10-02 17:10:41 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"104"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 104], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 00:10:41.687869"], ["id", 104]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/104 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 104], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-02 17:46:46 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 00:46:46.299939"], ["updated_at", "2019-10-03 00:46:46.299939"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/105 +Completed 302 Found in 28ms (ActiveRecord: 4.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-02 17:46:46 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.2ms) +Completed 200 OK in 170ms (Views: 166.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-02 17:46:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 2.4ms | 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-10-02 17:46:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + 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.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:46:46.501210"], ["created_at", "2019-10-03 00:46:46.502380"], ["updated_at", "2019-10-03 00:46:46.502380"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/106" for 127.0.0.1 at 2019-10-02 17:46:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"106"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 106], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.2ms) +  (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-10-02 17:46:46 -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.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:46:46.520810"], ["updated_at", "2019-10-03 00:46:46.520810"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/107" for 127.0.0.1 at 2019-10-02 17:46:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"107"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 107], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.8ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 00:46:46.528295"], ["id", 107]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/107 +Completed 302 Found in 5ms (ActiveRecord: 1.5ms) +  (2.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 107], ["LIMIT", 1]] +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:46:46.541611"], ["updated_at", "2019-10-03 00:46:46.541611"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-02 17:46:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 2ms (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-10-02 17:46:46 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:46:46.555103"], ["created_at", "2019-10-03 00:46:46.555626"], ["updated_at", "2019-10-03 00:46:46.555626"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/109/edit" for 127.0.0.1 at 2019-10-02 17:46:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"109"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 109], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-02 17:48:42 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 00:48:42.436730"], ["updated_at", "2019-10-03 00:48:42.436730"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/110 +Completed 302 Found in 19ms (ActiveRecord: 4.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-02 17:48:42 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:48:42.456730"], ["created_at", "2019-10-03 00:48:42.459434"], ["updated_at", "2019-10-03 00:48:42.459434"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/111/edit" for 127.0.0.1 at 2019-10-02 17:48:42 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"111"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 111], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (12.4ms) +Completed 200 OK in 229ms (Views: 227.0ms | ActiveRecord: 0.2ms) +  (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-10-02 17:48:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.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-10-02 17:48:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.1ms) 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-10-02 17:48:42 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "01:48:42.712701"], ["created_at", "2019-10-03 00:48:42.713221"], ["updated_at", "2019-10-03 00:48:42.713221"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/112" for 127.0.0.1 at 2019-10-02 17:48:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"112"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 112], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (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-10-02 17:48:42 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms) +  (0.3ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:48:42.733124"], ["updated_at", "2019-10-03 00:48:42.733124"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/113" for 127.0.0.1 at 2019-10-02 17:48:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"113"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 113], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 00:48:42.740921"], ["id", 113]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/113 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 113], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 00:48:42.745724"], ["updated_at", "2019-10-03 00:48:42.745724"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-02 17:48:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-02 18:03:29 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (13.0ms) +Completed 200 OK in 177ms (Views: 158.9ms | ActiveRecord: 3.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-10-02 18:03:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 3.7ms | 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-10-02 18:03:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (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-10-02 18:03:29 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 01:03:29.730689"], ["updated_at", "2019-10-03 01:03:29.730689"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/115 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "02:03:29.740925"], ["created_at", "2019-10-03 01:03:29.742341"], ["updated_at", "2019-10-03 01:03:29.742341"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/116" for 127.0.0.1 at 2019-10-02 18:03:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"116"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 116], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.3ms) +  (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-10-02 18:03: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.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "02:03:29.760173"], ["created_at", "2019-10-03 01:03:29.760721"], ["updated_at", "2019-10-03 01:03:29.760721"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/117/edit" for 127.0.0.1 at 2019-10-02 18:03:29 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"117"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 117], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.1ms) +Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.2ms) +  (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-10-02 18:03:29 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 01:03:29.780961"], ["updated_at", "2019-10-03 01:03:29.780961"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/118" for 127.0.0.1 at 2019-10-02 18:03:29 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"118"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 118], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 01:03:29.790382"], ["id", 118]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/118 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 118], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 01:03:29.796582"], ["updated_at", "2019-10-03 01:03:29.796582"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-02 18:03:29 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "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/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:37:24.082333"], ["updated_at", "2019-10-03 21:37:24.082333"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/120" for 127.0.0.1 at 2019-10-03 14:37:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"120"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 120], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (2.9ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["updated_at", "2019-10-03 21:37:24.106752"], ["id", 120]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/120 +Completed 302 Found in 17ms (ActiveRecord: 3.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 120], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:37:24.120376"], ["updated_at", "2019-10-03 21:37:24.120376"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:37:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 14:37:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (213.6ms) +Completed 200 OK in 222ms (Views: 220.1ms | ActiveRecord: 0.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-10-03 14:37:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (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-10-03 14:37:24 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.7ms) +Completed 200 OK in 14ms (Views: 11.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 14:37:24 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:37:24.381026"], ["updated_at", "2019-10-03 21:37:24.381026"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/122 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-03 14:37: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.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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:37:24.391820"], ["created_at", "2019-10-03 21:37:24.393435"], ["updated_at", "2019-10-03 21:37:24.393435"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/123" for 127.0.0.1 at 2019-10-03 14:37:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"123"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 123], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.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-10-03 14:37:24 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:37:24.407300"], ["created_at", "2019-10-03 21:37:24.407808"], ["updated_at", "2019-10-03 21:37:24.407808"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/124/edit" for 127.0.0.1 at 2019-10-03 14:37:24 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"124"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 124], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:38:57.243546"], ["created_at", "2019-10-03 21:38:57.253832"], ["updated_at", "2019-10-03 21:38:57.253832"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/125/edit" for 127.0.0.1 at 2019-10-03 14:38:57 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"125"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 125], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (15.7ms) +Completed 200 OK in 224ms (Views: 209.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-10-03 14:38:57 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:38:57.493963"], ["created_at", "2019-10-03 21:38:57.494478"], ["updated_at", "2019-10-03 21:38:57.494478"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/126" for 127.0.0.1 at 2019-10-03 14:38:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"126"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 126], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 4ms (Views: 1.6ms | 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-10-03 14:38:57 -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.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-10-03 14:38:57 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms) +  (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-10-03 14:38:57 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:38:57.520744"], ["updated_at", "2019-10-03 21:38:57.520744"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/127 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:38:57.529104"], ["created_at", "2019-10-03 21:38:57.529845"], ["updated_at", "2019-10-03 21:38:57.529845"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/128" for 127.0.0.1 at 2019-10-03 14:38:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"128"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 128], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["completion_date", nil], ["updated_at", "2019-10-03 21:38:57.534230"], ["id", 128]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/128 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:38:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "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/ +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" +  (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-10-03 14:38:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.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-10-03 14:38:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:40:58.613608"], ["created_at", "2019-10-03 21:40:58.622821"], ["updated_at", "2019-10-03 21:40:58.622821"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/129" for 127.0.0.1 at 2019-10-03 14:40:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"129"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 129], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.3ms) +Completed 200 OK in 146ms (Views: 128.1ms | 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-10-03 14:40:58 -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 +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 14:40:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14:40:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + 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.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-03 14:40:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.4ms) +Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:40:58.823824"], ["created_at", "2019-10-03 21:40:58.824359"], ["updated_at", "2019-10-03 21:40:58.824359"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/130/edit" for 127.0.0.1 at 2019-10-03 14:40:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"130"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 130], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.2ms) +  (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-10-03 14:40:58 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (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-10-03 14:40:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:40:58.847135"], ["updated_at", "2019-10-03 21:40:58.847135"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/131 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:40:58.853437"], ["created_at", "2019-10-03 21:40:58.853944"], ["updated_at", "2019-10-03 21:40:58.853944"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/132/edit" for 127.0.0.1 at 2019-10-03 14:40:58 -0700 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:40:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:41:54 -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 12ms (ActiveRecord: 1.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:41:54.536968"], ["created_at", "2019-10-03 21:41:54.544237"], ["updated_at", "2019-10-03 21:41:54.544237"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/133" for 127.0.0.1 at 2019-10-03 14:41:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"133"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 133], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 202ms (Views: 197.9ms | 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.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:41:54.753558"], ["created_at", "2019-10-03 21:41:54.754281"], ["updated_at", "2019-10-03 21:41:54.754281"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/134/edit" for 127.0.0.1 at 2019-10-03 14:41:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"134"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 134], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (11.3ms) +Completed 200 OK in 18ms (Views: 12.8ms | 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-10-03 14:41: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/ +Completed 302 Found in 2ms (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-10-03 14:41:54 -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 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) +  (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-10-03 14:41:54 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:41:54.802990"], ["updated_at", "2019-10-03 21:41:54.802990"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/135 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["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-10-03 14:41:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.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-10-03 14:41:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:41:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:41:54.829883"], ["created_at", "2019-10-03 21:41:54.830469"], ["updated_at", "2019-10-03 21:41:54.830469"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/136" for 127.0.0.1 at 2019-10-03 14:41:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"136"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 136], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["completion_date", nil], ["updated_at", "2019-10-03 21:41:54.835507"], ["id", 136]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/136 +Completed 302 Found in 4ms (ActiveRecord: 1.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:43:06.488985"], ["created_at", "2019-10-03 21:43:06.497992"], ["updated_at", "2019-10-03 21:43:06.497992"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/137/edit" for 127.0.0.1 at 2019-10-03 14:43:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"137"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 137], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (12.2ms) +Completed 200 OK in 164ms (Views: 140.5ms | ActiveRecord: 2.7ms) +  (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-10-03 14:43:06 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 14:43:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.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-10-03 14:43:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:43:06.699048"], ["created_at", "2019-10-03 21:43:06.699624"], ["updated_at", "2019-10-03 21:43:06.699624"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/138" for 127.0.0.1 at 2019-10-03 14:43:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"138"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 138], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 5ms (Views: 2.2ms | 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-10-03 14:43:06 -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-10-03 14:43:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:43:06.725830"], ["created_at", "2019-10-03 21:43:06.726417"], ["updated_at", "2019-10-03 21:43:06.726417"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/139" for 127.0.0.1 at 2019-10-03 14:43:06 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "id"=>"139"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 139], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "wash both cars"], ["description", "rinse, wash, and wax"], ["completion_date", nil], ["updated_at", "2019-10-03 21:43:06.734079"], ["id", 139]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/139 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:43:06 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"wash both cars", "description"=>"rinse, wash, and wax", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 14:43:06 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:43:06.746827"], ["updated_at", "2019-10-03 21:43:06.746827"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/140 +Completed 302 Found in 5ms (ActiveRecord: 1.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-03 14:46:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.6ms) +Completed 200 OK in 225ms (Views: 208.4ms | ActiveRecord: 3.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.9ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:46:35.199484"], ["created_at", "2019-10-03 21:46:35.200976"], ["updated_at", "2019-10-03 21:46:35.200976"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/141" for 127.0.0.1 at 2019-10-03 14:46:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"141"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 141], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 10ms (Views: 1.8ms | 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-10-03 14:46:35 -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.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-10-03 14:46:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:46:35.229349"], ["updated_at", "2019-10-03 21:46:35.229349"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/142 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:46:35.237185"], ["created_at", "2019-10-03 21:46:35.237905"], ["updated_at", "2019-10-03 21:46:35.237905"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/143/edit" for 127.0.0.1 at 2019-10-03 14:46:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"143"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 143], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.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-10-03 14:46:35 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:46:35.253017"], ["created_at", "2019-10-03 21:46:35.253513"], ["updated_at", "2019-10-03 21:46:35.253513"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/144" for 127.0.0.1 at 2019-10-03 14:46:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"144"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 144], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "updated task"], ["description", "updated task description"], ["completion_date", nil], ["updated_at", "2019-10-03 21:46:35.261735"], ["id", 144]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/144 +Completed 302 Found in 5ms (ActiveRecord: 1.3ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (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-10-03 14:46:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 5ms (Views: 3.1ms | 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-10-03 14:46:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:46:58.748642"], ["created_at", "2019-10-03 21:46:58.757394"], ["updated_at", "2019-10-03 21:46:58.757394"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/145" for 127.0.0.1 at 2019-10-03 14:46:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"145"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 145], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 147ms (Views: 127.6ms | ActiveRecord: 1.2ms) +  (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-10-03 14:46:58 -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.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-10-03 14:46:58 -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 15ms (Views: 12.1ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:46:58.941803"], ["created_at", "2019-10-03 21:46:58.942312"], ["updated_at", "2019-10-03 21:46:58.942312"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/146/edit" for 127.0.0.1 at 2019-10-03 14:46:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"146"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 146], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.2ms) +  (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-10-03 14:46: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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:46:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:46:58.970814"], ["created_at", "2019-10-03 21:46:58.971318"], ["updated_at", "2019-10-03 21:46:58.971318"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/147" for 127.0.0.1 at 2019-10-03 14:46:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"147"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 147], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "updated task"], ["description", "updated task description"], ["completion_date", nil], ["updated_at", "2019-10-03 21:46:58.974958"], ["id", 147]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/147 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 14:46:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:46:58.982241"], ["updated_at", "2019-10-03 21:46:58.982241"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/148 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["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-10-03 14:46:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 8ms (Views: 5.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-10-03 14:46:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-03 14:49:10 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.6ms) +Completed 200 OK in 158ms (Views: 135.3ms | ActiveRecord: 3.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:49:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:49:10.645295"], ["created_at", "2019-10-03 21:49:10.646514"], ["updated_at", "2019-10-03 21:49:10.646514"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/149" for 127.0.0.1 at 2019-10-03 14:49:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"149"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 149], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "updated task"], ["description", "updated task description"], ["completion_date", nil], ["updated_at", "2019-10-03 21:49:10.652285"], ["id", 149]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/149 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) 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-10-03 14:49:10 -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 3ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:49:10.663079"], ["created_at", "2019-10-03 21:49:10.663698"], ["updated_at", "2019-10-03 21:49:10.663698"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/150" for 127.0.0.1 at 2019-10-03 14:49:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"150"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 150], ["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: 3.3ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:49:10.676129"], ["created_at", "2019-10-03 21:49:10.676660"], ["updated_at", "2019-10-03 21:49:10.676660"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/151/edit" for 127.0.0.1 at 2019-10-03 14:49:10 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"151"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 151], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) +  (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-10-03 14:49:10 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 14:49:10 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:49:10.692613"], ["updated_at", "2019-10-03 21:49:10.692613"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/152 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-03 14:49:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.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-10-03 14:49:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:50:11 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 9ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:50:11.376983"], ["created_at", "2019-10-03 21:50:11.384757"], ["updated_at", "2019-10-03 21:50:11.384757"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/153/edit" for 127.0.0.1 at 2019-10-03 14:50:11 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"153"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 153], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.0ms) +Completed 200 OK in 157ms (Views: 153.8ms | 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-10-03 14:50:11 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (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-10-03 14:50:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14:50:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:50:11.575472"], ["created_at", "2019-10-03 21:50:11.576300"], ["updated_at", "2019-10-03 21:50:11.576300"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/154" for 127.0.0.1 at 2019-10-03 14:50:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"154"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 154], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.7ms | 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-10-03 14:50: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.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-10-03 14:50:11 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:50:11.594075"], ["updated_at", "2019-10-03 21:50:11.594075"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/155 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.6ms) 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-10-03 14:50:11 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-03 14:51:09 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:51:09.545945"], ["updated_at", "2019-10-03 21:51:09.545945"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/156 +Completed 302 Found in 16ms (ActiveRecord: 3.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-03 14:51:09 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:51:09.562931"], ["created_at", "2019-10-03 21:51:09.563519"], ["updated_at", "2019-10-03 21:51:09.563519"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/157/edit" for 127.0.0.1 at 2019-10-03 14:51:09 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"157"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 157], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (13.1ms) +Completed 200 OK in 214ms (Views: 211.5ms | ActiveRecord: 0.2ms) +  (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:51:09.783475"], ["created_at", "2019-10-03 21:51:09.784414"], ["updated_at", "2019-10-03 21:51:09.784414"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/158" for 127.0.0.1 at 2019-10-03 14:51:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"158"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 158], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.5ms) +  (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-10-03 14:51:09 -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.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-10-03 14:51:09 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms) +  (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-10-03 14:51:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 6ms (Views: 3.4ms | 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-10-03 14:51:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:51:09 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14:51:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (125.6ms) +Completed 200 OK in 141ms (Views: 130.8ms | ActiveRecord: 1.5ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 14:51:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.5ms) +  (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-10-03 14:51:24 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:51:24.791885"], ["updated_at", "2019-10-03 21:51:24.791885"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/159 +Completed 302 Found in 28ms (ActiveRecord: 3.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 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.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:51:24.800499"], ["created_at", "2019-10-03 21:51:24.801133"], ["updated_at", "2019-10-03 21:51:24.801133"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/160" for 127.0.0.1 at 2019-10-03 14:51:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"160"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 160], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 8ms (Views: 1.9ms | ActiveRecord: 0.5ms) +  (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-10-03 14:51:24 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:51:24.818357"], ["created_at", "2019-10-03 21:51:24.818874"], ["updated_at", "2019-10-03 21:51:24.818874"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/161/edit" for 127.0.0.1 at 2019-10-03 14:51:24 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"161"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 161], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.0ms) +Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.2ms) +  (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-10-03 14:51: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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (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-10-03 14:51:24 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.8ms | 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.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:51:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) +  (0.8ms) SELECT COUNT(*) FROM "tasks" +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-03 14:52:26 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (13.9ms) +Completed 200 OK in 160ms (Views: 143.1ms | ActiveRecord: 3.3ms) +  (0.3ms) 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.9ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:52:26.741367"], ["updated_at", "2019-10-03 21:52:26.741367"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:52:26 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:52:26.760510"], ["updated_at", "2019-10-03 21:52:26.760510"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:52:26.766889"], ["created_at", "2019-10-03 21:52:26.767469"], ["updated_at", "2019-10-03 21:52:26.767469"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/164" for 127.0.0.1 at 2019-10-03 14:52:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"164"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 164], ["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: 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-10-03 14:52:26 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:52:26.783255"], ["created_at", "2019-10-03 21:52:26.783749"], ["updated_at", "2019-10-03 21:52:26.783749"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/165/edit" for 127.0.0.1 at 2019-10-03 14:52:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"165"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 165], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.2ms) +  (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-10-03 14:52:26 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 14:52:26 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:52:26.803450"], ["updated_at", "2019-10-03 21:52:26.803450"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/166 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 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-10-03 14:52:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 3.0ms | 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-10-03 14:52:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 14:53:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (130.1ms) +Completed 200 OK in 145ms (Views: 135.1ms | ActiveRecord: 1.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14:53:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.6ms) +  (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-10-03 14:53:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (27.9ms) +Completed 200 OK in 39ms (Views: 29.1ms | ActiveRecord: 2.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.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:53:28.040252"], ["created_at", "2019-10-03 21:53:28.041679"], ["updated_at", "2019-10-03 21:53:28.041679"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/167/edit" for 127.0.0.1 at 2019-10-03 14:53:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"167"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 167], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.4ms) +  (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-10-03 14:53:28 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:53:28.059830"], ["created_at", "2019-10-03 21:53:28.060438"], ["updated_at", "2019-10-03 21:53:28.060438"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/168" for 127.0.0.1 at 2019-10-03 14:53:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"168"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 168], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.8ms | 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-10-03 14:53:28 -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.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-10-03 14:53:28 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:53:28.081715"], ["updated_at", "2019-10-03 21:53:28.081715"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/169 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.6ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:53:28.093107"], ["updated_at", "2019-10-03 21:53:28.093107"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:53:28.154941"], ["updated_at", "2019-10-03 21:53:28.154941"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:53:28 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:55:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 9ms (ActiveRecord: 0.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:55:10.456681"], ["created_at", "2019-10-03 21:55:10.471995"], ["updated_at", "2019-10-03 21:55:10.471995"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/172" for 127.0.0.1 at 2019-10-03 14:55:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"172"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 172], ["LIMIT", 1]] +  (0.4ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "updated task"], ["description", "updated task description"], ["completion_date", nil], ["updated_at", "2019-10-03 21:55:10.479895"], ["id", 172]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/172 +Completed 302 Found in 8ms (ActiveRecord: 1.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14:55:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (125.0ms) +Completed 200 OK in 134ms (Views: 131.6ms | 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-10-03 14:55:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 14:55:10 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:55:10.630927"], ["updated_at", "2019-10-03 21:55:10.630927"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/173 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-03 14:55:10 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.8ms) +Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:55:10.650130"], ["created_at", "2019-10-03 21:55:10.650607"], ["updated_at", "2019-10-03 21:55:10.650607"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/174/edit" for 127.0.0.1 at 2019-10-03 14:55:10 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"174"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 174], ["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.7ms | ActiveRecord: 0.2ms) +  (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-10-03 14:55:10 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:55:10.666248"], ["created_at", "2019-10-03 21:55:10.666744"], ["updated_at", "2019-10-03 21:55:10.666744"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/175" for 127.0.0.1 at 2019-10-03 14:55:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"175"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 175], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 4ms (Views: 1.6ms | 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-10-03 14:55:10 -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.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-03 14:55:55 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:55:55.161537"], ["updated_at", "2019-10-03 21:55:55.161537"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/176 +Completed 302 Found in 18ms (ActiveRecord: 3.9ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:55:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.7ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:55:55.185196"], ["created_at", "2019-10-03 21:55:55.186504"], ["updated_at", "2019-10-03 21:55:55.186504"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/177" for 127.0.0.1 at 2019-10-03 14:55:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"177"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 177], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "updated task"], ["description", "updated task description"], ["completion_date", nil], ["updated_at", "2019-10-03 21:55:55.191886"], ["id", 177]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/177 +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:55:55.196988"], ["created_at", "2019-10-03 21:55:55.197636"], ["updated_at", "2019-10-03 21:55:55.197636"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/178/edit" for 127.0.0.1 at 2019-10-03 14:55:55 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"178"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 178], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (12.2ms) +Completed 200 OK in 143ms (Views: 140.5ms | ActiveRecord: 0.3ms) +  (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-10-03 14:55:55 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (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-10-03 14:55:55 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:55:55.368241"], ["created_at", "2019-10-03 21:55:55.368843"], ["updated_at", "2019-10-03 21:55:55.368843"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/179" for 127.0.0.1 at 2019-10-03 14:55:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"179"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 179], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.7ms | 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-10-03 14:55:55 -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.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 14:55:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.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-10-03 14:55:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:56:43.906769"], ["created_at", "2019-10-03 21:56:43.916096"], ["updated_at", "2019-10-03 21:56:43.916096"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/180" for 127.0.0.1 at 2019-10-03 14:56:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"180"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 180], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 216ms (Views: 204.1ms | 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-10-03 14:56:44 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:56:44.147541"], ["created_at", "2019-10-03 21:56:44.148154"], ["updated_at", "2019-10-03 21:56:44.148154"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/181/edit" for 127.0.0.1 at 2019-10-03 14:56:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"181"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 181], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.8ms) +Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.2ms) +  (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-10-03 14:56:44 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (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-10-03 14:56:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14:56:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + 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_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:56:44.186679"], ["updated_at", "2019-10-03 21:56:44.186679"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:56:44.248692"], ["updated_at", "2019-10-03 21:56:44.248692"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:56:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (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-10-03 14:56:44 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) 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-10-03 14:56:44 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:56:44.270878"], ["updated_at", "2019-10-03 21:56:44.270878"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/184 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:57:34.846994"], ["created_at", "2019-10-03 21:57:34.855826"], ["updated_at", "2019-10-03 21:57:34.855826"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/185/edit" for 127.0.0.1 at 2019-10-03 14:57:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"185"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 185], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (11.8ms) +Completed 200 OK in 148ms (Views: 135.5ms | ActiveRecord: 0.7ms) +  (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-10-03 14:57:35 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (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-10-03 14:57:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:57:35.037771"], ["updated_at", "2019-10-03 21:57:35.037771"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/186 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:57:35.044399"], ["created_at", "2019-10-03 21:57:35.044903"], ["updated_at", "2019-10-03 21:57:35.044903"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/187" for 127.0.0.1 at 2019-10-03 14:57:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"187"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 187], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "updated task"], ["description", "updated task description"], ["completion_date", nil], ["updated_at", "2019-10-03 21:57:35.048589"], ["id", 187]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/187 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14:57:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (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-10-03 14:57:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (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-10-03 14:57:35 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:57:35.129327"], ["created_at", "2019-10-03 21:57:35.129810"], ["updated_at", "2019-10-03 21:57:35.129810"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/188" for 127.0.0.1 at 2019-10-03 14:57:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"188"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 188], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.6ms | 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-10-03 14:57: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.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:58:31.349608"], ["created_at", "2019-10-03 21:58:31.358873"], ["updated_at", "2019-10-03 21:58:31.358873"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/189/edit" for 127.0.0.1 at 2019-10-03 14:58:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"189"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 189], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (12.5ms) +Completed 200 OK in 155ms (Views: 140.2ms | ActiveRecord: 1.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-10-03 14:58:31 -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/ +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (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-10-03 14:58:31 -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 6ms (Views: 3.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:58:31.552765"], ["created_at", "2019-10-03 21:58:31.553365"], ["updated_at", "2019-10-03 21:58:31.553365"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/190" for 127.0.0.1 at 2019-10-03 14:58:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"190"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 190], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.7ms | 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-10-03 14:58:31 -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_0001_can update an existing task +-------------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:58:31.567830"], ["created_at", "2019-10-03 21:58:31.568595"], ["updated_at", "2019-10-03 21:58:31.568595"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) 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-10-03 14:58:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:58:31.691793"], ["updated_at", "2019-10-03 21:58:31.691793"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/192 +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["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-10-03 14:58:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 6ms (Views: 3.8ms | 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-10-03 14:58:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-03 14:58:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:58:43.768621"], ["updated_at", "2019-10-03 21:58:43.768621"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/193 +Completed 302 Found in 18ms (ActiveRecord: 3.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:58:43.781476"], ["created_at", "2019-10-03 21:58:43.782052"], ["updated_at", "2019-10-03 21:58:43.782052"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14:58:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (189.1ms) +Completed 200 OK in 198ms (Views: 196.2ms | ActiveRecord: 0.2ms) +  (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-10-03 14:58:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 3.2ms | 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:58:44.104815"], ["created_at", "2019-10-03 21:58:44.105838"], ["updated_at", "2019-10-03 21:58:44.105838"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/195" for 127.0.0.1 at 2019-10-03 14:58:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"195"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 195], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 6ms (Views: 1.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-10-03 14:58:44 -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.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-10-03 14:58:44 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.9ms) +Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:58:44.140181"], ["created_at", "2019-10-03 21:58:44.140660"], ["updated_at", "2019-10-03 21:58:44.140660"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/196/edit" for 127.0.0.1 at 2019-10-03 14:58:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"196"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 196], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.7ms | 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-10-03 14:58:44 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-03 14:59:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (13.5ms) +Completed 200 OK in 167ms (Views: 149.5ms | ActiveRecord: 3.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-10-03 14:59:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14:59:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (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-10-03 14:59:14 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:59:14.058525"], ["updated_at", "2019-10-03 21:59:14.058525"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/197 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-03 14:59:14 -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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:59:14.076249"], ["created_at", "2019-10-03 21:59:14.077002"], ["updated_at", "2019-10-03 21:59:14.077002"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/198" for 127.0.0.1 at 2019-10-03 14:59:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"198"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 198], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.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-10-03 14:59:14 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:59:14.096574"], ["created_at", "2019-10-03 21:59:14.097236"], ["updated_at", "2019-10-03 21:59:14.097236"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/199/edit" for 127.0.0.1 at 2019-10-03 14:59:14 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"199"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 199], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:59:14.108631"], ["created_at", "2019-10-03 21:59:14.109571"], ["updated_at", "2019-10-03 21:59:14.109571"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/200" for 127.0.0.1 at 2019-10-03 14:59:14 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"200"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 200], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "updated task"], ["description", "updated task description"], ["completion_date", nil], ["updated_at", "2019-10-03 21:59:14.115244"], ["id", 200]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/200 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:59:14 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 14: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" + Rendered tasks/index.html.erb within layouts/application (132.6ms) +Completed 200 OK in 148ms (Views: 138.1ms | ActiveRecord: 1.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 14: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" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 5ms (Views: 4.0ms | 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.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:59:58.665718"], ["created_at", "2019-10-03 21:59:58.673182"], ["updated_at", "2019-10-03 21:59:58.673182"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/201/edit" for 127.0.0.1 at 2019-10-03 14:59:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"201"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 201], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (13.3ms) +Completed 200 OK in 38ms (Views: 14.7ms | 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-10-03 14:59: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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "22:59:58.720923"], ["created_at", "2019-10-03 21:59:58.721447"], ["updated_at", "2019-10-03 21:59:58.721447"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/202" for 127.0.0.1 at 2019-10-03 14:59:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"202"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 202], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.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-10-03 14:59:58 -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.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-10-03 14:59:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 21:59:58.741570"], ["updated_at", "2019-10-03 21:59:58.741570"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/203 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:59:58.748341"], ["updated_at", "2019-10-03 21:59:58.748341"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/204" for 127.0.0.1 at 2019-10-03 14:59:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"204"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 204], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 21:59:58.754145"], ["id", 204]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/204 +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 204], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 21:59:58.761645"], ["updated_at", "2019-10-03 21:59:58.761645"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 14:59:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (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-10-03 14:59:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 15:05:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (133.8ms) +Completed 200 OK in 149ms (Views: 138.7ms | ActiveRecord: 1.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-10-03 15:05:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms) +  (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.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:05:31.588670"], ["created_at", "2019-10-03 22:05:31.596790"], ["updated_at", "2019-10-03 22:05:31.596790"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/206/edit" for 127.0.0.1 at 2019-10-03 15:05:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"206"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 206], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.9ms) +Completed 200 OK in 16ms (Views: 11.1ms | 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-10-03 15:05:31 -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/ +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-10-03 15:05:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:05:31.634329"], ["created_at", "2019-10-03 22:05:31.634842"], ["updated_at", "2019-10-03 22:05:31.634842"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 15:05:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:05:31.699879"], ["updated_at", "2019-10-03 22:05:31.699879"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/208 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:05:31.706469"], ["created_at", "2019-10-03 22:05:31.706975"], ["updated_at", "2019-10-03 22:05:31.706975"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/209" for 127.0.0.1 at 2019-10-03 15:05:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"209"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 209], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 4ms (Views: 1.6ms | 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-10-03 15:05:31 -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::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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:05:31.720265"], ["updated_at", "2019-10-03 22:05:31.720265"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:05:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:05:31.736543"], ["updated_at", "2019-10-03 22:05:31.736543"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/211" for 127.0.0.1 at 2019-10-03 15:05:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"211"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 211], ["LIMIT", 1]] +  (0.8ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:05:31.743475"], ["id", 211]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/211 +Completed 302 Found in 6ms (ActiveRecord: 2.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 211], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:06:03.996313"], ["created_at", "2019-10-03 22:06:04.006168"], ["updated_at", "2019-10-03 22:06:04.006168"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/212" for 127.0.0.1 at 2019-10-03 15:06:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"212"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 212], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 211ms (Views: 198.4ms | 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-10-03 15:06:04 -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::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:06:04.267517"], ["created_at", "2019-10-03 22:06:04.268268"], ["updated_at", "2019-10-03 22:06:04.268268"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started DELETE "/tasks/213" for 127.0.0.1 at 2019-10-03 15:06:04 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"213"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 213], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 213]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (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-10-03 15:06:04 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.4ms) +Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 0.0ms) +  (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-10-03 15:06:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 15:06:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.9ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:06:04.321443"], ["updated_at", "2019-10-03 22:06:04.321443"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:06:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:06:04.328844"], ["updated_at", "2019-10-03 22:06:04.328844"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/215" for 127.0.0.1 at 2019-10-03 15:06:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"215"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 215], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:06:04.335091"], ["id", 215]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/215 +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 215], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 15:06:04 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:06:04.343637"], ["updated_at", "2019-10-03 22:06:04.343637"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/216 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:06:04.351256"], ["created_at", "2019-10-03 22:06:04.351905"], ["updated_at", "2019-10-03 22:06:04.351905"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/217/edit" for 127.0.0.1 at 2019-10-03 15:06:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"217"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 217], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.2ms) +  (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-10-03 15:06:04 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:07:31 -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 12ms (ActiveRecord: 1.7ms) +  (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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:07:31.776848"], ["created_at", "2019-10-03 22:07:31.784430"], ["updated_at", "2019-10-03 22:07:31.784430"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/218" for 127.0.0.1 at 2019-10-03 15:07:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"218"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 218], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.5ms) +Completed 200 OK in 205ms (Views: 201.0ms | ActiveRecord: 0.4ms) +  (0.2ms) 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-10-03 15:07:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:07:32.007851"], ["updated_at", "2019-10-03 22:07:32.007851"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/219 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:07:32.018860"], ["created_at", "2019-10-03 22:07:32.019421"], ["updated_at", "2019-10-03 22:07:32.019421"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/220/edit" for 127.0.0.1 at 2019-10-03 15:07:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"220"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 220], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (11.5ms) +Completed 200 OK in 16ms (Views: 13.2ms | ActiveRecord: 0.2ms) +  (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-10-03 15:07:32 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:07:32.044592"], ["updated_at", "2019-10-03 22:07:32.044592"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/221" for 127.0.0.1 at 2019-10-03 15:07:32 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"221"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 221], ["LIMIT", 1]] +  (0.5ms) SAVEPOINT active_record_1 + Task Destroy (0.7ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 221]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 221], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:07:32.058943"], ["updated_at", "2019-10-03 22:07:32.058943"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:07:32 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:07:32.067922"], ["updated_at", "2019-10-03 22:07:32.067922"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/223" for 127.0.0.1 at 2019-10-03 15:07:32 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"223"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 223], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:07:32.072447"], ["id", 223]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/223 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 223], ["LIMIT", 1]] +  (0.2ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:07:32.079361"], ["updated_at", "2019-10-03 22:07:32.079361"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:07:32 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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-10-03 15:07:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 15:07:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.4ms) +  (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-10-03 15:07:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-03 15:09: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/ +Completed 302 Found in 11ms (ActiveRecord: 1.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.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:09:54.021269"], ["created_at", "2019-10-03 22:09:54.028445"], ["updated_at", "2019-10-03 22:09:54.028445"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/225/edit" for 127.0.0.1 at 2019-10-03 15:09:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"225"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 225], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.9ms) +Completed 200 OK in 362ms (Views: 358.1ms | 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-10-03 15:09:54 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:09:54.410317"], ["updated_at", "2019-10-03 22:09:54.410317"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/226 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 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.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:09:54.416397"], ["created_at", "2019-10-03 22:09:54.416984"], ["updated_at", "2019-10-03 22:09:54.416984"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/227" for 127.0.0.1 at 2019-10-03 15:09:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"227"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 227], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 4ms (Views: 1.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-10-03 15:09:54 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 15:09:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 15:09:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 2.0ms | 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.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:09:54.445092"], ["updated_at", "2019-10-03 22:09:54.445092"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/228" for 127.0.0.1 at 2019-10-03 15:09:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"228"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 228], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:09:54.450082"], ["id", 228]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/228 +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) +  (0.8ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 228], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:09:54.459827"], ["updated_at", "2019-10-03 22:09:54.459827"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:09:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (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-10-03 15:09:54 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:09:54.476311"], ["updated_at", "2019-10-03 22:09:54.476311"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:09:54 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.9ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:09:54.487242"], ["updated_at", "2019-10-03 22:09:54.487242"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/231" for 127.0.0.1 at 2019-10-03 15:09:54 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"231"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 231], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 231]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 231], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (2.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:12:13.775668"], ["updated_at", "2019-10-03 22:12:13.775668"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:12:13 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 10ms (ActiveRecord: 0.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:12:13.807025"], ["updated_at", "2019-10-03 22:12:13.807025"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/233" for 127.0.0.1 at 2019-10-03 15:12:13 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"233"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 233], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 233]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 233], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:12:13.817790"], ["created_at", "2019-10-03 22:12:13.819903"], ["updated_at", "2019-10-03 22:12:13.819903"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/234/edit" for 127.0.0.1 at 2019-10-03 15:12:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"234"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 234], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.0ms) +Completed 200 OK in 147ms (Views: 145.0ms | 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-10-03 15:12:13 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:12:13 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:12:13.993785"], ["created_at", "2019-10-03 22:12:13.994524"], ["updated_at", "2019-10-03 22:12:13.994524"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/235" for 127.0.0.1 at 2019-10-03 15:12:13 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"235"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 235], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "updated task"], ["description", "updated task description"], ["completion_date", nil], ["updated_at", "2019-10-03 22:12:13.999118"], ["id", 235]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/235 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (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-10-03 15:12:14 -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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:12:14.014578"], ["created_at", "2019-10-03 22:12:14.015474"], ["updated_at", "2019-10-03 22:12:14.015474"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/236" for 127.0.0.1 at 2019-10-03 15:12:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"236"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 236], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 15:12:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 1.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-10-03 15:12:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) +  (0.2ms) 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-10-03 15:12:14 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:12:14.059494"], ["updated_at", "2019-10-03 22:12:14.059494"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/237 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.7ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-03 15:12:14 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-03 15:12:30 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:12:30.560207"], ["updated_at", "2019-10-03 22:12:30.560207"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/238 +Completed 302 Found in 27ms (ActiveRecord: 3.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:12:30.572882"], ["created_at", "2019-10-03 22:12:30.573738"], ["updated_at", "2019-10-03 22:12:30.573738"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/239/edit" for 127.0.0.1 at 2019-10-03 15:12:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"239"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 239], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (15.9ms) +Completed 200 OK in 187ms (Views: 168.5ms | ActiveRecord: 1.8ms) +  (0.3ms) ROLLBACK +  (0.4ms) 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-10-03 15:12: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/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:12:30.778106"], ["updated_at", "2019-10-03 22:12:30.778106"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/240" for 127.0.0.1 at 2019-10-03 15:12:30 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"240"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 240], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 240]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 240], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:12:30.792760"], ["updated_at", "2019-10-03 22:12:30.792760"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:12:30 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (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-10-03 15:12:30 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:12:30.811638"], ["updated_at", "2019-10-03 22:12:30.811638"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/242" for 127.0.0.1 at 2019-10-03 15:12:30 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"242"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 242], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:12:30.816849"], ["id", 242]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/242 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 242], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:12:30.821671"], ["updated_at", "2019-10-03 22:12:30.821671"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:12:30 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (1.5ms) SELECT COUNT(*) FROM "tasks" +  (0.9ms) 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-10-03 15:12:30 -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 6ms (ActiveRecord: 0.6ms) +  (0.9ms) 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:12:30.852129"], ["created_at", "2019-10-03 22:12:30.852847"], ["updated_at", "2019-10-03 22:12:30.852847"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/244" for 127.0.0.1 at 2019-10-03 15:12:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"244"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 244], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.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-10-03 15:12:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 12ms (Views: 6.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-10-03 15:12:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.6ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-03 15:16:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.8ms) +Completed 200 OK in 157ms (Views: 133.9ms | ActiveRecord: 3.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:16:13.713968"], ["updated_at", "2019-10-03 22:16:13.713968"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/245" for 127.0.0.1 at 2019-10-03 15:16:13 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"245"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 245], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:16:13.731455"], ["id", 245]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/245 +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 245], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:16:13.736737"], ["updated_at", "2019-10-03 22:16:13.736737"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:16:13 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:16:13.743678"], ["created_at", "2019-10-03 22:16:13.744257"], ["updated_at", "2019-10-03 22:16:13.744257"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/247/edit" for 127.0.0.1 at 2019-10-03 15:16:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"247"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 247], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 6ms (Views: 3.3ms | 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-10-03 15:16:13 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:16:13.763530"], ["updated_at", "2019-10-03 22:16:13.763530"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/248" for 127.0.0.1 at 2019-10-03 15:16:13 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"248"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 248], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 248]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 248], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:16:13.771706"], ["updated_at", "2019-10-03 22:16:13.771706"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:16:13 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 15:16:13 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:16:13.780081"], ["updated_at", "2019-10-03 22:16:13.780081"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/250 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["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-10-03 15:16:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.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-10-03 15:16:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:16:13.800193"], ["created_at", "2019-10-03 22:16:13.800705"], ["updated_at", "2019-10-03 22:16:13.800705"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/251" for 127.0.0.1 at 2019-10-03 15:16:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"251"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 251], ["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: 4.2ms | ActiveRecord: 0.3ms) +  (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-10-03 15:16: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.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-03 15:26:04 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:26:04.288131"], ["updated_at", "2019-10-03 22:26:04.288131"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/252 +Completed 302 Found in 17ms (ActiveRecord: 3.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-03 15:26:04 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (14.5ms) +Completed 200 OK in 145ms (Views: 143.6ms | ActiveRecord: 0.0ms) +  (0.1ms) 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:26:04.451121"], ["created_at", "2019-10-03 22:26:04.452102"], ["updated_at", "2019-10-03 22:26:04.452102"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/253" for 127.0.0.1 at 2019-10-03 15:26:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"253"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 253], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 9ms (Views: 3.0ms | 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-10-03 15:26:04 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 15:26:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 15:26:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms) +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:26:04.490300"], ["updated_at", "2019-10-03 22:26:04.490300"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/254" for 127.0.0.1 at 2019-10-03 15:26:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"254"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 254], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.9ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:26:04.497945"], ["id", 254]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/254 +Completed 302 Found in 7ms (ActiveRecord: 1.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 254], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:26:04.506424"], ["updated_at", "2019-10-03 22:26:04.506424"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:26:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:26:04.514256"], ["updated_at", "2019-10-03 22:26:04.514256"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/256" for 127.0.0.1 at 2019-10-03 15:26:04 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"256"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 256], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 256]] +  (0.1ms) 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"."id" = $1 LIMIT $2 [["id", 256], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:26:04.525328"], ["updated_at", "2019-10-03 22:26:04.525328"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:26:04 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:26:04.535932"], ["created_at", "2019-10-03 22:26:04.536716"], ["updated_at", "2019-10-03 22:26:04.536716"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/258/edit" for 127.0.0.1 at 2019-10-03 15:26:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"258"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 258], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.2ms) +  (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-10-03 15:26:04 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:36:06.284931"], ["updated_at", "2019-10-03 22:36:06.284931"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/259" for 127.0.0.1 at 2019-10-03 15:36:06 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"259"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 259], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 259]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 12ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 259], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:36:06.314948"], ["updated_at", "2019-10-03 22:36:06.314948"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:36:06 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:36:06.322274"], ["updated_at", "2019-10-03 22:36:06.322274"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/261" for 127.0.0.1 at 2019-10-03 15:36:06 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "id"=>"261"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 261], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:36:06.326384"], ["id", 261]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/261 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 261], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:36:06.330980"], ["updated_at", "2019-10-03 22:36:06.330980"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:36:06 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completion_date"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:36:06.337378"], ["created_at", "2019-10-03 22:36:06.337982"], ["updated_at", "2019-10-03 22:36:06.337982"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/263/edit" for 127.0.0.1 at 2019-10-03 15:36:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"263"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 263], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.1ms) +Completed 200 OK in 211ms (Views: 208.2ms | ActiveRecord: 0.2ms) +  (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-10-03 15:36:06 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 15:36:06 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:36:06.559354"], ["updated_at", "2019-10-03 22:36:06.559354"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/264 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["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-10-03 15:36:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.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-10-03 15:36:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "23:36:06.576852"], ["created_at", "2019-10-03 22:36:06.577433"], ["updated_at", "2019-10-03 22:36:06.577433"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/265" for 127.0.0.1 at 2019-10-03 15:36:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"265"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 265], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 4ms (Views: 1.5ms | 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-10-03 15:36:06 -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-10-03 15:36:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (2.4ms) 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"]] +  (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"]] +  (203.2ms) DROP DATABASE IF EXISTS "task-list_test" +  (483.3ms) CREATE DATABASE "task-list_test" ENCODING = 'unicode' + SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.2ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (7.8ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "completed" boolean) +  (2.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (20191003223726) +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES +(20191001204013); + + +  (2.4ms) 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.3ms) 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.4ms) 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-10-03 22:44:50.904329"], ["updated_at", "2019-10-03 22:44:50.904329"]] +  (0.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]] +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:44:51.170153"], ["updated_at", "2019-10-03 22:44:51.170153"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/1" for 127.0.0.1 at 2019-10-03 15:44:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:44:51.198436"], ["updated_at", "2019-10-03 22:44:51.198436"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:44:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:44:51.209034"], ["updated_at", "2019-10-03 22:44:51.209034"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/3" for 127.0.0.1 at 2019-10-03 15:44:51 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:44:51.217845"], ["updated_at", "2019-10-03 22:44:51.217845"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:44:51 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.7ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-03 22:44:51.228405"], ["updated_at", "2019-10-03 22:44:51.228405"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/5/edit" for 127.0.0.1 at 2019-10-03 15:44:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.6ms) +Completed 200 OK in 138ms (Views: 136.0ms | ActiveRecord: 0.2ms) +  (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-10-03 15:44:51 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (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-10-03 15:44:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 15:44:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-03 15:44:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-03 22:44:51.394066"], ["updated_at", "2019-10-03 22:44:51.394066"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/6" for 127.0.0.1 at 2019-10-03 15:44:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (16.3ms) +Completed 500 Internal Server Error in 19ms (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-10-03 15:44: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 +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-03 15:44:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 15:46:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (131.8ms) +Completed 200 OK in 147ms (Views: 137.2ms | ActiveRecord: 1.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-03 15:46:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.4ms) +  (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-10-03 15:46:04 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:46:04.092915"], ["updated_at", "2019-10-03 22:46:04.092915"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/7 +Completed 302 Found in 30ms (ActiveRecord: 3.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:46:04.102598"], ["updated_at", "2019-10-03 22:46:04.102598"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/8" for 127.0.0.1 at 2019-10-03 15:46:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:46:04.111670"], ["id", 8]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/8 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:46:04.116555"], ["updated_at", "2019-10-03 22:46:04.116555"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:46:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-03 22:46:04.124393"], ["updated_at", "2019-10-03 22:46:04.124393"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/10/edit" for 127.0.0.1 at 2019-10-03 15:46:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"10"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (11.7ms) +Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.2ms) +  (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-10-03 15:46:04 -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/ +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-10-03 15:46:04 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:46:04.161588"], ["updated_at", "2019-10-03 22:46:04.161588"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/11" for 127.0.0.1 at 2019-10-03 15:46:04 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 11]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:46:04.172458"], ["updated_at", "2019-10-03 22:46:04.172458"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:46:04 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-03 22:46:04.180814"], ["updated_at", "2019-10-03 22:46:04.180814"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/13" for 127.0.0.1 at 2019-10-03 15:46:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (13.3ms) +Completed 500 Internal Server Error in 17ms (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-10-03 15:46:04 -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.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-03 22:46:59.287824"], ["updated_at", "2019-10-03 22:46:59.287824"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/14" for 127.0.0.1 at 2019-10-03 15:46:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 148ms (Views: 137.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-10-03 15:46: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.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-03 15:46:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.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-10-03 15:46:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.9ms | 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-10-03 15:46:59 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-03 22:46:59.480607"], ["updated_at", "2019-10-03 22:46:59.480607"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/15 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (1.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:46:59.490241"], ["updated_at", "2019-10-03 22:46:59.490241"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:46:59 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:46:59.501292"], ["updated_at", "2019-10-03 22:46:59.501292"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/17" for 127.0.0.1 at 2019-10-03 15:46:59 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 17]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 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-10-03 15:46:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.2ms) +Completed 200 OK in 12ms (Views: 10.0ms | 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.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:46:59.530348"], ["updated_at", "2019-10-03 22:46:59.530348"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-03 15:46:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-03 22:46:59.538903"], ["updated_at", "2019-10-03 22:46:59.538903"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/19" for 127.0.0.1 at 2019-10-03 15:46:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"19"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 19], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-03 22:46:59.546956"], ["id", 19]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/19 +Completed 302 Found in 4ms (ActiveRecord: 1.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 19], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-03 22:46:59.552989"], ["updated_at", "2019-10-03 22:46:59.552989"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/20/edit" for 127.0.0.1 at 2019-10-03 15:46:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"20"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 20], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.2ms) +  (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-10-03 15:46:59 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.5ms) 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.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"]] +  (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"]] +  (212.5ms) DROP DATABASE IF EXISTS "task-list_test" +  (405.5ms) CREATE DATABASE "task-list_test" ENCODING = 'unicode' + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.3ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (7.0ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "completed" timestamp) +  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20191004174321) +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES +(20191001204013), +(20191003223726); + + +  (5.4ms) 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.6ms) 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.6ms) 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-10-04 21:35:45.504031"], ["updated_at", "2019-10-04 21:35:45.504031"]] +  (0.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]] +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:35:45.790856"], ["updated_at", "2019-10-04 21:35:45.790856"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/1" for 127.0.0.1 at 2019-10-04 14:35:45 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 14ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:35:45.824030"], ["updated_at", "2019-10-04 21:35:45.824030"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-04 14:35:45 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------------------------------------- +TasksController::make completed: test_0001_can make a task that wasn't complete to completed +-------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:35:45.848869"], ["updated_at", "2019-10-04 21:35:45.848869"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/3/completed" for 127.0.0.1 at 2019-10-04 14:35:45 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 21:35:45.853066"], ["updated_at", "2019-10-04 21:35:45.853755"], ["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (1.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::make not completed: test_0001_can make a task that was completed to not complete +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:35:45.864132"], ["updated_at", "2019-10-04 21:35:45.864132"], ["completed", "2019-10-04 21:35:45.863487"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/4/not_completed" for 127.0.0.1 at 2019-10-04 14:35:45 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"id"=>"4"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 21:35:45.870003"], ["id", 4]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-04 21:35:45.880579"], ["updated_at", "2019-10-04 21:35:45.880579"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/5" for 127.0.0.1 at 2019-10-04 14:35:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 242ms (Views: 238.9ms | 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-10-04 14:35:46 -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::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-04 14:35:46 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-04 21:35:46.144656"], ["updated_at", "2019-10-04 21:35:46.144656"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/6 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:35:46.153787"], ["updated_at", "2019-10-04 21:35:46.153787"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-04 14:35:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.2ms) +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:35:46.172891"], ["updated_at", "2019-10-04 21:35:46.172891"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/8" for 127.0.0.1 at 2019-10-04 14:35:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"8"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.9ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-04 21:35:46.180986"], ["id", 8]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/8 +Completed 302 Found in 7ms (ActiveRecord: 2.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["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-10-04 14:35:46 -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"."name" ASC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (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-10-04 14:35:46 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (12.0ms) + Rendered tasks/new.html.erb within layouts/application (13.9ms) +Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-04 21:35:46.285506"], ["updated_at", "2019-10-04 21:35:46.285506"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/9/edit" for 127.0.0.1 at 2019-10-04 14:35:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"9"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.4ms) + Rendered tasks/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 8ms (Views: 3.6ms | 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-10-04 14:35:46 -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]] +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-04 14:36: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"."name" ASC + Rendered tasks/index.html.erb within layouts/application (143.9ms) +Completed 200 OK in 163ms (Views: 151.1ms | ActiveRecord: 1.9ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-04 14:36: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"."name" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.4ms) +  (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-10-04 14:36:48 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-04 21:36:48.862340"], ["updated_at", "2019-10-04 21:36:48.862340"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/10 +Completed 302 Found in 37ms (ActiveRecord: 6.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-10-04 14:36: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/ +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-04 21:36:48.877982"], ["updated_at", "2019-10-04 21:36:48.877982"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/11/edit" for 127.0.0.1 at 2019-10-04 14:36:48 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (9.1ms) + Rendered tasks/edit.html.erb within layouts/application (10.8ms) +Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 0.2ms) +  (0.3ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:36:48.898601"], ["updated_at", "2019-10-04 21:36:48.898601"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/12" for 127.0.0.1 at 2019-10-04 14:36:48 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"12"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-04 21:36:48.904050"], ["id", 12]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/12 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:36:48.911213"], ["updated_at", "2019-10-04 21:36:48.911213"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-04 14:36:48 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "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/ +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) +  (0.9ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:36:48.925195"], ["updated_at", "2019-10-04 21:36:48.925195"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/14" for 127.0.0.1 at 2019-10-04 14:36:48 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 14]] +  (0.1ms) 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.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:36:48.936860"], ["updated_at", "2019-10-04 21:36:48.936860"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-04 14:36:48 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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-10-04 14:36:48 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.7ms) + Rendered tasks/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 8ms (Views: 5.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.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-04 21:36:48.957748"], ["updated_at", "2019-10-04 21:36:48.957748"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/16" for 127.0.0.1 at 2019-10-04 14:36:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 4ms (Views: 2.1ms | 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-10-04 14:36:48 -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 4ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::make not completed: test_0001_can make a task that was completed to not complete +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:36:48.978309"], ["updated_at", "2019-10-04 21:36:48.978309"], ["completed", "2019-10-04 21:36:48.977861"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/17/not_completed" for 127.0.0.1 at 2019-10-04 14:36:48 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"id"=>"17"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 21:36:48.982777"], ["id", 17]] +  (0.4ms) 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.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 17], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------------------------------------- +TasksController::make completed: test_0001_can make a task that wasn't complete to completed +-------------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:36:48.992762"], ["updated_at", "2019-10-04 21:36:48.992762"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/18/completed" for 127.0.0.1 at 2019-10-04 14:36:48 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"id"=>"18"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] +  (0.5ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 21:36:49.002107"], ["updated_at", "2019-10-04 21:36:49.003596"], ["id", 18]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 18], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +-------------------------------------------------------------------------------------------- +TasksController::make completed: test_0001_can make a task that wasn't complete to completed +-------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:44:42.069866"], ["updated_at", "2019-10-04 21:44:42.069866"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/19/completed" for 127.0.0.1 at 2019-10-04 14:44:42 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"id"=>"19"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 19], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-04 21:44:42.097187"], ["updated_at", "2019-10-04 21:44:42.098663"], ["id", 19]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 21ms (ActiveRecord: 1.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 19], ["LIMIT", 1]] +  (0.3ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:44:42.112680"], ["updated_at", "2019-10-04 21:44:42.112680"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/20" for 127.0.0.1 at 2019-10-04 14:44:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"20"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 20], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-04 21:44:42.125886"], ["id", 20]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/20 +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 20], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:44:42.133601"], ["updated_at", "2019-10-04 21:44:42.133601"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-04 14:44:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:44:42.141171"], ["updated_at", "2019-10-04 21:44:42.141171"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/22" for 127.0.0.1 at 2019-10-04 14:44:42 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"22"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 22], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 22]] +  (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.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 22], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:44:42.154043"], ["updated_at", "2019-10-04 21:44:42.154043"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-04 14:44:42 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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-10-04 14:44:42 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (10.0ms) + Rendered tasks/new.html.erb within layouts/application (12.6ms) +Completed 200 OK in 260ms (Views: 257.6ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.1ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-04 14:44:42 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-04 21:44:42.441043"], ["updated_at", "2019-10-04 21:44:42.441043"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/24 +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (1.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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-04 21:44:42.463457"], ["updated_at", "2019-10-04 21:44:42.463457"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/25" for 127.0.0.1 at 2019-10-04 14:44:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"25"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 25], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 10ms (Views: 4.4ms | 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-10-04 14:44:42 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-10-04 14:44:42 -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"."name" ASC + Rendered tasks/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 2.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-10-04 14:44: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"."name" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms) +  (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-10-04 14:44:42 -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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (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.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-04 21:44:42.519122"], ["updated_at", "2019-10-04 21:44:42.519122"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/26/edit" for 127.0.0.1 at 2019-10-04 14:44:42 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"26"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 26], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.0ms) + Rendered tasks/edit.html.erb within layouts/application (1.6ms) +Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::make not completed: test_0001_can make a task that was completed to not complete +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-04 21:44:42.531065"], ["updated_at", "2019-10-04 21:44:42.531065"], ["completed", "2019-10-04 21:44:42.530521"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/27/not_completed" for 127.0.0.1 at 2019-10-04 14:44:42 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"id"=>"27"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 27], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-04 21:44:42.536899"], ["id", 27]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 27], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (13.2ms) + Rendered tasks/new.html.erb within layouts/application (16.8ms) +Completed 200 OK in 227ms (Views: 165.3ms | ActiveRecord: 44.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (40.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-09 17:45:31.822651"], ["updated_at", "2019-10-09 17:45:31.822651"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/28" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"28"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 28], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 15ms (Views: 3.9ms | ActiveRecord: 0.6ms) +  (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-10-09 10:45:31 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------------------------------------- +TasksController::make completed: test_0001_can make a task that wasn't complete to completed +-------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-09 17:45:31.887929"], ["updated_at", "2019-10-09 17:45:31.887929"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/29/completed" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"id"=>"29"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 29], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-09 17:45:31.898418"], ["updated_at", "2019-10-09 17:45:31.898952"], ["id", 29]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 29], ["LIMIT", 1]] +  (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.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-09 17:45:31.905335"], ["updated_at", "2019-10-09 17:45:31.905335"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/30/edit" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"30"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 30], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/edit.html.erb within layouts/application (1.6ms) +Completed 200 OK in 6ms (Views: 2.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-10-09 10:45:31 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-09 17:45:31.927457"], ["updated_at", "2019-10-09 17:45:31.927457"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/31" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"31"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 31], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 31]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 31], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-09 17:45:31.935598"], ["updated_at", "2019-10-09 17:45:31.935598"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::make not completed: test_0001_can make a task that was completed to not complete +------------------------------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-09 17:45:31.947068"], ["updated_at", "2019-10-09 17:45:31.947068"], ["completed", "2019-10-09 17:45:31.945674"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/33/not_completed" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"id"=>"33"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 33], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-09 17:45:31.951038"], ["id", 33]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 33], ["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-10-09 10:45: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 6ms (Views: 2.8ms | 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-10-09 10:45:31 -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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.3ms) +  (0.1ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-09 17:45:31.973279"], ["updated_at", "2019-10-09 17:45:31.973279"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/34" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"34"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 34], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-09 17:45:31.983018"], ["id", 34]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/34 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 34], ["LIMIT", 1]] +  (0.1ms) 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.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-09 17:45:31.988519"], ["updated_at", "2019-10-09 17:45:31.988519"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "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/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-10-09 10:45:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-09 17:45:31.999305"], ["updated_at", "2019-10-09 17:45:31.999305"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/36 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-10-10 09:06:49 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (15.1ms) + Rendered tasks/new.html.erb within layouts/application (18.8ms) +Completed 200 OK in 192ms (Views: 171.1ms | ActiveRecord: 3.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------------------------------------- +TasksController::make completed: test_0001_can make a task that wasn't complete to completed +-------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:06:49.957155"], ["updated_at", "2019-10-10 16:06:49.957155"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/37/completed" for 127.0.0.1 at 2019-10-10 09:06:49 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"id"=>"37"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 37], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-10 16:06:49.969677"], ["updated_at", "2019-10-10 16:06:49.970326"], ["id", 37]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 37], ["LIMIT", 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-10-10 09:06:49 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-10 16:06:49.980300"], ["updated_at", "2019-10-10 16:06:49.980300"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/38 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:06:49.987500"], ["updated_at", "2019-10-10 16:06:49.987500"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/39" for 127.0.0.1 at 2019-10-10 09:06:49 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"39"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 39], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-10 16:06:49.992792"], ["id", 39]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/39 +Completed 302 Found in 6ms (ActiveRecord: 1.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 39], ["LIMIT", 1]] +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:06:50.002770"], ["updated_at", "2019-10-10 16:06:50.002770"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-10 09:06:50 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-10 16:06:50.009722"], ["updated_at", "2019-10-10 16:06:50.009722"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/41/edit" for 127.0.0.1 at 2019-10-10 09:06:50 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"41"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 41], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.2ms) + Rendered tasks/edit.html.erb within layouts/application (1.8ms) +Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.7ms) +  (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-10-10 09:06:50 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:06:50.033430"], ["updated_at", "2019-10-10 16:06:50.033430"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/42" for 127.0.0.1 at 2019-10-10 09:06:50 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"42"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 42], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 42]] +  (0.2ms) 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.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 42], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:06:50.046827"], ["updated_at", "2019-10-10 16:06:50.046827"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-10 09:06:50 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) 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-10-10 09:06:50 -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.6ms) 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-10 16:06:50.063443"], ["updated_at", "2019-10-10 16:06:50.063443"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/44" for 127.0.0.1 at 2019-10-10 09:06:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"44"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 44], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 6ms (Views: 2.0ms | 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-10-10 09:06:50 -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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 8ms (Views: 4.8ms | 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-10-10 09:06:50 -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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::make not completed: test_0001_can make a task that was completed to not complete +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:06:50.091299"], ["updated_at", "2019-10-10 16:06:50.091299"], ["completed", "2019-10-10 16:06:50.090877"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/45/not_completed" for 127.0.0.1 at 2019-10-10 09:06:50 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"id"=>"45"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 45], ["LIMIT", 1]] +  (0.4ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-10 16:06:50.100681"], ["id", 45]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 45], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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-10-10 09:10:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-10 16:10:00.558787"], ["updated_at", "2019-10-10 16:10:00.558787"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/46 +Completed 302 Found in 17ms (ActiveRecord: 3.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:00.572173"], ["updated_at", "2019-10-10 16:10:00.572173"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/47" for 127.0.0.1 at 2019-10-10 09:10:00 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"47"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 47], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 47]] +  (0.2ms) 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.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 47], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:00.586228"], ["updated_at", "2019-10-10 16:10:00.586228"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-10 09:10:00 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (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-10-10 09:10:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (11.3ms) + Rendered tasks/new.html.erb within layouts/application (14.9ms) +Completed 200 OK in 167ms (Views: 164.6ms | 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-10-10 09:10:00 -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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms) +  (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-10-10 09:10: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (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.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-10 16:10:00.791131"], ["updated_at", "2019-10-10 16:10:00.791131"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/49/edit" for 127.0.0.1 at 2019-10-10 09:10:00 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"49"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 49], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.0ms) + Rendered tasks/edit.html.erb within layouts/application (2.6ms) +Completed 200 OK in 8ms (Views: 5.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-10-10 09:10: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/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:00.809344"], ["updated_at", "2019-10-10 16:10:00.809344"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/50" for 127.0.0.1 at 2019-10-10 09:10:00 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"50"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 50], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-10 16:10:00.813834"], ["id", 50]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/50 +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 50], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:00.820391"], ["updated_at", "2019-10-10 16:10:00.820391"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-10 09:10:00 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------------------------------------- +TasksController::make completed: test_0001_can make a task that wasn't complete to completed +-------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:00.832975"], ["updated_at", "2019-10-10 16:10:00.832975"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/52/completed" for 127.0.0.1 at 2019-10-10 09:10:00 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"id"=>"52"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 52], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-10 16:10:00.836738"], ["updated_at", "2019-10-10 16:10:00.837333"], ["id", 52]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 52], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::make not completed: test_0001_can make a task that was completed to not complete +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:00.844733"], ["updated_at", "2019-10-10 16:10:00.844733"], ["completed", "2019-10-10 16:10:00.844132"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/53/not_completed" for 127.0.0.1 at 2019-10-10 09:10:00 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"id"=>"53"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 53], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-10 16:10:00.850716"], ["id", 53]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 53], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (1.8ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-10 16:10:00.859299"], ["updated_at", "2019-10-10 16:10:00.859299"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/54" for 127.0.0.1 at 2019-10-10 09:10:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"54"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 54], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 4ms (Views: 1.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-10-10 09:10:00 -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.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (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.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-10 16:10:31.463678"], ["updated_at", "2019-10-10 16:10:31.463678"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/55/edit" for 127.0.0.1 at 2019-10-10 09:10:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"55"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 55], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (12.6ms) + Rendered tasks/edit.html.erb within layouts/application (16.5ms) +Completed 200 OK in 160ms (Views: 147.8ms | 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-10-10 09:10:31 -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/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (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-10-10 09:10:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.7ms) + Rendered tasks/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.0ms) +  (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-10-10 09:10:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completed"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-10-10 16:10:31.666291"], ["updated_at", "2019-10-10 16:10:31.666291"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/56 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["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-10-10 09:10:31 -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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 8ms (Views: 2.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-10-10 09:10:31 -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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.4ms | 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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["created_at", "2019-10-10 16:10:31.693891"], ["updated_at", "2019-10-10 16:10:31.693891"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/57" for 127.0.0.1 at 2019-10-10 09:10:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"57"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 57], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 4ms (Views: 1.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-10-10 09:10:31 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to main page if given an invalid id +------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:31.707202"], ["updated_at", "2019-10-10 16:10:31.707202"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-10-10 09:10:31 -0700 +Processing by TasksController#destroy 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/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------- +TasksController::destroy: test_0001_can delete an existing task +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:31.716107"], ["updated_at", "2019-10-10 16:10:31.716107"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/59" for 127.0.0.1 at 2019-10-10 09:10:31 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"59"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 59], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 59]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 59], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------------------------------------- +TasksController::make completed: test_0001_can make a task that wasn't complete to completed +-------------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:31.732136"], ["updated_at", "2019-10-10 16:10:31.732136"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/60/completed" for 127.0.0.1 at 2019-10-10 09:10:31 -0700 +Processing by TasksController#make_completed as HTML + Parameters: {"id"=>"60"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 60], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", "2019-10-10 16:10:31.736328"], ["updated_at", "2019-10-10 16:10:31.736804"], ["id", 60]] +  (0.1ms) 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.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 60], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::make not completed: test_0001_can make a task that was completed to not complete +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:31.743478"], ["updated_at", "2019-10-10 16:10:31.743478"], ["completed", "2019-10-10 16:10:31.743003"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/61/not_completed" for 127.0.0.1 at 2019-10-10 09:10:31 -0700 +Processing by TasksController#make_not_completed as HTML + Parameters: {"id"=>"61"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 61], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", nil], ["updated_at", "2019-10-10 16:10:31.747406"], ["id", 61]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 61], ["LIMIT", 1]] +  (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" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:31.754380"], ["updated_at", "2019-10-10 16:10:31.754380"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/62" for 127.0.0.1 at 2019-10-10 09:10:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "id"=>"62"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 62], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (1.2ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "updated task"], ["description", "updated task description"], ["updated_at", "2019-10-10 16:10:31.759571"], ["id", 62]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/62 +Completed 302 Found in 5ms (ActiveRecord: 1.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 62], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wash car"], ["description", "rinse and wash"], ["created_at", "2019-10-10 16:10:31.767176"], ["updated_at", "2019-10-10 16:10:31.767176"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-10-10 09:10:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"updated task", "description"=>"updated task description", "completed"=>nil}, "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/ +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK diff --git a/package.json b/package.json new file mode 100644 index 000000000..a98ae19c1 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "task-list", + "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/seeds.rb b/seeds.rb index ed3a498b4..cd18d878b 100644 --- a/seeds.rb +++ b/seeds.rb @@ -1,18 +1,14 @@ -def random_time - Time.at(rand * Time.now.to_i) -end - tasks = [ - {name: "The First Task", description: "", completed_at: random_time}, + {name: "The First Task", description: ""}, {name: "Go to Brunch", description: ""}, - {name: "Go to Lunch", description: "", completed_at: random_time}, + {name: "Go to Lunch", description: ""}, {name: "Go to Second Lunch", description: ""}, - {name: "Play Video Games", description: "", completed_at: random_time}, - {name: "High Five Somebody You Don't Know", description: "", completed_at: random_time}, - {name: "Plant Flowers", description: "", completed_at: random_time}, + {name: "Play Video Games", description: ""}, + {name: "High Five Somebody You Don't Know", description: ""}, + {name: "Plant Flowers", description: ""}, {name: "Call Mom", description: ""}, {name: "She worries, you know.", description: ""}, - {name: "Nap.", description: "", completed_at: random_time}, + {name: "Nap.", description: ""}, ] tasks.each do |task| 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 4f8b52b0b..5eff07cae 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -3,124 +3,185 @@ describe TasksController do let (:task) { Task.create name: "sample task", description: "this is an example for a test", - completion_date: Time.now + 5.days + completed: nil } - + # Tests for Wave 1 describe "index" do it "can get the index path" do - # Act get tasks_path - - # Assert + must_respond_with :success end - + it "can get the root path" do - # Act get root_path - - # Assert + must_respond_with :success end end - - # Unskip these tests for Wave 2 + + # Test for Wave 2: show describe "show" do it "can get a valid task" do - skip - # Act get task_path(task.id) - - # Assert + must_respond_with :success end - + it "will redirect for an invalid task" do - 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 - + + # Test for Wave 2: new describe "new" do it "can get the new task page" do - skip - - # Act get new_task_path - - # Assert + must_respond_with :success end end - + + # Test for Wave 2: create describe "create" do it "can create a new task" do - skip - - # Arrange task_hash = { task: { name: "new task", description: "new task description", - completion_date: nil, + completed: nil, }, } - - # Act-Assert + expect { post tasks_path, params: task_hash }.must_change "Task.count", 1 - + new_task = Task.find_by(name: task_hash[: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) end end - - # Unskip and complete these tests for Wave 3 + + # Tests for Wave 3: edit describe "edit" do it "can get the edit page for an existing task" do - skip - # Your code here + get edit_task_path(task.id) + + must_respond_with :success end - + it "will respond with redirect when attempting to edit a nonexistant task" do - skip - # Your code here + get edit_task_path(-1) + + must_respond_with :redirect end end - - # Uncomment and complete these tests for Wave 3 + + # Tests for Wave 3: update 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. + before do + @update_task = Task.create(name: "wash car", description: "rinse and wash", completed: nil) + + @updated_task_hash = { + task: { + name: "updated task", + description: "updated task description", + completed: nil, + }, + } + end + it "can update an existing task" do - # Your code here + expect { + patch task_path(@update_task.id), params: @updated_task_hash + }.wont_change "Task.count" + + must_respond_with :redirect + + updated_task = Task.find_by(id: @update_task.id) + expect(updated_task.name).must_equal @updated_task_hash[:task][:name] + expect(updated_task.description).must_equal @updated_task_hash[:task][:description] + expect(updated_task.completed).must_equal @updated_task_hash[:task][:completed] end - + it "will redirect to the root page if given an invalid id" do - # Your code here + expect { + patch task_path(-1), params: @updated_task_hash + }.wont_change "Task.count" + + must_respond_with :redirect end end - - # Complete these tests for Wave 4 + + # Tests for Wave 4: destroy describe "destroy" do - # Your tests go here - + before do + @delete_task = Task.create(name: "wash car", description: "rinse and wash", completed: nil) + end + + it "can delete an existing task" do + expect { + delete task_path(@delete_task.id) + }.must_change "Task.count", -1 + + find_task = Task.find_by(id: @delete_task.id) + expect(find_task).must_equal nil + + must_respond_with :redirect + must_redirect_to tasks_path + end + + it "will redirect to main page if given an invalid id" do + expect{ + delete task_path(-1) + }.wont_change "Task.count" + + must_respond_with :redirect + end end - - # Complete for Wave 4 - describe "toggle_complete" do - # Your tests go here + + # Tests for Wave 4: make_completed + describe "make completed" do + before do + @not_completed_task = Task.create(name: "wash car", description: "rinse and wash", completed: nil) + end + + it "can make a task that wasn't complete to completed" do + expect { + patch completed_task_path(@not_completed_task) + }.wont_change "Task.count" + + find_task = Task.find_by(id: @not_completed_task) + expect(find_task.completed).wont_equal nil + + must_respond_with :redirect + end + end + + # Tests for Wave 4: make_not_completed + describe "make not completed" do + before do + @completed_task = Task.create(name: "wash car", description: "rinse and wash", completed: DateTime.now) + end + + it "can make a task that was completed to not complete" do + expect { + patch not_completed_task_path(@completed_task) + }.wont_change "Task.count" + + find_task = Task.find_by(id: @completed_task) + expect(find_task.completed).must_equal nil + + must_respond_with :redirect + end end -end +end \ No newline at end of file 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/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..d9dabbd1f --- /dev/null +++ b/test/models/task_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +describe Task do + # it "does a thing" do + # value(1+1).must_equal 2 + # 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..176a9f710 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,16 @@ +ENV['RAILS_ENV'] ||= 'test' +require_relative '../config/environment' +require 'rails/test_help' +require 'minitest/rails' +require 'minitest/autorun' +require 'minitest/reporters' + +Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new + + +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