diff --git a/.gitignore b/.gitignore index 74b0d5d2c..40b6a3061 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ build/ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: .rvmrc .DS_Store + +# Ignore master key for decrypting credentials and more. +/config/master.key diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 000000000..25c81fe39 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +ruby-2.5.1 \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..e665f46d3 --- /dev/null +++ b/Gemfile @@ -0,0 +1,81 @@ +source 'https://rubygems.org' +git_source(:github) { |repo| "https://github.com/#{repo}.git" } + +ruby '2.5.1' + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.2.3' +# Use postgresql as the database for Active Record +gem 'pg', '>= 0.18', '< 2.0' +# Use Puma as the app server +gem 'puma', '~> 3.11' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'mini_racer', platforms: :ruby + +# Use CoffeeScript for .coffee assets and views +# gem 'coffee-rails', '~> 4.2' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 4.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use ActiveStorage variant +# gem 'mini_magick', '~> 4.8' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +# Reduces boot times through caching; required in config/boot.rb +gem 'bootsnap', '>= 1.1.0', require: false + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] +end + +group :development do + # Access an interactive console on exception pages or by calling 'console' anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '>= 3.0.5', '< 3.2' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +group :test do + # Adds support for Capybara system testing and selenium driver + gem 'capybara', '>= 2.15' + gem 'selenium-webdriver' + # Easy installation and use of chromedriver to run system tests with Chrome + gem 'chromedriver-helper' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +gem 'jquery-turbolinks' +gem 'jquery-rails' +group :development, :test do + gem 'pry-rails' +end + +group :development do + gem 'better_errors' + gem 'binding_of_caller' + gem 'guard' + gem 'guard-minitest' +end + +group :test do + gem 'minitest-rails' + gem 'minitest-reporters' + gem 'minitest-skip' +end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..bb872bace --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,274 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.2.3) + actionpack (= 5.2.3) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailer (5.2.3) + actionpack (= 5.2.3) + actionview (= 5.2.3) + activejob (= 5.2.3) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.2.3) + actionview (= 5.2.3) + activesupport (= 5.2.3) + rack (~> 2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.2.3) + activesupport (= 5.2.3) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.2.3) + activesupport (= 5.2.3) + globalid (>= 0.3.6) + activemodel (5.2.3) + activesupport (= 5.2.3) + activerecord (5.2.3) + activemodel (= 5.2.3) + activesupport (= 5.2.3) + arel (>= 9.0) + activestorage (5.2.3) + actionpack (= 5.2.3) + activerecord (= 5.2.3) + marcel (~> 0.3.1) + activesupport (5.2.3) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.6.0) + public_suffix (>= 2.0.2, < 4.0) + ansi (1.5.0) + archive-zip (0.12.0) + io-like (~> 0.3.0) + arel (9.0.0) + better_errors (2.5.1) + coderay (>= 1.0.0) + erubi (>= 1.0.0) + rack (>= 0.9.0) + bindex (0.7.0) + binding_of_caller (0.8.0) + debug_inspector (>= 0.0.1) + bootsnap (1.4.3) + msgpack (~> 1.0) + builder (3.2.3) + byebug (11.0.1) + capybara (3.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (~> 1.2) + xpath (~> 3.2) + childprocess (0.9.0) + ffi (~> 1.0, >= 1.0.11) + chromedriver-helper (2.1.1) + archive-zip (~> 0.10) + nokogiri (~> 1.8) + coderay (1.1.2) + concurrent-ruby (1.1.5) + crass (1.0.4) + debug_inspector (0.0.3) + erubi (1.8.0) + execjs (2.7.0) + ffi (1.10.0) + formatador (0.2.5) + globalid (0.4.2) + activesupport (>= 4.2.0) + guard (2.15.0) + formatador (>= 0.2.4) + listen (>= 2.7, < 4.0) + lumberjack (>= 1.0.12, < 2.0) + nenv (~> 0.1) + notiffany (~> 0.0) + pry (>= 0.9.12) + shellany (~> 0.0) + thor (>= 0.18.1) + guard-compat (1.2.1) + guard-minitest (2.4.6) + guard-compat (~> 1.2) + minitest (>= 3.0) + i18n (1.6.0) + concurrent-ruby (~> 1.0) + io-like (0.3.0) + jbuilder (2.8.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.3) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + jquery-turbolinks (2.1.0) + railties (>= 3.1.0) + turbolinks + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + loofah (2.2.3) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + lumberjack (1.0.13) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (0.3.3) + mimemagic (~> 0.3.2) + method_source (0.9.2) + mimemagic (0.3.3) + mini_mime (1.0.1) + mini_portile2 (2.4.0) + minitest (5.11.3) + minitest-rails (3.0.0) + minitest (~> 5.8) + railties (~> 5.0) + minitest-reporters (1.3.6) + ansi + builder + minitest (>= 5.0) + ruby-progressbar + minitest-skip (0.0.1) + minitest (~> 5.0) + msgpack (1.2.9) + multi_json (1.13.1) + nenv (0.3.0) + nio4r (2.3.1) + nokogiri (1.10.2) + mini_portile2 (~> 2.4.0) + notiffany (0.1.1) + nenv (~> 0.1) + shellany (~> 0.0) + pg (1.1.4) + pry (0.12.2) + coderay (~> 1.1.0) + method_source (~> 0.9.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (3.0.3) + puma (3.12.1) + rack (2.0.7) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (5.2.3) + actioncable (= 5.2.3) + actionmailer (= 5.2.3) + actionpack (= 5.2.3) + actionview (= 5.2.3) + activejob (= 5.2.3) + activemodel (= 5.2.3) + activerecord (= 5.2.3) + activestorage (= 5.2.3) + activesupport (= 5.2.3) + bundler (>= 1.3.0) + railties (= 5.2.3) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.4) + loofah (~> 2.2, >= 2.2.2) + railties (5.2.3) + actionpack (= 5.2.3) + activesupport (= 5.2.3) + method_source + rake (>= 0.8.7) + thor (>= 0.19.0, < 2.0) + rake (12.3.2) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + regexp_parser (1.4.0) + ruby-progressbar (1.10.0) + ruby_dep (1.5.0) + rubyzip (1.2.2) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + selenium-webdriver (3.141.0) + childprocess (~> 0.5) + rubyzip (~> 1.2, >= 1.2.2) + shellany (0.0.1) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.2) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.3) + thread_safe (0.3.6) + tilt (2.0.9) + turbolinks (5.2.0) + turbolinks-source (~> 5.2) + turbolinks-source (5.2.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + uglifier (4.1.20) + execjs (>= 0.3.0, < 3) + web-console (3.7.0) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.7.0) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (3.2.0) + nokogiri (~> 1.8) + +PLATFORMS + ruby + +DEPENDENCIES + better_errors + binding_of_caller + bootsnap (>= 1.1.0) + byebug + capybara (>= 2.15) + chromedriver-helper + guard + guard-minitest + jbuilder (~> 2.5) + jquery-rails + jquery-turbolinks + listen (>= 3.0.5, < 3.2) + minitest-rails + minitest-reporters + minitest-skip + pg (>= 0.18, < 2.0) + pry-rails + puma (~> 3.11) + rails (~> 5.2.3) + sass-rails (~> 5.0) + selenium-webdriver + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +RUBY VERSION + ruby 2.5.1p57 + +BUNDLED WITH + 2.0.1 diff --git a/Guardfile b/Guardfile new file mode 100644 index 000000000..e34f706f4 --- /dev/null +++ b/Guardfile @@ -0,0 +1,9 @@ +guard :minitest, autorun: false, spring: true do + watch(%r{^app/(.+).rb$}) { |m| "test/#{m[1]}_test.rb" } + watch(%r{^app/controllers/application_controller.rb$}) { 'test/controllers' } + watch(%r{^app/controllers/(.+)_controller.rb$}) { |m| "test/integration/#{m[1]}_test.rb" } + watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" } + watch(%r{^lib/(.+).rb$}) { |m| "test/lib/#{m[1]}_test.rb" } + watch(%r{^test/.+_test.rb$}) + watch(%r{^test/test_helper.rb$}) { 'test' } +end diff --git a/Rakefile b/Rakefile new file mode 100644 index 000000000..e85f91391 --- /dev/null +++ b/Rakefile @@ -0,0 +1,6 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require_relative 'config/application' + +Rails.application.load_tasks diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js new file mode 100644 index 000000000..b16e53d6d --- /dev/null +++ b/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/images/bwood.jpg b/app/assets/images/bwood.jpg new file mode 100644 index 000000000..bd8fbc5f9 Binary files /dev/null and b/app/assets/images/bwood.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..0196d89f5 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,100 @@ +/* +* 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 +*/ +h1 { + color: purple; + font-family: 'Boogaloo', cursive; + font-size: 4em; + text-align: center; + width: 100%; + position: fixed; + margin-top: -20px; +} + +body { + zoom: 95%; + background-color: yellow; + background-image: url(bwood.jpg); + background-attachment: fixed; + display: grid; + filter: grayscale(75%); + grid-template-columns: 33.33% 1fr; + grid-template-rows: 100px 300px 60px; +} + +header { + grid-row: 1; + grid-column: 1 / 3; + align-items: center; +} + +main { + grid-row: 2; + grid-column: 2; + font-family: 'Righteous', cursive; +} + +nav { + margin-top: 100px; + position: fixed; +} + +li.rcorners > a { + text-decoration: none; + font-size: 2em; + color: black; + font-family: 'Righteous', cursive; +} + +li.rcorners { + margin-top: 3em; +} + +li.rcorners:hover { + opacity: 0.5; +} + +.container_scroll { + overflow: auto; + position: fixed; +} + +footer { +grid-row: 4; +} + +/* li.rcorners:first-of-type { +margin-bottom: 3em; +} */ + + +.rcorners { + border-radius: 25px; + background-color: yellow; + background-position: center; + background-repeat: no-repeat; + padding: 20px; + width: 200px; + height: 40px; +} + +footer { + color:purple; + font-family: 'Righteous', cursive; + grid-column: 1 / 3; + text-align: center; +} + + diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss new file mode 100644 index 000000000..c6b5778f9 --- /dev/null +++ b/app/assets/stylesheets/tasks.scss @@ -0,0 +1,34 @@ +// 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/ + +.tasks { + // color: yellow; + font-family: 'Righteous', cursive; + +} + +.sub_header { + margin-left: -80px; + margin-top: -30px; + text-align: center; + width: 100%; +} + +.inner_scroll { + overflow-y: scroll; + position: absolute; + height: 300px; + width: 400px; + padding-right: 25px; + margin-right: 40px; + background: whitesmoke; + border: 5px aqua inset; + +} + +#task_description { + display:block; + background-color: hotpink; + float: bottom; +} \ No newline at end of file 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..1bb59f78b --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,73 @@ +class TasksController < ApplicationController + def index + @tasks = Task.all.order(:completion_date).reverse_order + end + + def show + task_id = params[:id] + @task = Task.find_by(id: task_id) + unless @task + flash[:error] = "Could not find task with id: #{task_id}" + redirect_to tasks_path + end + end + + def new + @task = Task.new + end + + def create + new_task = Task.new(task_params) + #error handle when saving incase unsuccessful + if new_task.save + redirect_to task_path(new_task) + else + head :not_found + end + end + + def edit + task_id = params[:id] + @task = Task.find_by(id: task_id) + unless @task + flash[:error] = "Could not find task with id: #{task_id}" + redirect_to tasks_path + end + end + + def update + task_id = params[:id] + curr_task = Task.find_by(id: task_id) + if curr_task + curr_task.update(task_params) + else + flash[:error] = "Could not find task with id: #{task_id}" + end + redirect_to root_path + end + + def destroy + task_id = params[:id] + task = Task.find_by(id: task_id) + task.destroy if task + redirect_to root_path + end + + def mark + task_id = params[:id] + @task = Task.find_by(id: task_id) + if @task + @task.completion_date = (@task.completion_date ? nil : DateTime.current) + @task.save + else + flash[:error] = "Could not find task with id: #{task_id}" + end + redirect_to task_path + end + + private + + def task_params + return params.require(:task).permit(:name, :priority_level, :completion_date, :description) + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 000000000..de6be7945 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb new file mode 100644 index 000000000..ce894d00c --- /dev/null +++ b/app/helpers/tasks_helper.rb @@ -0,0 +1,2 @@ +module TasksHelper +end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 000000000..a009ace51 --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 000000000..286b2239d --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 000000000..10a4cba84 --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/models/task.rb b/app/models/task.rb new file mode 100644 index 000000000..d519fcfc3 --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,17 @@ +class Task < ApplicationRecord + def status + if completion_date + return "DONE" + else + return "TO-DO" + end + end + + def toggle + if completion_date + return "Unmark Done" + else + return "Mark Done" + end + end +end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..b38bddecf --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,33 @@ + + + + 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' %> + + +
+

TASKER

+
+ +
+ <%= 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..cc6c8dfa1 --- /dev/null +++ b/app/views/tasks/_form.html.erb @@ -0,0 +1,15 @@ +
+ <%= form_with model: @task, class: "create-tasks" do |f| %> + <%= f.label :name%> + <%= f.text_field :name%> + + <%= f.label :description%> + <%= f.text_field :description%> + + <%= f.label :priorty%> + <%= f.select :priorty, [*1..10]%> + + <%= f.submit "#{action_name} Tasks", class: "save task 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..0838bcda5 --- /dev/null +++ b/app/views/tasks/edit.html.erb @@ -0,0 +1,6 @@ +
+

Edit Task

+ <%= render partial: "form", locals: { + form_class: "update_book", + action_name: "Update" +} %> \ 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..cf58f95be --- /dev/null +++ b/app/views/tasks/index.html.erb @@ -0,0 +1,15 @@ +
+

Overview of Task List

+<%= flash[:error] if flash[:error]%> +
    + <%@tasks.each do |task|%> +
  1. +

    Task: <%= task.name%>

    +
    +

    Status:

    +

    <%= task.status%>

    +
    +
  2. + <%end%> +
+
diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb new file mode 100644 index 000000000..4ad7062f4 --- /dev/null +++ b/app/views/tasks/new.html.erb @@ -0,0 +1,6 @@ +
+

Create New Task

+ <%= render partial: "form", locals: { + form_class: "new-task", + action_name: "Save" +} %> diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb new file mode 100644 index 000000000..92697941e --- /dev/null +++ b/app/views/tasks/show.html.erb @@ -0,0 +1,21 @@ +
+

Task: <%= @task.name%>

+
+

Description:

+

<%= @task.description%>

+

Status:

+

<%= @task.status%>

+
    +
  • + <%= link_to "UPDATE", edit_task_path(@task) %> +
  • +
  • + <%= link_to "DELETE", task_path(@task), method: :delete, data: {confirm: "are you sure?"}%> +
  • +
  • + <%= link_to "#{@task.toggle}", mark_task_path(@task), method: :patch%> +
  • +
+
+
+ \ No newline at end of file diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 000000000..f19acf5b5 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) +load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails new file mode 100755 index 000000000..5badb2fde --- /dev/null +++ b/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake new file mode 100755 index 000000000..d87d5f578 --- /dev/null +++ b/bin/rake @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/setup b/bin/setup new file mode 100755 index 000000000..94fd4d797 --- /dev/null +++ b/bin/setup @@ -0,0 +1,36 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/spring b/bin/spring new file mode 100755 index 000000000..fb2ec2ebb --- /dev/null +++ b/bin/spring @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast. +# It gets overwritten when you run the `spring binstub` command. + +unless defined?(Spring) + require 'rubygems' + require 'bundler' + + lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) + spring = lockfile.specs.detect { |spec| spec.name == "spring" } + if spring + Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path + gem 'spring', spring.version + require 'spring/binstub' + end +end diff --git a/bin/update b/bin/update new file mode 100755 index 000000000..58bfaed51 --- /dev/null +++ b/bin/update @@ -0,0 +1,31 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/yarn b/bin/yarn new file mode 100755 index 000000000..460dd565b --- /dev/null +++ b/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +APP_ROOT = File.expand_path('..', __dir__) +Dir.chdir(APP_ROOT) do + begin + exec "yarnpkg", *ARGV + rescue Errno::ENOENT + $stderr.puts "Yarn executable was not detected in the system." + $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 + end +end diff --git a/config.ru b/config.ru new file mode 100644 index 000000000..f7ba0b527 --- /dev/null +++ b/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/config/application.rb b/config/application.rb new file mode 100644 index 000000000..0fa075441 --- /dev/null +++ b/config/application.rb @@ -0,0 +1,28 @@ +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. + + config.time_zone = "Pacific Time (US & Canada)" + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 000000000..b9e460cef --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,4 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. +require 'bootsnap/setup' # Speed up boot time by caching expensive operations. diff --git a/config/cable.yml b/config/cable.yml new file mode 100644 index 000000000..51266cdbe --- /dev/null +++ b/config/cable.yml @@ -0,0 +1,10 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> + channel_prefix: TaskList_production diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc new file mode 100644 index 000000000..61fb47bf0 --- /dev/null +++ b/config/credentials.yml.enc @@ -0,0 +1 @@ +m1xtpvHvh5oZMLL2VOI6s1Wu6boOrN6H1GV4dF9E9KKL5ALDzVMHxWVBnzbPTkQw8iToAM2n8wcwU6gV0W1jyb+7iJqatv2G4/xFI0GE6ByZvNOzxqBhWa+GXxH3cKi1Qu40ShzPaRvJ0hCYNZUtYy0wAehiXKMXeIC0XVq+P6GU0PjYGqQuXWQLef2fXa+6HP0lCzQFVKpNCSAXs5sme11vXOvoriYv5xNgMVddm7334bwINTOaIo/V13yYQo0OZbtt8QMcIv8Ndtdv64tYXIHcfjVvzK7NN859SYI5I+uU8eRk4weXA2eV/I/Yto4kd6hu2X1T07mu2A0Y8SLF7Kyj4F76Ij/CzDtnOdUzmul9gypT+VLCZfAUQmZvd3m7CrJfp9mJA1P9QI+PyYjnjm1j1O9g10H07NQE--E25fzoIOU+Gn5x2+--SQuF6QVKvXbW1m6DpLssvg== \ No newline at end of file diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 000000000..40243c8b5 --- /dev/null +++ b/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see Rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: TaskList_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: TaskList + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + <<: *default + database: TaskList_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: TaskList_production + username: TaskList + password: <%= ENV['TASKLIST_DATABASE_PASSWORD'] %> diff --git a/config/environment.rb b/config/environment.rb new file mode 100644 index 000000000..426333bb4 --- /dev/null +++ b/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb new file mode 100644 index 000000000..1311e3e4e --- /dev/null +++ b/config/environments/development.rb @@ -0,0 +1,61 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # In the development environment your application's code is reloaded on + # every request. This slows down response time but is perfect for development + # since you don't have to restart the web server when you make code changes. + config.cache_classes = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + # Run rails dev:cache to toggle caching. + if Rails.root.join('tmp', 'caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{2.days.to_i}" + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Store uploaded files on the local file system (see config/storage.yml for options) + config.active_storage.service = :local + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = false + + # Print deprecation notices to the Rails logger. + config.active_support.deprecation = :log + + # Raise an error on page load if there are pending migrations. + config.active_record.migration_error = :page_load + + # Highlight code that triggered database queries in logs. + config.active_record.verbose_query_logs = true + + # Debug mode disables concatenation and preprocessing of assets. + # This option may cause significant delays in view rendering with a large + # number of complex assets. + config.assets.debug = true + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/config/environments/production.rb b/config/environments/production.rb new file mode 100644 index 000000000..4cef70af5 --- /dev/null +++ b/config/environments/production.rb @@ -0,0 +1,94 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # Code is not reloaded between requests. + config.cache_classes = true + + # Eager load code on boot. This eager loads most of Rails and + # your application in memory, allowing both threaded web servers + # and those relying on copy on write to perform better. + # Rake tasks automatically ignore this option for performance. + config.eager_load = true + + # Full error reports are disabled and caching is turned on. + config.consider_all_requests_local = false + config.action_controller.perform_caching = true + + # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] + # or in config/master.key. This key is used to decrypt credentials (and other encrypted files). + # config.require_master_key = true + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # Compress JavaScripts and CSS. + config.assets.js_compressor = :uglifier + # config.assets.css_compressor = :sass + + # Do not fallback to assets pipeline if a precompiled asset is missed. + config.assets.compile = false + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # Specifies the header that your server uses for sending files. + # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache + # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX + + # Store uploaded files on the local file system (see config/storage.yml for options) + config.active_storage.service = :local + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "TaskList_#{Rails.env}" + + config.action_mailer.perform_caching = false + + # Ignore bad email addresses and do not raise email delivery errors. + # Set this to true and configure the email server for immediate delivery to raise delivery errors. + # config.action_mailer.raise_delivery_errors = false + + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to + # the I18n.default_locale when a translation cannot be found). + config.i18n.fallbacks = true + + # Send deprecation notices to registered listeners. + config.active_support.deprecation = :notify + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/config/environments/test.rb b/config/environments/test.rb new file mode 100644 index 000000000..0a38fd3ce --- /dev/null +++ b/config/environments/test.rb @@ -0,0 +1,46 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # The test environment is used exclusively to run your application's + # test suite. You never need to work with it otherwise. Remember that + # your test database is "scratch space" for the test suite and is wiped + # and recreated between test runs. Don't rely on the data there! + config.cache_classes = true + + # Do not eager load code on boot. This avoids loading your whole application + # just for the purpose of running a single test. If you are using a tool that + # preloads Rails for running tests, you may have to set it to true. + config.eager_load = false + + # Configure public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{1.hour.to_i}" + } + + # Show full error reports and disable caching. + config.consider_all_requests_local = true + config.action_controller.perform_caching = false + + # Raise exceptions instead of rendering exception templates. + config.action_dispatch.show_exceptions = false + + # Disable request forgery protection in test environment. + config.action_controller.allow_forgery_protection = false + + # Store uploaded files on the local file system in a temporary directory + config.active_storage.service = :test + + config.action_mailer.perform_caching = false + + # Tell Action Mailer not to deliver emails to the real world. + # The :test delivery method accumulates sent emails in the + # ActionMailer::Base.deliveries array. + config.action_mailer.delivery_method = :test + + # Print deprecation notices to the stderr. + config.active_support.deprecation = :stderr + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true +end diff --git a/config/initializers/action_view.rb b/config/initializers/action_view.rb new file mode 100644 index 000000000..142d382f8 --- /dev/null +++ b/config/initializers/action_view.rb @@ -0,0 +1 @@ +Rails.application.config.action_view.form_with_generates_remote_forms = false diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb new file mode 100644 index 000000000..89d2efab2 --- /dev/null +++ b/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb new file mode 100644 index 000000000..4b828e80c --- /dev/null +++ b/config/initializers/assets.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# Version of your assets, change this if you want to expire all your assets. +Rails.application.config.assets.version = '1.0' + +# Add additional assets to the asset load path. +# Rails.application.config.assets.paths << Emoji.images_path +# Add Yarn node_modules folder to the asset load path. +Rails.application.config.assets.paths << Rails.root.join('node_modules') + +# Precompile additional assets. +# application.js, application.css, and all non-JS/CSS in the app/assets +# folder are already added. +# Rails.application.config.assets.precompile += %w( admin.js admin.css ) diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb new file mode 100644 index 000000000..59385cdf3 --- /dev/null +++ b/config/initializers/backtrace_silencers.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } + +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. +# Rails.backtrace_cleaner.remove_silencers! diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb new file mode 100644 index 000000000..d3bcaa5ec --- /dev/null +++ b/config/initializers/content_security_policy.rb @@ -0,0 +1,25 @@ +# Be sure to restart your server when you modify this file. + +# Define an application-wide content security policy +# For further information see the following documentation +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy + +# Rails.application.config.content_security_policy do |policy| +# policy.default_src :self, :https +# policy.font_src :self, :https, :data +# policy.img_src :self, :https, :data +# policy.object_src :none +# policy.script_src :self, :https +# policy.style_src :self, :https + +# # Specify URI for violation reports +# # policy.report_uri "/csp-violation-report-endpoint" +# end + +# If you are using UJS then enable automatic nonce generation +# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } + +# Report CSP violations to a specified URI +# For further information see the following documentation: +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only +# Rails.application.config.content_security_policy_report_only = true diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb new file mode 100644 index 000000000..5a6a32d37 --- /dev/null +++ b/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb new file mode 100644 index 000000000..4a994e1e7 --- /dev/null +++ b/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb new file mode 100644 index 000000000..ac033bf9d --- /dev/null +++ b/config/initializers/inflections.rb @@ -0,0 +1,16 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym 'RESTful' +# end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb new file mode 100644 index 000000000..dc1899682 --- /dev/null +++ b/config/initializers/mime_types.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb new file mode 100644 index 000000000..bbfc3961b --- /dev/null +++ b/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# This file contains settings for ActionController::ParamsWrapper which +# is enabled by default. + +# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. +ActiveSupport.on_load(:action_controller) do + wrap_parameters format: [:json] +end + +# To enable root element in JSON for ActiveRecord objects. +# ActiveSupport.on_load(:active_record) do +# self.include_root_in_json = true +# end diff --git a/config/locales/en.yml b/config/locales/en.yml new file mode 100644 index 000000000..decc5a857 --- /dev/null +++ b/config/locales/en.yml @@ -0,0 +1,33 @@ +# Files in the config/locales directory are used for internationalization +# and are automatically loaded by Rails. If you want to use locales other +# than English, add the necessary files in this directory. +# +# To use the locales, use `I18n.t`: +# +# I18n.t 'hello' +# +# In views, this is aliased to just `t`: +# +# <%= t('hello') %> +# +# To use a different locale, set it with `I18n.locale`: +# +# I18n.locale = :es +# +# This would use the information in config/locales/es.yml. +# +# The following keys must be escaped otherwise they will not be retrieved by +# the default I18n backend: +# +# true, false, on, off, yes, no +# +# Instead, surround them with single quotes. +# +# en: +# 'true': 'foo' +# +# To learn more, please read the Rails Internationalization guide +# available at http://guides.rubyonrails.org/i18n.html. + +en: + hello: "Hello world" diff --git a/config/puma.rb b/config/puma.rb new file mode 100644 index 000000000..a5eccf816 --- /dev/null +++ b/config/puma.rb @@ -0,0 +1,34 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers: a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum; this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests; default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. +# +# preload_app! + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 000000000..a23191b0c --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,16 @@ +Rails.application.routes.draw do + root to: "tasks#index", as: "root" + + # 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: "task#destroy" + + resources :tasks + + patch "/task/:id/mark", to: "tasks#mark", as: "mark_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/20190409224945_create_tasks.rb b/db/migrate/20190409224945_create_tasks.rb new file mode 100644 index 000000000..41481dbda --- /dev/null +++ b/db/migrate/20190409224945_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.datetime :completion_date + + t.timestamps + end + end +end diff --git a/db/migrate/20190410035722_add_priority_level_to_tasks.rb b/db/migrate/20190410035722_add_priority_level_to_tasks.rb new file mode 100644 index 000000000..3a1c395bf --- /dev/null +++ b/db/migrate/20190410035722_add_priority_level_to_tasks.rb @@ -0,0 +1,5 @@ +class AddPriorityLevelToTasks < ActiveRecord::Migration[5.2] + def change + add_column :tasks, :priority_level, :integer + end +end diff --git a/db/migrate/20190411153205_add_priority_to_tasks.rb b/db/migrate/20190411153205_add_priority_to_tasks.rb new file mode 100644 index 000000000..335e66e33 --- /dev/null +++ b/db/migrate/20190411153205_add_priority_to_tasks.rb @@ -0,0 +1,5 @@ +class AddPriorityToTasks < ActiveRecord::Migration[5.2] + def change + add_column :tasks, :priority, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..66b68c8d2 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,28 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 2019_04_11_153205) 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 "completion_date" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "priority_level" + t.integer "priority" + 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..c8e847a8c --- /dev/null +++ b/log/development.log @@ -0,0 +1,8359 @@ +  (670.5ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (477.7ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/books" for ::1 at 2019-04-08 14:34:37 -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 "/taks" for ::1 at 2019-04-08 14:34:42 -0700 + +ActionController::RoutingError (No route matches [GET] "/taks"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-08 14:34:53 -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 387ms (Views: 383.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 14:39:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:12:in `' + +Started POST "/__better_errors/75d3535c5a60061a/variables" for ::1 at 2019-04-08 14:39:42 -0700 +Started GET "/tasks" for ::1 at 2019-04-08 14:40:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (427.7ms) +Completed 500 Internal Server Error in 436ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007f8e9d7e9978> +Did you mean? @tasks: + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3741811447551959123_70125252202820' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3741811447551959123_70125252202820' + +Started POST "/__better_errors/628bf98958247fd9/variables" for ::1 at 2019-04-08 14:40:07 -0700 +Started GET "/tasks" for ::1 at 2019-04-08 14:40:43 -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 37ms (Views: 33.9ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-08 14:41:57 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (2.2ms) +Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 14:43:04 -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 50ms (Views: 43.3ms | ActiveRecord: 0.0ms) + + +  (62.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (37.1ms) 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.6ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20190409224945) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (24.5ms) ROLLBACK + ↳ bin/rails:9 +  (0.4ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20190409224945) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (0.2ms) ROLLBACK + ↳ bin/rails:9 +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20190409224945) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (0.2ms) ROLLBACK + ↳ bin/rails:9 +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20190409224945) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (47.6ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/migrate/20190409224945_create_tasks.rb:3 + ActiveRecord::SchemaMigration Create (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190409224945"]] + ↳ bin/rails:9 +  (0.5ms) 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.2ms) BEGIN + ↳ bin/rails:9 + 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", "development"], ["created_at", "2019-04-09 23:00:50.883715"], ["updated_at", "2019-04-09 23:00:50.883715"]] + ↳ bin/rails:9 +  (0.4ms) COMMIT + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) BEGIN + Task Create (1.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "wake-up"], ["description", "Waking up at 7am"], ["created_at", "2019-04-09 23:02:43.287182"], ["updated_at", "2019-04-09 23:02:43.287182"]] +  (1.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + Task Update (0.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-09 23:06:13.070811"], ["updated_at", "2019-04-09 23:06:13.071787"], ["id", 1]] +  (40.6ms) COMMIT + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) BEGIN + Task Create (2.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Dentist appt"], ["description", "Make dental appointment for deep cleaning"], ["created_at", "2019-04-09 23:20:19.746233"], ["updated_at", "2019-04-09 23:20:19.746233"]] +  (39.7ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Clean Floors"], ["description", "Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas"], ["created_at", "2019-04-09 23:21:46.029480"], ["updated_at", "2019-04-09 23:21:46.029480"]] +  (0.5ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Finish cleaning garage"], ["description", "Pick up misc items remaining from moving and organize them."], ["created_at", "2019-04-09 23:23:41.532590"], ["updated_at", "2019-04-09 23:23:41.532590"]] +  (1.2ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Set up side table"], ["description", "transfer fish tank and chessboard from old table to new table, and move old table topaino room for keeping music books."], ["created_at", "2019-04-09 23:25:09.295727"], ["updated_at", "2019-04-09 23:25:09.295727"]] +  (40.2ms) COMMIT + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" +Started GET "/books/" for ::1 at 2019-04-09 16:42:09 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +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-04-09 16:42:32 -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:3 + Rendered tasks/index.html.erb within layouts/application (16.2ms) +Completed 200 OK in 257ms (Views: 240.8ms | ActiveRecord: 5.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 16:45:22 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `-@' for :completion_date:Symbol: + app/controllers/tasks_controller.rb:3:in `index' + +Started POST "/__better_errors/f3c0556599af81ec/variables" for ::1 at 2019-04-09 16:45:22 -0700 +Started GET "/tasks" for ::1 at 2019-04-09 16:45:59 -0700 +Processing by TasksController#index as HTML +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/controllers/tasks_controller.rb:3:in `index' + +Started POST "/__better_errors/604781c2168364f6/variables" for ::1 at 2019-04-09 16:45:59 -0700 +Started GET "/tasks" for ::1 at 2019-04-09 16:46:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.2ms) +Completed 200 OK in 46ms (Views: 32.5ms | ActiveRecord: 7.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:14:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.3ms) +Completed 200 OK in 47ms (Views: 33.7ms | ActiveRecord: 7.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:24:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 49ms (Views: 41.2ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:25:15 -0700 +  (41.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (12.6ms) +Completed 200 OK in 234ms (Views: 213.4ms | ActiveRecord: 5.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:25:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 35ms (Views: 30.1ms | ActiveRecord: 0.9ms) + + + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) BEGIN + Task Update (42.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-09 14:06:13.070811"], ["updated_at", "2019-04-10 00:39:01.616069"], ["id", 1]] +  (1.5ms) COMMIT + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +Started GET "/tasks" for ::1 at 2019-04-09 17:42:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 33ms (Views: 29.9ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:45:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 34ms (Views: 28.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:47:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 33ms (Views: 29.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:51:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 40ms (Views: 34.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:52:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 34ms (Views: 30.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:52:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 33ms (Views: 29.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 17:52:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 33ms (Views: 29.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 18:02:25 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (9.7ms) +Completed 200 OK in 41ms (Views: 27.1ms | ActiveRecord: 6.5ms) + + +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (41.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddPriorityLevelToTasks (20190410035722) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (125.9ms) ALTER TABLE "tasks" ADD "priority_level" integer + ↳ db/migrate/20190410035722_add_priority_level_to_tasks.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190410035722"]] + ↳ bin/rails:9 +  (0.4ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (0.1ms) COMMIT + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/books" for ::1 at 2019-04-09 20:59:38 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +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-04-09 20:59:45 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (20.1ms) +Completed 200 OK in 85ms (Views: 66.3ms | ActiveRecord: 8.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:03:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 33ms (Views: 30.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:12:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 31ms (Views: 27.9ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:15:00 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 36ms (Views: 32.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:22:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 53ms (Views: 49.8ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:22: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 55ms (Views: 49.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/index" for ::1 at 2019-04-09 21:22:40 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/index"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-09 21:22: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 38ms (Views: 32.3ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:22:52 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 28ms (Views: 25.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:23: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:23:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 28ms (Views: 23.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:26:03 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:26: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 31ms (Views: 28.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:29: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 31ms (Views: 28.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 21:32:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 33ms (Views: 29.9ms | ActiveRecord: 0.4ms) + + + +ActionController::RoutingError (No route matches [GET] "/assets/paper.gif"): + +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:11:in `block in call' +activesupport (5.2.3) lib/active_support/logger_silence.rb:21:in `silence' +activesupport (5.2.3) lib/active_support/logger.rb:65:in `block (3 levels) in broadcast' +activesupport (5.2.3) lib/active_support/logger_silence.rb:21:in `silence' +activesupport (5.2.3) lib/active_support/logger.rb:63:in `block (2 levels) in broadcast' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:11:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-09 22:08:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 107ms (Views: 103.4ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22: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" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 34ms (Views: 29.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:10:00 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 36ms (Views: 32.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:11:11 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 34ms (Views: 30.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:11: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 34ms (Views: 31.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:11: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 26ms (Views: 23.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:15: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 39ms (Views: 35.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:15:10 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 30ms (Views: 27.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:15:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 31ms (Views: 28.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:33:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 38ms (Views: 34.9ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:33: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 65ms (Views: 61.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:35: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 35ms (Views: 31.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:46:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 79ms (Views: 75.4ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:49:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 39ms (Views: 35.1ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22: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" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 41ms (Views: 36.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/index" for ::1 at 2019-04-09 22:49:47 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/index"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-09 22:49:48 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 52ms (Views: 46.1ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:49: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 29ms (Views: 25.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:55:15 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 91ms (Views: 79.4ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:55:21 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 47ms (Views: 41.6ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:55: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 60ms (Views: 57.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:55:54 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 33ms (Views: 29.1ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:56: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 44ms (Views: 39.6ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 22:56:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 44ms (Views: 39.8ms | ActiveRecord: 1.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:00:47 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 82ms (Views: 77.8ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:14:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 46ms (Views: 41.8ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:15:44 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 41ms (Views: 37.3ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:16:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 33ms (Views: 30.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:16:18 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:19: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 37ms (Views: 34.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:20:11 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 29ms (Views: 25.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:20:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 42ms (Views: 39.6ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:20:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 31ms (Views: 26.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:25:15 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (11.0ms) +Completed 200 OK in 97ms (Views: 86.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:25:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 58ms (Views: 54.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:26:04 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 78ms (Views: 71.3ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:26:25 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 43ms (Views: 39.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:27:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 40ms (Views: 36.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:28:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 43ms (Views: 39.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:28:31 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 46ms (Views: 42.4ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:28:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 57ms (Views: 50.7ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:28:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 40ms (Views: 35.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:28: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 47ms (Views: 43.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:29: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 40ms (Views: 36.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:29:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 40ms (Views: 36.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:29:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 41ms (Views: 38.3ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:29:56 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 39ms (Views: 34.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:30:51 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 43ms (Views: 36.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:31:02 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 51ms (Views: 48.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:31:10 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 34ms (Views: 31.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:31:30 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 37ms (Views: 32.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:31: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 38ms (Views: 35.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:32:04 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 38ms (Views: 34.5ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:33:00 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 40ms (Views: 37.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:34:03 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 40ms (Views: 36.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:34:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 43ms (Views: 38.3ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:35:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 41ms (Views: 37.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:35:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:35:52 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 42ms (Views: 37.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:36:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 40ms (Views: 36.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:37: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 32ms (Views: 28.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:37:40 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:38: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 49ms (Views: 44.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:38:54 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 38ms (Views: 34.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:39: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 32ms (Views: 27.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:39: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 45ms (Views: 42.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:40:00 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 36ms (Views: 32.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:40:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 41ms (Views: 38.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:40:36 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 45ms (Views: 41.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:41:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 43ms (Views: 38.1ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:41:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 39ms (Views: 35.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:42:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 40ms (Views: 35.2ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:42:26 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 44ms (Views: 41.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:42: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 38ms (Views: 33.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:43:16 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 42ms (Views: 39.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:46:37 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 49ms (Views: 45.5ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:47:01 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 43ms (Views: 39.5ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:47: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 39ms (Views: 36.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:47:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 34ms (Views: 31.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:47:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 42ms (Views: 37.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:48:23 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 40ms (Views: 37.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:49:05 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 49ms (Views: 45.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:49:29 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 42ms (Views: 37.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:49:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 41ms (Views: 37.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:50:21 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 40ms (Views: 36.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:50:30 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 31ms (Views: 27.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:51:26 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 52ms (Views: 48.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:51:57 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 45ms (Views: 41.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:53:06 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 41ms (Views: 35.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23: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" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 39ms (Views: 35.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:53:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 34ms (Views: 31.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/index" for ::1 at 2019-04-09 23:55:05 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/index"): + +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/index" for ::1 at 2019-04-09 23:55:06 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/index"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-09 23:55:15 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 26ms (Views: 23.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:56:21 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 38ms (Views: 32.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:58:57 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 40ms (Views: 36.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 23:59:29 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 38ms (Views: 34.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 00:00:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 50ms (Views: 45.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 00:00:47 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 43ms (Views: 40.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 00:01: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 46ms (Views: 40.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 00:01: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 51ms (Views: 46.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 00:02:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 44ms (Views: 40.7ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 00:24:55 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 99ms (Views: 89.1ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:06:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (43.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (56.0ms) +Completed 200 OK in 147ms (Views: 89.9ms | ActiveRecord: 43.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:11:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 75ms (Views: 69.1ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:12:54 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 59ms (Views: 54.7ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:14:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 90ms (Views: 87.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:17: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 59ms (Views: 55.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:18: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 42ms (Views: 38.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:18:44 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 43ms (Views: 38.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:18: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 30ms (Views: 26.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:21:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 55ms (Views: 50.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:22:54 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 47ms (Views: 44.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:25:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 54ms (Views: 49.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:27:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 63ms (Views: 59.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:28:32 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 66ms (Views: 62.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:29:16 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 52ms (Views: 48.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:29:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 28ms (Views: 23.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08: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" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 49ms (Views: 45.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:30:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 55ms (Views: 51.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:30: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 37ms (Views: 34.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:30: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 28ms (Views: 25.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:30:52 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:31:19 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 42ms (Views: 35.7ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:31: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 30ms (Views: 27.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:31:21 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:32:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 50ms (Views: 47.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:32:18 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 39ms (Views: 33.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:33: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 35ms (Views: 32.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:33: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 32ms (Views: 29.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:33:37 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 53ms (Views: 48.7ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:34: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 52ms (Views: 48.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:34: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 42ms (Views: 38.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:34:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 42ms (Views: 37.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:35:26 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 40ms (Views: 36.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:36: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 49ms (Views: 46.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:36:45 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 52ms (Views: 48.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:38:42 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 57ms (Views: 54.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:39:06 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 40ms (Views: 35.5ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:39:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 45ms (Views: 41.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08: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" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 36ms (Views: 32.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:40: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 42ms (Views: 38.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08: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" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 36ms (Views: 33.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:41: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 29ms (Views: 25.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:41:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 43ms (Views: 35.0ms | ActiveRecord: 3.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:41:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 46ms (Views: 39.9ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:41:59 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 57ms (Views: 53.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:42:14 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 52ms (Views: 48.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:42: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 54ms (Views: 51.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:43: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 59ms (Views: 56.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:43:40 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 52ms (Views: 48.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 08:47: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (18.6ms) +Completed 500 Internal Server Error in 85ms (ActiveRecord: 59.3ms) + + + +NoMethodError - undefined method `key' for #: + app/views/tasks/index.html.erb:6:in `block in _app_views_tasks_index_html_erb__3110990460414231526_70158161091600' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__3110990460414231526_70158161091600' + +Started POST "/__better_errors/1fabd9e4cdd4bacc/variables" for ::1 at 2019-04-10 08:47:37 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 09:03: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (8.5ms) +Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.4ms) + + + +NoMethodError - undefined method `key' for #: + app/views/tasks/index.html.erb:6:in `block in _app_views_tasks_index_html_erb__3110990460414231526_70158166436380' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__3110990460414231526_70158166436380' + +Started POST "/__better_errors/ff7d49f4dc58af54/variables" for ::1 at 2019-04-10 09:03:05 -0700 +Started POST "/__better_errors/ff7d49f4dc58af54/eval" for ::1 at 2019-04-10 09:03:10 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 09:03:21 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 33ms (Views: 29.5ms | ActiveRecord: 0.3ms) + + +Started GET "/2%3E%3Ch3%3ETask:%20%3Cspan%3EDentist%20appt%3C/span%3E%3C/h3%3E%3C/a%3E%20%20%20%3Carticle%3E%20%20%20%20%3Ch4%3EDescription:%3C/h4%3E%20%20%20%20%3Cp%3EMake%20dental%20appointment%20for%20deep%20cleaning%3C/p%3E%20%20%20%20%3Ch4%3EStatus:%3C/h4%3E%20%20%20%20%3Cp%20class=" for ::1 at 2019-04-10 09:03:25 -0700 + +ActionController::RoutingError (No route matches [GET] "/2%3E%3Ch3%3ETask:%20%3Cspan%3EDentist%20appt%3C/span%3E%3C/h3%3E%3C/a%3E%20%20%20%3Carticle%3E%20%20%20%20%3Ch4%3EDescription:%3C/h4%3E%20%20%20%20%3Cp%3EMake%20dental%20appointment%20for%20deep%20cleaning%3C/p%3E%20%20%20%20%3Ch4%3EStatus:%3C/h4%3E%20%20%20%20%3Cp%20class="): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-10 09:03:27 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 47ms (Views: 40.3ms | ActiveRecord: 2.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 09:03:28 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 25ms (Views: 20.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 09:03:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (7.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.0ms) +Completed 200 OK in 42ms (Views: 31.5ms | ActiveRecord: 7.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 09:11:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (11.1ms) +Completed 200 OK in 48ms (Views: 34.6ms | ActiveRecord: 7.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 09:43:53 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (9.1ms) +Completed 200 OK in 71ms (Views: 59.8ms | ActiveRecord: 1.0ms) + + +Started GET "/2" for ::1 at 2019-04-10 09:50:44 -0700 + +ActionController::RoutingError (No route matches [GET] "/2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/2" for ::1 at 2019-04-10 09:51:04 -0700 + +ActionController::RoutingError (No route matches [GET] "/2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-10 09:51:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (16.6ms) +Completed 200 OK in 71ms (Views: 57.5ms | ActiveRecord: 7.9ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 09:51:15 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/39b87c04bcfc19d4/variables" for ::1 at 2019-04-10 09:51:15 -0700 +Started GET "/books" for ::1 at 2019-04-10 16:29:54 -0700 +  (42.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +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-04-10 16:29:59 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (20.4ms) +Completed 200 OK in 382ms (Views: 362.4ms | ActiveRecord: 8.7ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:30:06 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/47992c35430a5631/variables" for ::1 at 2019-04-10 16:30:06 -0700 +Started GET "/tasks/2" for ::1 at 2019-04-10 16:30:44 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/bd97d9117b9334c4/variables" for ::1 at 2019-04-10 16:30:44 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:30:47 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 35ms (Views: 28.6ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:30:50 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/f052288028cdc1f2/variables" for ::1 at 2019-04-10 16:30:50 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:32:44 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 35ms (Views: 30.4ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:32:46 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/95c1f4d8aa4f891c/variables" for ::1 at 2019-04-10 16:32:46 -0700 +Started GET "/task/2" for ::1 at 2019-04-10 16:32:58 -0700 + +ActionController::RoutingError (No route matches [GET] "/task/2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/2" for ::1 at 2019-04-10 16:33:06 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/4259ea6b38a56ab6/variables" for ::1 at 2019-04-10 16:33:06 -0700 +Started GET "/tasks/2" for ::1 at 2019-04-10 16:33:41 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/3ac4ff939c3e5447/variables" for ::1 at 2019-04-10 16:33:41 -0700 +Started GET "/tasks/2" for ::1 at 2019-04-10 16:33:42 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/58cd72bc46a7989e/variables" for ::1 at 2019-04-10 16:33:42 -0700 +Started POST "/__better_errors/58cd72bc46a7989e/variables" for ::1 at 2019-04-10 16:33:44 -0700 +Started GET "/" for ::1 at 2019-04-10 16:33:52 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (2.3ms) +Completed 200 OK in 13ms (Views: 5.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:34:06 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (19.2ms) +Completed 200 OK in 69ms (Views: 45.8ms | ActiveRecord: 12.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:34:11 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 42ms (Views: 37.2ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-10 16:34:13 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/33c2711f7f43bf10/variables" for ::1 at 2019-04-10 16:34:13 -0700 +Started POST "/__better_errors/33c2711f7f43bf10/eval" for ::1 at 2019-04-10 16:34:26 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:35:15 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 40ms (Views: 34.9ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:35:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 25ms (Views: 22.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:35:20 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/d0a95b41e183be18/variables" for ::1 at 2019-04-10 16:35:20 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:35:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 34ms (Views: 29.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:36:10 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:36:11 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/e892716ca177ad3f/variables" for ::1 at 2019-04-10 16:36:12 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:36:14 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 34ms (Views: 29.7ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:36:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (12.4ms) +Completed 200 OK in 48ms (Views: 40.3ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:36:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 27ms (Views: 25.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-10 16:36:41 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/c715a0ba514657aa/variables" for ::1 at 2019-04-10 16:36:41 -0700 +Started GET "/tasks/5" for ::1 at 2019-04-10 16:39:11 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/3c73ba0ec1177280/variables" for ::1 at 2019-04-10 16:39:11 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:39:15 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.6ms) +Completed 200 OK in 55ms (Views: 40.2ms | ActiveRecord: 5.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 16:39:20 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/dde394fef6c1668a/variables" for ::1 at 2019-04-10 16:39:20 -0700 +Started GET "/tasks/1" for ::1 at 2019-04-10 17:14:14 -0700 + +NameError - uninitialized constant TaskController: + +Started POST "/__better_errors/abaa32ae742daa62/variables" for ::1 at 2019-04-10 17:14:15 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 17:14:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (11.2ms) +Completed 200 OK in 50ms (Views: 38.2ms | ActiveRecord: 6.8ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 17:14:42 -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:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (300.4ms) +Completed 500 Internal Server Error in 319ms (ActiveRecord: 0.8ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fa520b339f0> +Did you mean? @task: + app/views/tasks/show.html.erb:2:in `_app_views_tasks_show_html_erb___4215538765076609823_70173546717640' + +Started POST "/__better_errors/d232f027d72ba815/variables" for ::1 at 2019-04-10 17:14:43 -0700 +Started GET "/tasks/2" for ::1 at 2019-04-10 17:19:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 33ms (Views: 27.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 19:00:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 30ms (Views: 26.6ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-10 19:01:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 3.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 19:01:47 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 32ms (Views: 28.1ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 19:02:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 33ms (Views: 25.8ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 19:03:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 40ms (Views: 33.9ms | ActiveRecord: 1.8ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-10 19:03: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:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 39ms (Views: 33.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-10 19:11:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (400.9ms) +Completed 500 Internal Server Error in 410ms (ActiveRecord: 0.9ms) + + + +NameError - undefined local variable or method `edit_task_path' for #<#:0x00007fa51e7f3a80>: + app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___4215538765076609823_70173591603560' + +Started POST "/__better_errors/80a918ca6c8a06dc/variables" for ::1 at 2019-04-10 19:11:13 -0700 +Started GET "/tasks/5" for ::1 at 2019-04-10 19:11:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (215.4ms) +Completed 500 Internal Server Error in 227ms (ActiveRecord: 0.4ms) + + + +NoMethodError - undefined method `edit_task_path' for #<#:0x00007fa51b294e20>: + app/views/tasks/show.html.erb:8:in `_app_views_tasks_show_html_erb___4215538765076609823_70173551050700' + +Started POST "/__better_errors/2a54b9bbb80da8a8/variables" for ::1 at 2019-04-10 19:11:28 -0700 +Started GET "/tasks/5" for ::1 at 2019-04-10 19:12:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 29ms (Views: 24.7ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-10 19:12:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 33ms (Views: 25.7ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 08:26:21 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (67.0ms) +Completed 200 OK in 168ms (Views: 52.5ms | ActiveRecord: 102.5ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-11 08:26: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.5ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected keyword_end +...eze;@output_buffer.append=( end);@output_buffer.safe_append=' +... ^~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/new.html.erb:13: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/new.html.erb:15: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/new.html.erb:9:in `' + +Started POST "/__better_errors/034a6a235143cb33/variables" for ::1 at 2019-04-11 08:26:24 -0700 +Started GET "/tasks/new" for ::1 at 2019-04-11 08:26:47 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (26.5ms) +Completed 200 OK in 57ms (Views: 53.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-11 08:27:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (229.0ms) +Completed 500 Internal Server Error in 237ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `drop_down' for #: + app/views/tasks/new.html.erb:9:in `block in _app_views_tasks_new_html_erb__1716092769327941357_70173576549800' + app/views/tasks/new.html.erb:4:in `_app_views_tasks_new_html_erb__1716092769327941357_70173576549800' + +Started POST "/__better_errors/2cd27121de3f6e70/variables" for ::1 at 2019-04-11 08:27:32 -0700 +Started GET "/tasks/new" for ::1 at 2019-04-11 08:29:49 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (12.8ms) +Completed 200 OK in 36ms (Views: 33.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-11 08:30:17 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 0.0ms) + + +  (41.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.6ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddPriorityToTasks (20190411153205) +  (40.8ms) BEGIN + ↳ bin/rails:9 +  (6.7ms) ALTER TABLE "tasks" ADD "priority" integer + ↳ db/migrate/20190411153205_add_priority_to_tasks.rb:3 + ActiveRecord::SchemaMigration Create (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190411153205"]] + ↳ bin/rails:9 +  (1.0ms) 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.2ms) BEGIN + ↳ bin/rails:9 +  (0.1ms) COMMIT + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.2ms) 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/new" for ::1 at 2019-04-11 08:34:24 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 34ms (Views: 18.1ms | ActiveRecord: 5.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-11 08:36:05 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.5ms) +Completed 200 OK in 46ms (Views: 42.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-11 08:36:20 -0700 + +AbstractController::ActionNotFound - The action 'create' could not be found for TasksController: + +Started POST "/__better_errors/2f462ccea007b563/variables" for ::1 at 2019-04-11 08:36:20 -0700 +Started POST "/__better_errors/2f462ccea007b563/eval" for ::1 at 2019-04-11 08:37:00 -0700 +Started POST "/tasks" for ::1 at 2019-04-11 08:41:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Dnl7e0d5/6F0zEGwb7ulbcRhtepu5Y3630pVhtIZBR9Qv0OtTxQQqnb8avR8HpEj3PX0HVHbnUslimMQhhvL4w==", "task"=>{"name"=>"brush hair", "description"=>"brush hair daily", "priorty"=>"1"}, "commit"=>"Save Tasks"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:19 + Task Create (43.1ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "brush hair"], ["description", "brush hair daily"], ["created_at", "2019-04-11 15:41:18.431635"], ["updated_at", "2019-04-11 15:41:18.431635"]] + ↳ app/controllers/tasks_controller.rb:19 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:19 +Redirected to http://localhost:3000/tasks/6 +Completed 302 Found in 58ms (ActiveRecord: 43.7ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-11 08:41:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 55ms (Views: 50.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/22" for ::1 at 2019-04-11 09:24:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"22"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 22], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 5.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:24:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.6ms) +Completed 200 OK in 43ms (Views: 36.7ms | ActiveRecord: 3.9ms) + + +Started GET "/books/15" for ::1 at 2019-04-11 09:32:45 -0700 + +ActionController::RoutingError (No route matches [GET] "/books/15"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/15" for ::1 at 2019-04-11 09:32:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:7 +Redirected to http://localhost:3000Could not find task with id: -1 +Completed 302 Found in 10ms (ActiveRecord: 3.8ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-11 09:32:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 +Redirected to http://localhost:3000Could not find task with id: -1 +Completed 302 Found in 3ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-11 09:33:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 +Redirected to http://localhost:3000Could not find task with id: -1 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + + +Started GET "/tasks/" for ::1 at 2019-04-11 09:33:06 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (18.5ms) +Completed 200 OK in 64ms (Views: 55.4ms | ActiveRecord: 5.2ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-11 09:33:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:7 +Redirected to http://localhost:3000Could not find task with id: -1 +Completed 302 Found in 5ms (ActiveRecord: 2.2ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-11 09:33:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 +Redirected to http://localhost:3000Could not find task with id: -1 +Completed 302 Found in 3ms (ActiveRecord: 1.4ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-11 09:34:51 -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:7 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 11ms (ActiveRecord: 5.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:34: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (15.7ms) +Completed 200 OK in 42ms (Views: 32.9ms | ActiveRecord: 5.4ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-11 09:34:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (4.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 41ms (Views: 30.9ms | ActiveRecord: 4.7ms) + + +Started GET "/tasks/100" for ::1 at 2019-04-11 09:34:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"100"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 100], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:34:59 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 29ms (Views: 27.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:35:34 -0700 + +SyntaxError - syntax error, unexpected ')' + @task = Task.find_by(id:) + ^: + app/controllers/tasks_controller.rb:8:in `' + +Started POST "/__better_errors/d8372e4be9f37866/variables" for ::1 at 2019-04-11 09:35:34 -0700 +Started GET "/tasks" for ::1 at 2019-04-11 09:35:34 -0700 + +SyntaxError - syntax error, unexpected ')' + @task = Task.find_by(id:) + ^: + app/controllers/tasks_controller.rb:8:in `' + +Started POST "/__better_errors/8cf7fa631aa97d51/variables" for ::1 at 2019-04-11 09:35:34 -0700 +Started GET "/tasks" for ::1 at 2019-04-11 09:35: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (10.4ms) +Completed 200 OK in 41ms (Views: 31.0ms | ActiveRecord: 3.8ms) + + +Started GET "/tasks/200" for ::1 at 2019-04-11 09:35:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"200"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 200], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:35:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 30ms (Views: 27.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:36:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 38ms (Views: 31.0ms | ActiveRecord: 2.1ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-11 09:36:07 -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 30ms (Views: 26.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-11 09:36:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZOFiT9Dicr6FysqwLtZ+D85fGUvbKHnDAN3llzkfOMc6J1qZ2I+dtYf64fQ9c0pB1stYvOQWaXL6HdMBbR32Ow==", "task"=>{"name"=>"Picnic", "description"=>"have lunch on nice day outside with grapsies", "priorty"=>"9"}, "commit"=>"Save Tasks"} +  (5.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Picnic"], ["description", "have lunch on nice day outside with grapsies"], ["created_at", "2019-04-11 16:36:43.436658"], ["updated_at", "2019-04-11 16:36:43.436658"]] + ↳ app/controllers/tasks_controller.rb:22 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 13ms (ActiveRecord: 7.7ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-11 09:36:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 24ms (Views: 20.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-11 09:36:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (1.9ms) 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 5ms (ActiveRecord: 1.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:36:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (11.3ms) +Completed 200 OK in 42ms (Views: 37.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:36:57 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 34ms (Views: 30.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 15:20:29 -0700 +  (41.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (14.2ms) +Completed 200 OK in 244ms (Views: 228.6ms | ActiveRecord: 5.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-11 15:20:30 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (23.2ms) +Completed 200 OK in 104ms (Views: 98.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 15:20:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"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: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: 28.9ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 15:20:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (0.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.1ms) +Completed 200 OK in 33ms (Views: 27.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 15:21:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (6.9ms) 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.5ms) +Completed 200 OK in 44ms (Views: 31.8ms | ActiveRecord: 6.9ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 15:21:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (2.5ms) 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 (0.8ms) +Completed 200 OK in 42ms (Views: 35.0ms | ActiveRecord: 2.5ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 15:21:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (0.6ms) 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 (0.8ms) +Completed 200 OK in 41ms (Views: 32.9ms | ActiveRecord: 1.8ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 15:21:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (0.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 (0.5ms) +Completed 200 OK in 25ms (Views: 21.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/" for ::1 at 2019-04-11 15:21: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 47ms (Views: 41.1ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 15:22:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) 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 (0.6ms) +Completed 200 OK in 29ms (Views: 25.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/edit_task_path" for ::1 at 2019-04-11 15:22:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"edit_task_path"} + Task Load (2.6ms) 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 5ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 15:22:02 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 29ms (Views: 25.7ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 15:22:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (1.7ms) 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 49ms (Views: 40.6ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks/edit_task_path" for ::1 at 2019-04-11 15:22:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"edit_task_path"} + Task Load (7.3ms) 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 10ms (ActiveRecord: 7.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 15:22:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 33ms (Views: 28.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-11 15:23:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 45ms (Views: 37.7ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-11 15:24:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (0.8ms) 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 (1.0ms) +Completed 200 OK in 49ms (Views: 44.1ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-11 15:25:03 -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 (1.0ms) +Completed 200 OK in 43ms (Views: 37.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:25:05 -0700 + +AbstractController::ActionNotFound - The action 'edit' could not be found for TasksController: + +Started POST "/__better_errors/8847baf88d0bea31/variables" for ::1 at 2019-04-11 15:25:05 -0700 +Started GET "/tasks/5" for ::1 at 2019-04-11 15:25:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (38.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.7ms) +Completed 200 OK in 79ms (Views: 33.5ms | ActiveRecord: 38.3ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-11 15:25:10 -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]] + ↳ 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 48ms (Views: 44.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:25:14 -0700 + +AbstractController::ActionNotFound - The action 'edit' could not be found for TasksController: + +Started POST "/__better_errors/eb118da3a74eab74/variables" for ::1 at 2019-04-11 15:25:14 -0700 +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:27:03 -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]] + ↳ app/controllers/tasks_controller.rb:30 +Completed 406 Not Acceptable in 120ms (ActiveRecord: 7.4ms) + + + +ActionController::UnknownFormat - TasksController#edit is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.: + +Started POST "/__better_errors/fecdf8977c39855e/variables" for ::1 at 2019-04-11 15:27:04 -0700 +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:30:43 -0700 +Processing by TasksController#edit 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:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.7ms) +Completed 200 OK in 41ms (Views: 35.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:33:15 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (19.1ms) +Completed 200 OK in 68ms (Views: 62.4ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:35:11 -0700 +Processing by TasksController#edit 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:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.6ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms) + + + +SyntaxError - syntax error, unexpected ':' +...ut_buffer.append=( f.text_area: description);@output_buffer.... +... ^: + app/views/tasks/edit.html.erb:9:in `' + +Started POST "/__better_errors/6772ca1345029d98/variables" for ::1 at 2019-04-11 15:35:11 -0700 +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:35:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.2ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.8ms) + + + +SyntaxError - syntax error, unexpected ':' +...ut_buffer.append=( f.text_area: description);@output_buffer.... +... ^: + app/views/tasks/edit.html.erb:9:in `' + +Started POST "/__better_errors/7115e669695fbc8a/variables" for ::1 at 2019-04-11 15:35:31 -0700 +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:35:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"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:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.5ms) + + + +SyntaxError - syntax error, unexpected ':' +...ut_buffer.append=( f.text_area: :description);@output_buffer... +... ^: + app/views/tasks/edit.html.erb:9:in `' + +Started POST "/__better_errors/d626bcdf9257ebec/variables" for ::1 at 2019-04-11 15:35:50 -0700 +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:35:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"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:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.5ms) + + + +SyntaxError - syntax error, unexpected ':' +...ut_buffer.append=( f.text_area: :description);@output_buffer... +... ^: + app/views/tasks/edit.html.erb:9:in `' + +Started POST "/__better_errors/c69a4dfec7aa07e1/variables" for ::1 at 2019-04-11 15:35:52 -0700 +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:36:31 -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]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.1ms) +Completed 200 OK in 35ms (Views: 31.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:38:11 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (2.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 133ms (Views: 126.0ms | ActiveRecord: 2.4ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:38:47 -0700 +Processing by TasksController#edit 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:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.1ms) +Completed 200 OK in 43ms (Views: 40.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:39:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.8ms) +Completed 200 OK in 50ms (Views: 43.4ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:40:29 -0700 +Processing by TasksController#edit 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:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.6ms) +Completed 200 OK in 57ms (Views: 51.8ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:41:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.1ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms) + + + +SyntaxError - syntax error, unexpected '<' + <%= f.label :description);@out... + ^ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:9: syntax error, unexpected ')' +...t_area :description, rows: 10%);@output_buffer.safe_append=' +... ^ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:15: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:19: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:21: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/edit.html.erb:8:in `' + +Started POST "/__better_errors/01503410597bed37/variables" for ::1 at 2019-04-11 15:41:26 -0700 +Started GET "/tasks/5" for ::1 at 2019-04-11 15:44:17 -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]] + ↳ 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 34ms (Views: 30.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:44:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (8.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +Completed 500 Internal Server Error in 29ms (ActiveRecord: 8.0ms) + + + +SyntaxError - syntax error, unexpected '<' + <%= f.label :description);@out... + ^ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:15: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:19: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:21: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/edit.html.erb:8:in `' + +Started POST "/__better_errors/84a2e7ad02f4a1d7/variables" for ::1 at 2019-04-11 15:44:20 -0700 +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:45:10 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.1ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.4ms) + + + +SyntaxError - syntax error, unexpected '<' + <%= f.label :description);@out... + ^ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:15: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:19: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:21: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/edit.html.erb:8:in `' + +Started POST "/__better_errors/7c1606c50d74f4c1/variables" for ::1 at 2019-04-11 15:45:10 -0700 +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:45:11 -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]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) + + + +SyntaxError - syntax error, unexpected '<' + <%= f.label :description);@out... + ^ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:15: syntax error, unexpected keyword_end, expecting ')' +'.freeze; end + ^~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:19: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/Users/qqdipps/ada/projects/TaskList/app/views/tasks/edit.html.erb:21: syntax error, unexpected keyword_end, expecting ')' + end + ^~~: + app/views/tasks/edit.html.erb:8:in `' + +Started POST "/__better_errors/5afa2380f6472626/variables" for ::1 at 2019-04-11 15:45:11 -0700 +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:51:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"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:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (21.6ms) +Completed 200 OK in 108ms (Views: 91.1ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:51:26 -0700 +Processing by TasksController#edit 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:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 70ms (Views: 62.7ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:52:09 -0700 +Processing by TasksController#edit 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:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.1ms) +Completed 200 OK in 91ms (Views: 86.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-11 15:55:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.6ms) +Completed 200 OK in 108ms (Views: 101.3ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 11:05:15 -0700 +  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (44.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (81.3ms) +Completed 200 OK in 471ms (Views: 345.5ms | ActiveRecord: 108.8ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-12 11:05:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (5.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 (1.1ms) +Completed 200 OK in 44ms (Views: 26.7ms | ActiveRecord: 6.9ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-12 11:05:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (2.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (24.2ms) +Completed 200 OK in 55ms (Views: 47.0ms | ActiveRecord: 2.7ms) + + +Started PATCH "/tasks/5" for ::1 at 2019-04-12 11:05:22 -0700 + +AbstractController::ActionNotFound - The action 'update' could not be found for TasksController: + +Started POST "/__better_errors/34a35b41a18e89cd/variables" for ::1 at 2019-04-12 11:05:22 -0700 +Started GET "/tasks/" for ::1 at 2019-04-12 11:07:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (18.1ms) +Completed 200 OK in 58ms (Views: 41.2ms | ActiveRecord: 7.7ms) + + +Started GET "/tasks/" for ::1 at 2019-04-12 11:08:10 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 1.6ms) + + +Started GET "/tasks/" for ::1 at 2019-04-12 11:09:10 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 39ms (Views: 36.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 11:09:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 40ms (Views: 35.5ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 11:09:15 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.0ms) +Completed 200 OK in 52ms (Views: 48.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 11:09:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"rKfg3Fs3hUpPLpZhJE97O1tXArvz21nrHZ3ZJm60PjCsYEwTJ3M+w2XwDRXC80SfjjD9qrMx7hB6SZhsBIgNoQ==", "task"=>{"name"=>"insurance", "description"=>"get information for insurance", "priorty"=>"9"}, "commit"=>"Save Tasks"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (4.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "insurance"], ["description", "get information for insurance"], ["created_at", "2019-04-12 18:09:43.081627"], ["updated_at", "2019-04-12 18:09:43.081627"]] + ↳ app/controllers/tasks_controller.rb:22 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 +Redirected to http://localhost:3000/tasks/8 +Completed 302 Found in 12ms (ActiveRecord: 5.8ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-12 11:09:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["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 32ms (Views: 26.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/8/edit" for ::1 at 2019-04-12 11:09:56 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"8"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:30 +Completed 500 Internal Server Error in 226ms (ActiveRecord: 7.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:31:in `edit' + +Started POST "/__better_errors/175150b38c797692/variables" for ::1 at 2019-04-12 11:09:56 -0700 +Started GET "/tasks/" for ::1 at 2019-04-12 11:20:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (13.4ms) +Completed 200 OK in 51ms (Views: 35.5ms | ActiveRecord: 9.7ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 11:20:46 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 35ms (Views: 31.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 11:20:49 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"8cguiOd5sRw908XTVnP6cRo2wmeIu+jUeasE5SJJSU7xD4JHmz0KlRcNXqewz8XVz1E9dshRXy8ef0WvSHV63w==", "task"=>{"name"=>"asdf", "description"=>"asdf", "priorty"=>"1"}, "commit"=>"Save Tasks"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (1.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asdf"], ["description", "asdf"], ["created_at", "2019-04-12 18:20:49.530872"], ["updated_at", "2019-04-12 18:20:49.530872"]] + ↳ app/controllers/tasks_controller.rb:22 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 9ms (ActiveRecord: 3.9ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-12 11:20:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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 27ms (Views: 22.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 11:23:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (16.9ms) +Completed 200 OK in 60ms (Views: 47.5ms | ActiveRecord: 7.6ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 11:23:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (17.4ms) +Completed 200 OK in 55ms (Views: 50.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 11:23:11 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"G5bvHMcvhhy4gTugdekStse7PqCJqyqQN8nySlfByBobUUPTu2s9lZJfoNSTVS0SEtzBsclBnWtQHbMAPf37iw==", "task"=>{"name"=>"asdf", "description"=>"asdf", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +ActiveModel::ForbiddenAttributesError - ActiveModel::ForbiddenAttributesError: + app/controllers/tasks_controller.rb:18:in `create' + +Started POST "/__better_errors/294b289b8ed8fcc0/variables" for ::1 at 2019-04-12 11:23:11 -0700 +Started POST "/tasks" for ::1 at 2019-04-12 11:27:11 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"G5bvHMcvhhy4gTugdekStse7PqCJqyqQN8nySlfByBobUUPTu2s9lZJfoNSTVS0SEtzBsclBnWtQHbMAPf37iw==", "task"=>{"name"=>"asdf", "description"=>"asdf", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms) + + + +ActiveModel::ForbiddenAttributesError - ActiveModel::ForbiddenAttributesError: + app/controllers/tasks_controller.rb:18:in `create' + +Started POST "/__better_errors/2aab55d3efedb1c5/variables" for ::1 at 2019-04-12 11:27:11 -0700 +Started POST "/tasks" for ::1 at 2019-04-12 11:27:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"G5bvHMcvhhy4gTugdekStse7PqCJqyqQN8nySlfByBobUUPTu2s9lZJfoNSTVS0SEtzBsclBnWtQHbMAPf37iw==", "task"=>{"name"=>"asdf", "description"=>"asdf", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Completed 500 Internal Server Error in 237ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_params' for # +Did you mean? task_param: + app/controllers/tasks_controller.rb:18:in `create' + +Started POST "/__better_errors/3c3bcd9920660e6f/variables" for ::1 at 2019-04-12 11:27:33 -0700 +Started POST "/tasks" for ::1 at 2019-04-12 11:27:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"G5bvHMcvhhy4gTugdekStse7PqCJqyqQN8nySlfByBobUUPTu2s9lZJfoNSTVS0SEtzBsclBnWtQHbMAPf37iw==", "task"=>{"name"=>"asdf", "description"=>"asdf", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:20 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asdf"], ["description", "asdf"], ["created_at", "2019-04-12 18:27:51.560660"], ["updated_at", "2019-04-12 18:27:51.560660"]] + ↳ app/controllers/tasks_controller.rb:20 +  (1.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:20 +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 26ms (ActiveRecord: 5.1ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-12 11:27:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 51ms (Views: 46.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 11:27:53 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.2ms) +Completed 200 OK in 43ms (Views: 36.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 11:27:57 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ijUhPaRj2Y8lq2r2NBP0yNWi6yzETRAU/2nUw6UhcmyK8o3y2CdiBg918YLSr8tsAMUUPYSnp++YvZWJzx1B/Q==", "task"=>{"name"=>"", "description"=>"", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (1.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:20 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", ""], ["description", ""], ["created_at", "2019-04-12 18:27:57.262293"], ["updated_at", "2019-04-12 18:27:57.262293"]] + ↳ app/controllers/tasks_controller.rb:20 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:20 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 8ms (ActiveRecord: 3.2ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-12 11:27:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.2ms) 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 31ms (Views: 27.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/14/edit" for ::1 at 2019-04-12 11:28:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"14"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 11:28:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 44ms (Views: 39.8ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-12 17:09:11 -0700 +  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (42.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (101.4ms) +Completed 200 OK in 426ms (Views: 284.8ms | ActiveRecord: 127.4ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 17:10:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (41.5ms) 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 (0.8ms) +Completed 200 OK in 90ms (Views: 24.0ms | ActiveRecord: 42.1ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-12 17:10:50 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (2.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (20.7ms) +Completed 200 OK in 54ms (Views: 44.2ms | ActiveRecord: 2.6ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 17:10:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ioZLyOMgYCYTvNZ86NUIAp88k+BMSVXR//M9JGGBMFm1i8ZHexvvRUO9ZGOCLcPUgqOILI0dNdUsoJ5jda0Yyw==", "task"=>{"name"=>"Clean Floors", "description"=>"Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"3"} +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 101ms (ActiveRecord: 0.0ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-12 17:11:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 32ms (Views: 28.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 17:11:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"M1ti10XAnQYyUSnSpQCjd2pn3Lw2rUwvxgavlaPRtWyJrflwHv9iWyC6/X/F9UR3y8HxWmzzjgglVJWo2//TDg==", "task"=>{"name"=>"Clean Floors", "description"=>"Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas", "priorty"=>"6"}, "commit"=>"Update Tasks", "id"=>"3"} +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 106ms (ActiveRecord: 0.0ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-12 17:13:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 51ms (Views: 29.3ms | ActiveRecord: 7.4ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 17:13:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PVHO1vs8HNrKGehuVWpLgUVV1OEjROUYo3im5F1whyyHp1VxoAPjh9jyPMM1n6yB5PP5B3kaJz9AKpzZJV7hTg==", "task"=>{"name"=>"Clean Floors", "description"=>"Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas", "priorty"=>"7"}, "commit"=>"Update Tasks", "id"=>"3"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Completed 500 Internal Server Error in 217ms (ActiveRecord: 2.4ms) + + + +NameError - undefined local variable or method `cuur_task' for # +Did you mean? curr_task: + app/controllers/tasks_controller.rb:38:in `update' + +Started POST "/__better_errors/970c400d2409c6fb/variables" for ::1 at 2019-04-12 17:13:10 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-12 17:13:23 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PVHO1vs8HNrKGehuVWpLgUVV1OEjROUYo3im5F1whyyHp1VxoAPjh9jyPMM1n6yB5PP5B3kaJz9AKpzZJV7hTg==", "task"=>{"name"=>"Clean Floors", "description"=>"Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas", "priorty"=>"7"}, "commit"=>"Update Tasks", "id"=>"3"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Completed 500 Internal Server Error in 278ms (ActiveRecord: 1.0ms) + + + +NameError - undefined local variable or method `task_parms' for # +Did you mean? task_params + task_path: + app/controllers/tasks_controller.rb:38:in `update' + +Started POST "/__better_errors/039f4b7cd82c301a/variables" for ::1 at 2019-04-12 17:13:23 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-12 17:13:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PVHO1vs8HNrKGehuVWpLgUVV1OEjROUYo3im5F1whyyHp1VxoAPjh9jyPMM1n6yB5PP5B3kaJz9AKpzZJV7hTg==", "task"=>{"name"=>"Clean Floors", "description"=>"Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas", "priorty"=>"7"}, "commit"=>"Update Tasks", "id"=>"3"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 117ms (ActiveRecord: 4.0ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 17:13:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PVHO1vs8HNrKGehuVWpLgUVV1OEjROUYo3im5F1whyyHp1VxoAPjh9jyPMM1n6yB5PP5B3kaJz9AKpzZJV7hTg==", "task"=>{"name"=>"Clean Floors", "description"=>"Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas", "priorty"=>"7"}, "commit"=>"Update Tasks", "id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 118ms (ActiveRecord: 6.8ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 17:14:11 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PVHO1vs8HNrKGehuVWpLgUVV1OEjROUYo3im5F1whyyHp1VxoAPjh9jyPMM1n6yB5PP5B3kaJz9AKpzZJV7hTg==", "task"=>{"name"=>"Clean Floors", "description"=>"Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas", "priorty"=>"7"}, "commit"=>"Update Tasks", "id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 132ms (ActiveRecord: 4.1ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 17:14:36 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PVHO1vs8HNrKGehuVWpLgUVV1OEjROUYo3im5F1whyyHp1VxoAPjh9jyPMM1n6yB5PP5B3kaJz9AKpzZJV7hTg==", "task"=>{"name"=>"Clean Floors", "description"=>"Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas", "priorty"=>"7"}, "commit"=>"Update Tasks", "id"=>"3"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 126ms (ActiveRecord: 5.9ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 17:14:50 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PVHO1vs8HNrKGehuVWpLgUVV1OEjROUYo3im5F1whyyHp1VxoAPjh9jyPMM1n6yB5PP5B3kaJz9AKpzZJV7hTg==", "task"=>{"name"=>"Clean Floors", "description"=>"Use broom and steam mop on floors to clean hardwood after vacuuming carpet areas", "priorty"=>"7"}, "commit"=>"Update Tasks", "id"=>"3"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 120ms (ActiveRecord: 5.4ms) + + +Started POST "/__better_errors/039f4b7cd82c301a/eval" for ::1 at 2019-04-12 17:14:59 -0700 +Started POST "/__better_errors/039f4b7cd82c301a/eval" for ::1 at 2019-04-12 17:15:47 -0700 +Started POST "/__better_errors/039f4b7cd82c301a/eval" for ::1 at 2019-04-12 17:15:51 -0700 +Started POST "/__better_errors/039f4b7cd82c301a/eval" for ::1 at 2019-04-12 17:16:19 -0700 +Started POST "/__better_errors/039f4b7cd82c301a/eval" for ::1 at 2019-04-12 17:16:29 -0700 +Started POST "/__better_errors/039f4b7cd82c301a/eval" for ::1 at 2019-04-12 17:16:33 -0700 +Started GET "/tasks/" for ::1 at 2019-04-12 17:16:47 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 297ms (Views: 291.4ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-12 17:16:49 -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.9ms) +Completed 200 OK in 54ms (Views: 45.1ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/11/edit" for ::1 at 2019-04-12 17:16:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"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:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (19.8ms) +Completed 200 OK in 53ms (Views: 45.8ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/11" for ::1 at 2019-04-12 17:17:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"GEBsXjShvsT5Kqy8sKZhEc3JtzoGN+jktPej3iaacwK/RZNxUxT6zMZWRVmDrcZLNK/SpLEFJXlROWo4UEmLAg==", "task"=>{"name"=>"added information ", "description"=>"adding more stufffs so its not so tracky", "priorty"=>"1"}, "commit"=>"Update Tasks", "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:36 +Unpermitted parameter: :priorty +  (0.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "added information "], ["description", "adding more stufffs so its not so tracky"], ["updated_at", "2019-04-13 00:17:08.838413"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:38 +  (43.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +No template found for TasksController#update, rendering head :no_content +Completed 204 No Content in 154ms (ActiveRecord: 45.4ms) + + +Started GET "/tasks/11/edit" for ::1 at 2019-04-12 17:18:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"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:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (20.3ms) +Completed 200 OK in 83ms (Views: 55.2ms | ActiveRecord: 9.5ms) + + +Started PATCH "/tasks/11" for ::1 at 2019-04-12 17:18:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"UAFExugMb0LrT83H8WYR/jC2Qw6kNUzI3jLl64xYEr7q999hszOQH/mkGWqRk/b+kRBu6P5rju89YN/W9HZ03A==", "task"=>{"name"=>"added information ", "description"=>"adding more stufffs so its not so tracky", "priorty"=>"1"}, "commit"=>"Update Tasks", "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:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-12 17:18:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 29ms (Views: 23.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/11/edit" for ::1 at 2019-04-12 17:18:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.5ms) +Completed 200 OK in 53ms (Views: 46.7ms | ActiveRecord: 1.5ms) + + +Started PATCH "/tasks/11" for ::1 at 2019-04-12 17:18:41 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"e5wsZWyvXCf7evj9YISHVBXYVj0zeW9IkMfNWvBRRoncmdNKCxoYL8QGERhTjyAO7L4zo4RLotV1CQS8hoK+iQ==", "task"=>{"name"=>"added information ", "description"=>"adding more stufffs so its not so tracky", "priorty"=>"9"}, "commit"=>"Update Tasks", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 9ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-12 17:18:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 37ms (Views: 30.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-12 17:18:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (5.2ms) 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 (2.1ms) +Completed 200 OK in 60ms (Views: 46.3ms | ActiveRecord: 5.2ms) + + +Started GET "/tasks/11/edit" for ::1 at 2019-04-12 17:24:24 -0700 +Processing by TasksController#edit 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:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 75ms (Views: 43.3ms | ActiveRecord: 7.6ms) + + +Started PATCH "/tasks/11" for ::1 at 2019-04-12 17:24:26 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"q+Nkh77qhT+FS1MVj4dJHtuNC03Ln08LA9akCWN23qMM5puo2V/BN7o3uvC8jO5EIutu03ytgpbmGG3vFaUmow==", "task"=>{"name"=>"added information ", "description"=>"adding more stufffs so its not so tracky", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"11"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 21ms (ActiveRecord: 0.6ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-12 17:24:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (1.7ms) 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 27ms (Views: 20.9ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 20:09:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (35.0ms) +Completed 200 OK in 170ms (Views: 156.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 20:09:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KNMnlTN/PFTXf/yJEs8ZuekmgAO1BH3eaj7FRWBZ1UAoFItaTzuH3f2hZ/30cyYdPEF/EvXuyiUN6oQPCmXm0Q==", "task"=>{"name"=>"heres a new task", "description"=>"this is a new task", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:20 + Task Create (447.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "heres a new task"], ["description", "this is a new task"], ["created_at", "2019-04-14 03:09:22.740181"], ["updated_at", "2019-04-14 03:09:22.740181"]] + ↳ app/controllers/tasks_controller.rb:20 +  (1.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:20 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 466ms (ActiveRecord: 448.8ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-13 20:09:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"12"} + Task Load (0.6ms) 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 (1.6ms) +Completed 200 OK in 56ms (Views: 46.7ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/12/edit" for ::1 at 2019-04-13 20:09:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"12"} + Task Load (28.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.6ms) +Completed 200 OK in 175ms (Views: 57.4ms | ActiveRecord: 28.1ms) + + +Started PATCH "/tasks/12" for ::1 at 2019-04-13 20:09:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZO0VI0J7qoTa/Eg9h+1F1pauJpjeh3Bvg5PA/DSEq/9F1IXAiVU1doTIlIrGYrlYcN2FBttVfANEGLDbrfl5Sg==", "task"=>{"name"=>"old task", "description"=>"this is a new task", "priorty"=>"8"}, "commit"=>"Update Tasks", "id"=>"12"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (1.6ms) UPDATE "tasks" SET "name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["name", "old task"], ["updated_at", "2019-04-14 03:09:42.996828"], ["id", 12]] + ↳ app/controllers/tasks_controller.rb:38 +  (41.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 56ms (ActiveRecord: 45.0ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-13 20:09:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"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: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: 35.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 20:09:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (19.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (24.1ms) +Completed 200 OK in 80ms (Views: 54.9ms | ActiveRecord: 19.0ms) + + +Started GET "/tasks/34/edit" for ::1 at 2019-04-13 20:10:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"34"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 34], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 20:10: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 46ms (Views: 42.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 20:19:24 -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 42ms (Views: 25.4ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/11/edit" for ::1 at 2019-04-13 20:19:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (7.0ms) +Completed 200 OK in 59ms (Views: 52.5ms | ActiveRecord: 1.7ms) + + +Started PATCH "/tasks/11" for ::1 at 2019-04-13 20:19:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ww2A4nztFK2nwR+cmUM0TTeY0XeGRIaNXZP8nb5yoztkCH/NG1hQpZi99nmqSJMXzv606TF2SxC4XTV7yKFbOw==", "task"=>{"name"=>"new updatee wrong id", "description"=>"adding more stufffs so its not so tracky", "priorty"=>"1"}, "commit"=>"Update Tasks", "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:36 +Unpermitted parameter: :priorty +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (1.1ms) UPDATE "tasks" SET "name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["name", "new updatee wrong id"], ["updated_at", "2019-04-14 03:19:46.471699"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:38 +  (2.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 11ms (ActiveRecord: 4.1ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 20:19:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb: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: 22.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 20:24:28 -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 (1.7ms) +Completed 200 OK in 198ms (Views: 191.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 20:24:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.8ms) +Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 20:26:29 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 438ms (Views: 365.3ms | ActiveRecord: 47.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 20:26:33 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 47ms (Views: 44.0ms | ActiveRecord: 0.7ms) + + +Started GET "/books" for ::1 at 2019-04-13 20:27:07 -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 "/" for ::1 at 2019-04-13 20:27:11 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 41ms (Views: 37.2ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-13 20:30:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 45ms (Views: 40.3ms | ActiveRecord: 0.9ms) + + +Started GET "/" for ::1 at 2019-04-13 20:30:27 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 31ms (Views: 26.9ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-13 20:31: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 100ms (Views: 95.5ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-13 20:31:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 26ms (Views: 23.9ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-13 20:31:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 27ms (Views: 22.8ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-13 20:31:50 -0700 +  (41.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (16.1ms) +Completed 200 OK in 425ms (Views: 405.5ms | ActiveRecord: 9.8ms) + + +Started GET "/" for ::1 at 2019-04-13 20:32:10 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 44ms (Views: 41.4ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-13 20:33:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (13.0ms) +Completed 200 OK in 67ms (Views: 55.7ms | ActiveRecord: 0.9ms) + + +Started GET "/" for ::1 at 2019-04-13 20:33: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 31ms (Views: 27.9ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-13 20:33: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 33ms (Views: 29.3ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-13 20:33:40 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (16.7ms) +Completed 200 OK in 328ms (Views: 307.7ms | ActiveRecord: 7.0ms) + + +Started GET "/" for ::1 at 2019-04-13 20:33:43 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 27ms (Views: 23.0ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-13 20:33: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 25ms (Views: 21.8ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-13 20:34:55 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 102ms (Views: 98.0ms | ActiveRecord: 0.8ms) + + +Started GET "/" for ::1 at 2019-04-13 20:34: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-13 20:35:10 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (16.0ms) +Completed 200 OK in 301ms (Views: 285.2ms | ActiveRecord: 5.5ms) + + +Started GET "/" for ::1 at 2019-04-13 20:35: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 33ms (Views: 26.3ms | ActiveRecord: 0.5ms) + + +Started GET "/" for ::1 at 2019-04-13 20:36:43 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 72ms (Views: 68.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 20:37:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 68ms (Views: 33.9ms | ActiveRecord: 1.6ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 20:57:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 47ms (Views: 41.5ms | ActiveRecord: 0.7ms) + + +Started GET "/" for ::1 at 2019-04-13 22:05:26 -0700 +  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (16.5ms) +Completed 200 OK in 303ms (Views: 287.4ms | ActiveRecord: 7.8ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 22:05:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (2.0ms) 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.9ms) +Completed 200 OK in 36ms (Views: 21.7ms | ActiveRecord: 6.6ms) + + +Started GET "/tasks/11/edit" for ::1 at 2019-04-13 22:05:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (4.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.9ms) +Completed 200 OK in 43ms (Views: 33.4ms | ActiveRecord: 4.5ms) + + +Started GET "/tasks/16/edit" for ::1 at 2019-04-13 22:05:47 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"16"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 22:05: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 26ms (Views: 22.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 22:05:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (8.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 (1.2ms) +Completed 200 OK in 44ms (Views: 30.0ms | ActiveRecord: 8.9ms) + + +Started GET "/tasks/11/edit" for ::1 at 2019-04-13 22:05:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"11"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.5ms) +Completed 200 OK in 34ms (Views: 27.1ms | ActiveRecord: 1.6ms) + + +Started PATCH "/tasks/11" for ::1 at 2019-04-13 22:06:11 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"lUXAClbA9F4WvDpG2QWvuC7ZC7uO7TEhsf9elL1EBzNAhSKBe41fs1/S+Qs+YiJzMbJm9qn4uh+snZZ2+pVQPQ==", "task"=>{"name"=>"new updatee wrong id", "description"=>"adding more stufffs so its not so tracky sdf", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"11"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (0.8ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "adding more stufffs so its not so tracky sdf"], ["updated_at", "2019-04-14 05:06:11.479542"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:38 +  (40.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 50ms (ActiveRecord: 42.7ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 22:06:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.2ms) 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 22ms (Views: 19.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 23:22:19 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +ActiveRecord::PendingMigrationError - Migrations are pending. To resolve this issue, run: + + bin/rails db:migrate RAILS_ENV=development + +: + +Started POST "/__better_errors/179c171c284995e3/variables" for ::1 at 2019-04-13 23:22:19 -0700 +  (1.9ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20190409224945) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (45.5ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/migrate/20190409224945_create_tasks.rb:3 +  (0.2ms) ROLLBACK + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] + ↳ bin/rails:9 +  (194.6ms) DROP DATABASE IF EXISTS "TaskList_development" + ↳ bin/rails:9 +  (202.4ms) DROP DATABASE IF EXISTS "TaskList_test" + ↳ bin/rails:9 +  (497.8ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (392.0ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" + ↳ db/schema.rb:16 +  (0.4ms) DROP TABLE IF EXISTS "tasks" CASCADE + ↳ db/schema.rb:18 +  (5.7ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "priority_level" integer, "priority" integer) + ↳ db/schema.rb:18 +  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES (20190411153205) + ↳ db/schema.rb:13 +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES +(20190410035722), +(20190409224945); + + + ↳ db/schema.rb:13 +  (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) + ↳ db/schema.rb:13 + 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]] + ↳ db/schema.rb:13 +  (0.2ms) BEGIN + ↳ db/schema.rb:13 + 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", "development"], ["created_at", "2019-04-14 06:26:11.217494"], ["updated_at", "2019-04-14 06:26:11.217494"]] + ↳ db/schema.rb:13 +  (0.3ms) COMMIT + ↳ db/schema.rb:13 + 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 +  (0.2ms) COMMIT + ↳ bin/rails:9 + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" + ↳ db/schema.rb:16 +  (0.3ms) DROP TABLE IF EXISTS "tasks" CASCADE + ↳ db/schema.rb:18 +  (7.6ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "priority_level" integer, "priority" integer) + ↳ db/schema.rb:18 +  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES (20190411153205) + ↳ db/schema.rb:13 +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES +(20190410035722), +(20190409224945); + + + ↳ db/schema.rb:13 +  (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) + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ db/schema.rb:13 +  (0.1ms) BEGIN + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-04-14 06:26:11.293514"], ["updated_at", "2019-04-14 06:26:11.293514"]] + ↳ db/schema.rb:13 +  (0.3ms) COMMIT + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.2ms) 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 Update (0.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-04-14 06:26:11.298836"], ["key", "environment"]] + ↳ bin/rails:9 +  (0.3ms) COMMIT + ↳ bin/rails:9 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/tasks/11" for ::1 at 2019-04-13 23:26:21 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#show as HTML + Parameters: {"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:8 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 15ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 23:26:21 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 206ms (Views: 203.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 23:26:29 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 33ms (Views: 28.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 23:26:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.9ms) +Completed 200 OK in 46ms (Views: 26.9ms | ActiveRecord: 9.3ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 23:26:52 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"K4rj+UKkpY+HSVPR6S27HRdAWtjniSeDFwN9hpWZ+lW2thBgy1p9B+ESye32asvAeZ31nNoq5yLtDCgO25ivYw==", "task"=>{"name"=>"adding a new task", "description"=>"", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:48:in `task_params' + app/controllers/tasks_controller.rb:18:in `create' + +Started POST "/__better_errors/7eadfd2d8c8ecdfb/variables" for ::1 at 2019-04-13 23:26:52 -0700 +Started POST "/__better_errors/7eadfd2d8c8ecdfb/eval" for ::1 at 2019-04-13 23:27:06 -0700 +Unpermitted parameter: :priorty +Started POST "/__better_errors/7eadfd2d8c8ecdfb/eval" for ::1 at 2019-04-13 23:27:25 -0700 +Started POST "/__better_errors/7eadfd2d8c8ecdfb/eval" for ::1 at 2019-04-13 23:27:33 -0700 +Started POST "/tasks" for ::1 at 2019-04-13 23:27:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"K4rj+UKkpY+HSVPR6S27HRdAWtjniSeDFwN9hpWZ+lW2thBgy1p9B+ESye32asvAeZ31nNoq5yLtDCgO25ivYw==", "task"=>{"name"=>"adding a new task", "description"=>"", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:48:in `task_params' + app/controllers/tasks_controller.rb:18:in `create' + +Started POST "/__better_errors/22cfc09535ab4df4/variables" for ::1 at 2019-04-13 23:27:58 -0700 +Started POST "/__better_errors/22cfc09535ab4df4/eval" for ::1 at 2019-04-13 23:28:02 -0700 +Started POST "/__better_errors/22cfc09535ab4df4/eval" for ::1 at 2019-04-13 23:28:17 -0700 +Unpermitted parameter: :priorty +Started POST "/__better_errors/22cfc09535ab4df4/eval" for ::1 at 2019-04-13 23:28:49 -0700 +Started POST "/__better_errors/22cfc09535ab4df4/eval" for ::1 at 2019-04-13 23:28:52 -0700 +Started POST "/__better_errors/22cfc09535ab4df4/eval" for ::1 at 2019-04-13 23:29:13 -0700 +Started POST "/__better_errors/22cfc09535ab4df4/eval" for ::1 at 2019-04-13 23:29:51 -0700 +Started POST "/__better_errors/22cfc09535ab4df4/eval" for ::1 at 2019-04-13 23:30:48 -0700 +Started POST "/__better_errors/22cfc09535ab4df4/eval" for ::1 at 2019-04-13 23:31:10 -0700 +Started POST "/__better_errors/22cfc09535ab4df4/eval" for ::1 at 2019-04-13 23:31:21 -0700 +Started POST "/tasks" for ::1 at 2019-04-13 23:31:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"K4rj+UKkpY+HSVPR6S27HRdAWtjniSeDFwN9hpWZ+lW2thBgy1p9B+ESye32asvAeZ31nNoq5yLtDCgO25ivYw==", "task"=>{"name"=>"adding a new task", "description"=>"", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:48:in `task_params' + app/controllers/tasks_controller.rb:18:in `create' + +Started POST "/__better_errors/5ee63317cfa43d95/variables" for ::1 at 2019-04-13 23:31:25 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:31:29 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:32:21 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:32:47 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:32:54 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:35:00 -0700 +Unpermitted parameter: :priorty +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:35:14 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:35:18 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:35:23 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:35:45 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:37:13 -0700 +Started POST "/__better_errors/5ee63317cfa43d95/eval" for ::1 at 2019-04-13 23:37:15 -0700 +  (0.2ms) BEGIN + Task Create (1.2ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "new task"], ["created_at", "2019-04-14 07:07:34.588294"], ["updated_at", "2019-04-14 07:07:34.588294"]] +  (0.5ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "new task"], ["created_at", "2019-04-14 07:07:41.718928"], ["updated_at", "2019-04-14 07:07:41.718928"]] +  (1.3ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "new task"], ["created_at", "2019-04-14 07:07:42.618620"], ["updated_at", "2019-04-14 07:07:42.618620"]] +  (1.2ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "new task"], ["created_at", "2019-04-14 07:07:43.555330"], ["updated_at", "2019-04-14 07:07:43.555330"]] +  (1.3ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "new task"], ["created_at", "2019-04-14 07:07:44.279231"], ["updated_at", "2019-04-14 07:07:44.279231"]] +  (1.3ms) COMMIT + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +  (0.2ms) BEGIN + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 3]] +  (1.1ms) COMMIT +Started POST "/tasks" for ::1 at 2019-04-14 01:37:19 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"K4rj+UKkpY+HSVPR6S27HRdAWtjniSeDFwN9hpWZ+lW2thBgy1p9B+ESye32asvAeZ31nNoq5yLtDCgO25ivYw==", "task"=>{"name"=>"adding a new task", "description"=>"", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:20 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "adding a new task"], ["description", ""], ["created_at", "2019-04-14 08:37:19.472177"], ["updated_at", "2019-04-14 08:37:19.472177"]] + ↳ app/controllers/tasks_controller.rb:20 +  (40.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:20 +Redirected to http://localhost:3000/tasks/6 +Completed 302 Found in 65ms (ActiveRecord: 45.6ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 01:37:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 223ms (Views: 216.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 01:37:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 30ms (Views: 23.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 01:37:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (4.0ms) 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 35ms (Views: 26.1ms | ActiveRecord: 4.0ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-14 01:37:44 -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:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (21.5ms) +Completed 200 OK in 54ms (Views: 46.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 01:37:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 37ms (Views: 32.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 01:38:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (5.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.4ms) +Completed 200 OK in 42ms (Views: 30.3ms | ActiveRecord: 5.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 01:47:28 -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.7ms) +Completed 200 OK in 26ms (Views: 19.9ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-14 01:47:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (4.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.9ms) +Completed 200 OK in 44ms (Views: 35.1ms | ActiveRecord: 4.0ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-04-14 01:47:36 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"9pw3zxuQpKolsFRsK7pc32P90RoVsExizLxFRsCPjdbMYuTAyfp8X4bEtTR7q8iakzkStmL50wb2S9oyULfoMQ==", "task"=>{"name"=>"new task", "description"=>"", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"1"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (1.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (0.9ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", ""], ["updated_at", "2019-04-14 08:47:36.700365"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:38 +  (1.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 14ms (ActiveRecord: 5.4ms) + + +Started GET "/" for ::1 at 2019-04-14 01:47: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 45ms (Views: 42.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 01:47:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (2.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 (0.8ms) +Completed 200 OK in 35ms (Views: 27.6ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-14 01:47:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (4.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.2ms) +Completed 200 OK in 45ms (Views: 35.1ms | ActiveRecord: 4.2ms) + + +Started PATCH "/tasks/2" for ::1 at 2019-04-14 01:47:45 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"A7gVB8dhJPED65ctOtvFcoXGtZYnYLlZHxXohyWWwuOBB6hZ2IoIc25mBTZrZkUDLGT3U/XOFz4ikJ5XLpS5nQ==", "task"=>{"name"=>"new task", "description"=>"", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"2"} + Task Load (4.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (0.6ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", ""], ["updated_at", "2019-04-14 08:47:45.124763"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:38 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 13ms (ActiveRecord: 6.4ms) + + +Started GET "/" for ::1 at 2019-04-14 01:47: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 27ms (Views: 24.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-14 01:47:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (4.8ms) 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 43ms (Views: 31.6ms | ActiveRecord: 4.8ms) + + +Started GET "/tasks/4/edit" for ::1 at 2019-04-14 01:47:50 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"4"} + Task Load (6.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.0ms) +Completed 200 OK in 48ms (Views: 36.0ms | ActiveRecord: 6.5ms) + + +Started PATCH "/tasks/4" for ::1 at 2019-04-14 01:47:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"G+XCPLLmEeyoqKXhbyVCluPDQPy8LPMFyJNI3kKGUrXkL4GLz3UD9aNIcSOw3LpYheMes2OS5WnQf7YZs2aaGw==", "task"=>{"name"=>"new task", "description"=>"kjh", "priorty"=>"1"}, "commit"=>"Update Tasks", "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:36 +Unpermitted parameter: :priorty +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (0.4ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "kjh"], ["updated_at", "2019-04-14 08:47:54.293116"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:38 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 9ms (ActiveRecord: 2.8ms) + + +Started GET "/" for ::1 at 2019-04-14 01:47:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 28ms (Views: 24.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-14 01:48:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (1.9ms) 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.9ms) +Completed 200 OK in 38ms (Views: 29.5ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-14 01:48:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.1ms) +Completed 200 OK in 39ms (Views: 31.2ms | ActiveRecord: 1.2ms) + + +Started PATCH "/tasks/5" for ::1 at 2019-04-14 01:48:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1oIuLOCsIm9dpmWszhAk26GDzR5PXac7/DxqvbuhxD/XKQJ3AEIr4esrYwKcEFBVoQ3PMytrGW57WKRuqMjzsQ==", "task"=>{"name"=>"new task876", "description"=>"", "priorty"=>"1"}, "commit"=>"Update Tasks", "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:36 +Unpermitted parameter: :priorty +  (1.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "new task876"], ["description", ""], ["updated_at", "2019-04-14 08:48:10.756499"], ["id", 5]] + ↳ app/controllers/tasks_controller.rb:38 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 3.8ms) + + +Started GET "/" for ::1 at 2019-04-14 01:48:10 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 32ms (Views: 27.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 01:48:16 -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]] + ↳ 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 49ms (Views: 21.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-14 01:48:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"6"} + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 37ms (Views: 30.6ms | ActiveRecord: 1.9ms) + + +Started PATCH "/tasks/6" for ::1 at 2019-04-14 01:48:23 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"8SYdpECHHfKtzZ0Va7PiveeGvghHfG2vkH3sz2GeNtE/fsarpXy9f5tBLAmmbh9tlIbZQptbNFqbjuh7zwhfHQ==", "task"=>{"name"=>"adding a new task", "description"=>"kjhkjhlkhkjhlkj", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"6"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (0.4ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "kjhkjhlkhkjhlkj"], ["updated_at", "2019-04-14 08:48:23.388124"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:38 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 9ms (ActiveRecord: 2.7ms) + + +Started GET "/" for ::1 at 2019-04-14 01:48:23 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 25ms (Views: 22.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 01:50:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (8.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["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 40ms (Views: 25.0ms | ActiveRecord: 8.6ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-14 01:50:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"6"} + Task Load (4.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 39ms (Views: 29.4ms | ActiveRecord: 4.3ms) + + +Started PATCH "/tasks/6" for ::1 at 2019-04-14 01:50:36 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"nEQxyEQP+SpvIQXBPcwpcoZymAKHbLWU0WGl7t9Es9xSHOrHofRZp1mttN3wEdSi9XL/SFtL7GHakqFacdLaEA==", "task"=>{"name"=>"adding a new task878ohkj", "description"=>"kjhkjhlkhkjhlkj", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"6"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (1.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["name", "adding a new task878ohkj"], ["updated_at", "2019-04-14 08:50:36.455683"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:38 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 12ms (ActiveRecord: 5.2ms) + + +Started GET "/" for ::1 at 2019-04-14 01:50:36 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 25ms (Views: 22.3ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-14 02:28:47 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (11.1ms) +Completed 200 OK in 139ms (Views: 126.9ms | ActiveRecord: 6.2ms) + + +Started GET "/" for ::1 at 2019-04-14 02:29:16 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 38ms (Views: 34.4ms | ActiveRecord: 1.0ms) + + +Started GET "/" for ::1 at 2019-04-14 02:30:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 37ms (Views: 34.8ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-14 02:30:20 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 28ms (Views: 24.6ms | ActiveRecord: 0.5ms) + + +Started GET "/" for ::1 at 2019-04-14 02:31:24 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 41ms (Views: 36.6ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-14 02:31:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 33ms (Views: 30.6ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-14 02:31:46 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 30ms (Views: 25.6ms | ActiveRecord: 0.5ms) + + +Started GET "/" for ::1 at 2019-04-14 02:31:46 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-14 02:31: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 31ms (Views: 27.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-14 02:32:36 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"6"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.5ms) +Completed 200 OK in 44ms (Views: 38.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-14 02:33:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"6"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.5ms) +Completed 200 OK in 36ms (Views: 33.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-14 02:36:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"6"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.0ms) +Completed 200 OK in 59ms (Views: 47.3ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-14 02:37:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"6"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 44ms (Views: 38.6ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 02:37:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 33ms (Views: 27.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 02:55:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 45ms (Views: 41.8ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 02:55:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 28ms (Views: 24.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 02:59:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 72ms (Views: 61.8ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 03:03:31 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 69ms (Views: 61.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 03:06:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 83ms (Views: 72.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 03:07:11 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 76ms (Views: 69.7ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 03:07:57 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 74ms (Views: 68.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 03:08:43 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 132ms (Views: 123.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 03:13:07 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 91ms (Views: 82.8ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 03:13:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 58ms (Views: 52.6ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 03:13:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 93ms (Views: 84.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:14:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 85ms (Views: 64.7ms | ActiveRecord: 7.4ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:17:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (6.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["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.9ms) +Completed 200 OK in 80ms (Views: 64.7ms | ActiveRecord: 6.8ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:17:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 69ms (Views: 57.4ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:17:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (4.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["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.2ms) +Completed 200 OK in 79ms (Views: 63.2ms | ActiveRecord: 4.5ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:18:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["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 75ms (Views: 61.9ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:18:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 61ms (Views: 51.4ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:18:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (2.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["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 57ms (Views: 43.1ms | ActiveRecord: 2.8ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:18:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (5.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["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.7ms) +Completed 200 OK in 63ms (Views: 47.5ms | ActiveRecord: 5.2ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:18:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (2.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["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 69ms (Views: 55.8ms | ActiveRecord: 2.8ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:19:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (2.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["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 72ms (Views: 54.8ms | ActiveRecord: 2.4ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-14 03:19:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 59ms (Views: 48.1ms | ActiveRecord: 1.7ms) + + +Started DELETE "/tasks/6" for ::1 at 2019-04-14 03:19:21 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"eK0WyAunWYoy0czbIi+jAjjmTWSgF5RgV5uEvlgllLz8CGpCsTds6uIn8/IBk627hAL13ArxlYdp7MGp32V+2g==", "id"=>"6"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:47 +  (1.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Destroy (1.0ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 6]] + ↳ app/controllers/tasks_controller.rb:48 +  (0.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/ +Completed 302 Found in 14ms (ActiveRecord: 4.0ms) + + +Started GET "/" for ::1 at 2019-04-14 03:19:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 50ms (Views: 44.4ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 03:19:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (2.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.7ms) +Completed 200 OK in 79ms (Views: 64.5ms | ActiveRecord: 2.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-14 03:19:27 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (9.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.2ms) +Completed 200 OK in 75ms (Views: 51.9ms | ActiveRecord: 9.8ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-04-14 03:19:39 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"m2kL2/SZOdn6+0EOam3XqWpwkWpeccFhBJ9OiqJ5gOahl9jUJvPhLFmPoFY6fEPsmrRSxik4XgU+aNH+MkHlAQ==", "task"=>{"name"=>"new task", "description"=>"asdfsadfasd asdf asdf as df asd f as dfa sa fa sd fa sdf as df as df asd f asdf as df asd f asdf as df asd f asdf as df asd f asdf asd f", "priorty"=>"1"}, "commit"=>"Update Tasks", "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:36 +Unpermitted parameter: :priorty +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (1.2ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "asdfsadfasd asdf asdf as df asd f as dfa sa fa sd fa sdf as df as df asd f asdf as df asd f asdf as df asd f asdf as df asd f asdf asd f"], ["updated_at", "2019-04-14 10:19:39.866444"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:38 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 35ms (ActiveRecord: 4.4ms) + + +Started GET "/" for ::1 at 2019-04-14 03:19:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 50ms (Views: 44.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 03:19:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.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 (4.0ms) +Completed 200 OK in 70ms (Views: 54.0ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-14 03:19:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (13.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.0ms) +Completed 200 OK in 78ms (Views: 53.4ms | ActiveRecord: 13.2ms) + + +Started PATCH "/tasks/2" for ::1 at 2019-04-14 03:20:01 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gOU4CcjR5m2d0CzPbplnmqYwk4/irVSQl/C06Lir9NUCWoVX1zrK7/BdvtQ/JOfrD5LRSjAD+veqdcI4s6mPqw==", "task"=>{"name"=>"new task asdf a sdf asd fa sdf asdf as dfa", "description"=>"asdfasdf asd fa sdf as df as df sad f asd f asd fa sd f asdf asd fas df a sdf asd f sd fas df as df asd fs df asd f asd fs df sad fas df", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"2"} + Task Load (5.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 + Task Update (1.0ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "new task asdf a sdf asd fa sdf asdf as dfa"], ["description", "asdfasdf asd fa sdf as df as df sad f asd f asd fa sd f asdf asd fas df a sdf asd f sd fas df as df asd fs df asd f asd fs df sad fas df"], ["updated_at", "2019-04-14 10:20:01.931951"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:38 +  (40.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 58ms (ActiveRecord: 47.6ms) + + +Started GET "/" for ::1 at 2019-04-14 03:20:01 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 55ms (Views: 50.6ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:07:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (41.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 (7.4ms) +Completed 200 OK in 131ms (Views: 67.3ms | ActiveRecord: 42.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:07:39 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 54ms (Views: 43.1ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-14 16:08:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (15.1ms) 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.3ms) +Completed 200 OK in 65ms (Views: 42.1ms | ActiveRecord: 15.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:09:03 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (6.2ms) +Completed 200 OK in 76ms (Views: 68.3ms | ActiveRecord: 1.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:11:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.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 (1.6ms) +Completed 200 OK in 45ms (Views: 37.5ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:18:20 -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 (1.8ms) +Completed 200 OK in 60ms (Views: 52.7ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-14 16:19:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.1ms) +Completed 200 OK in 42ms (Views: 31.8ms | ActiveRecord: 1.9ms) + + +Started PATCH "/tasks/2" for ::1 at 2019-04-14 16:19:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"cainlc0lWEc6LdSxAbGlNoJI3KFKgGoLIXqK4vQMfEXzFxrL0s50xVegRqpQDCVHK+qeZJguxGwc//wy/w4HOw==", "task"=>{"name"=>"new task asdf a sdf asd fa sdf asdf as dfa", "description"=>"asdfasdf asd fa sdf as df as df sad f asd f asd fa sd f asdf asd fas df a sdf asd f sd fas df as df asd fs df asd f asd fs df sad fas df", "priorty"=>"1"}, "commit"=>"Update Tasks", "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:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 8ms (ActiveRecord: 0.9ms) + + +Started GET "/" for ::1 at 2019-04-14 16:19:10 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 30ms (Views: 27.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-14 16:19:14 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 52ms (Views: 44.1ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:19:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (5.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (8.3ms) +Completed 200 OK in 41ms (Views: 31.7ms | ActiveRecord: 5.8ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-14 16:19:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (19.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 55ms (Views: 31.0ms | ActiveRecord: 19.3ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-14 19:22:21 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +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 (2.5ms) +Completed 200 OK in 458ms (Views: 340.6ms | ActiveRecord: 88.9ms) + + +Started DELETE "/tasks/4" for ::1 at 2019-04-14 19:22:24 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"d/yHHrl+z0Bw4IQXRwwc4UhyYlZCMZemsWHMIqhhPmLzWfuUA+76IKAWuz5ksBJY9Jba7ujXlkGPFok1LyHUBA==", "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:47 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Destroy (44.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 4]] + ↳ app/controllers/tasks_controller.rb:48 +  (1.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/ +Completed 302 Found in 50ms (ActiveRecord: 45.8ms) + + +Started GET "/" for ::1 at 2019-04-14 19:22:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 25ms (Views: 21.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 19:22:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (16.1ms) 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.7ms) +Completed 200 OK in 49ms (Views: 26.4ms | ActiveRecord: 16.1ms) + + +Started DELETE "/tasks/2" for ::1 at 2019-04-14 19:22:31 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"rNu5hDMH+QGOJNd8LAs+GryjXI1BHAS0GZ8bRiWWaA4ofsUOiZfMYV7S6FUPtzCjAEfkNev6BVMn6F5RotaCaA==", "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:47 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 2]] + ↳ app/controllers/tasks_controller.rb:48 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/ +Completed 302 Found in 9ms (ActiveRecord: 2.8ms) + + +Started GET "/" for ::1 at 2019-04-14 19:22: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 34ms (Views: 30.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 19:22:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (3.7ms) 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.8ms) +Completed 200 OK in 36ms (Views: 26.3ms | ActiveRecord: 3.7ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 19:24:14 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +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.3ms) +Completed 200 OK in 235ms (Views: 205.4ms | ActiveRecord: 5.2ms) + + +Started GET "/" for ::1 at 2019-04-14 19:24:19 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 35ms (Views: 29.4ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 19:24:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (4.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.8ms) +Completed 200 OK in 40ms (Views: 28.2ms | ActiveRecord: 4.4ms) + + +Started DELETE "/tasks/1" for ::1 at 2019-04-14 19:24:23 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"4u79IZl8KVp/vVQ0w7+DEBUVLzv6icpzN+Ip7hdLTYNmS4GrI+wcOq9Lax3gA42pqfGXg1Bvy5QJlWz5kAun5Q==", "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:47 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Destroy (1.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 1]] + ↳ app/controllers/tasks_controller.rb:48 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/ +Completed 302 Found in 7ms (ActiveRecord: 3.1ms) + + +Started GET "/" for ::1 at 2019-04-14 19:24:23 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 29ms (Views: 24.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-14 19:24:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (1.5ms) 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 29ms (Views: 22.7ms | ActiveRecord: 1.5ms) + + +Started DELETE "/tasks/5" for ::1 at 2019-04-14 19:24:30 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"XkzHjyds1GnU0/VlTaxeGnB5QkcAYzbs7g+IlXFr90La6bsFnfzhCQQlykxuEFCjzJ36/6qFNwvQeM2C9isdJA==", "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:47 +  (0.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 5]] + ↳ app/controllers/tasks_controller.rb:48 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 2.7ms) + + +Started GET "/" for ::1 at 2019-04-14 19:24:30 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 24ms (Views: 20.9ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-14 19:29:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 25ms (Views: 22.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-14 19:29:29 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (22.5ms) +Completed 200 OK in 51ms (Views: 47.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 19:29:36 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"InNPxXSpFywoIjELS+hTK2Kzak0OgfARMFgttf5kOfO/T7xc/VfPpE55qzdUryP2DG7FCTMiMLDKV3g9sGVsxQ==", "task"=>{"name"=>"asf", "description"=>"sdf asdf asdf as dfa sdf asd fas dfa sd fa sdf as df asd fa sdf a", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:20 + Task Create (2.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asf"], ["description", "sdf asdf asdf as dfa sdf asd fas dfa sd fa sdf as df asd fa sdf a"], ["created_at", "2019-04-15 02:29:36.869962"], ["updated_at", "2019-04-15 02:29:36.869962"]] + ↳ app/controllers/tasks_controller.rb:20 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:20 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 10ms (ActiveRecord: 3.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 19:29:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 45ms (Views: 41.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-14 19: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 (4.1ms) +Completed 200 OK in 37ms (Views: 33.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 19:29:49 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"wSrZLzwx7INik3QGdrD1SKO/nJoV/MJwTmYgO+PK3gtcFiq2tc80CwTI7jpp94WVzWIz3ihfAtG0aXWzrcuLPQ==", "task"=>{"name"=>"sdf asdf as df", "description"=>"as dfasdfa sdf asd fasdfasd fas df asdf asdfa sdfas df", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (1.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:20 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "sdf asdf as df"], ["description", "as dfasdfa sdf asd fasdfasd fas df asdf asdfa sdfas df"], ["created_at", "2019-04-15 02:29:49.523685"], ["updated_at", "2019-04-15 02:29:49.523685"]] + ↳ app/controllers/tasks_controller.rb:20 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:20 +Redirected to http://localhost:3000/tasks/8 +Completed 302 Found in 11ms (ActiveRecord: 4.0ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-14 19:29:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["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 27ms (Views: 23.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-14 19:29:52 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 27ms (Views: 23.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 19:30:10 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"oNzVukFGaGpdqjFOGSxVWSUh/4tpE7shlFMlJNg7rXE94CYjyLiw4jvxq3IGayWES/xQz1Swe4BuXHCsljr4Rw==", "task"=>{"name"=>"asdf asdf", "description"=>"asd asdf sd fas df sd fadfasd fasdf asdfa sdfadsf asdf asd fa sdf asd fa sdfasdfa sdfasdfasdfas dfadsf dsf f dsa fa sdf as df asdf sadf asd fasd f a", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (1.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:20 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asdf asdf"], ["description", "asd asdf sd fas df sd fadfasd fasdf asdfa sdfadsf asdf asd fa sdf asd fa sdfasdfa sdfasdfasdfas dfadsf dsf f dsa fa sdf as df asdf sadf asd fasd f a"], ["created_at", "2019-04-15 02:30:10.640002"], ["updated_at", "2019-04-15 02:30:10.640002"]] + ↳ app/controllers/tasks_controller.rb:20 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:20 +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 11ms (ActiveRecord: 3.3ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-14 19:30:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-14 19:30:14 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.7ms) +Completed 200 OK in 41ms (Views: 37.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 19:30:30 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xgMxcLJvkX7aUA8orAst+cYwrPmVQb3N7JWnlJpiqLZbP8LpO5FJ9rwLlRSzTF0kqO0DvajifWwWmvIc1GP9gA==", "task"=>{"name"=>"asdf", "description"=>"asdfasdfasd fa sdf asd fa sd fas df asd fa sdf asdf asd f awefwe f as fs fw eras df b a dafd sfas df saf as", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:20 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asdf"], ["description", "asdfasdfasd fa sdf asd fa sd fas df asd fa sdf asdf asd f awefwe f as fs fw eras df b a dafd sfas df saf as"], ["created_at", "2019-04-15 02:30:30.087177"], ["updated_at", "2019-04-15 02:30:30.087177"]] + ↳ app/controllers/tasks_controller.rb:20 +  (0.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:20 +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 9ms (ActiveRecord: 1.7ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-14 19:30:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 33ms (Views: 29.9ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/10" for ::1 at 2019-04-14 19:31:48 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"b4mypgeGxOIsRszOO0OkDmE86QGKAF+oHS7mB2dTX2jrLM4svRbxgvyw8+cY/6q33dhRuSDmXk8jWaMQ4BO1Dg==", "id"=>"10"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:47 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 10]] + ↳ app/controllers/tasks_controller.rb:48 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 2.0ms) + + +Started GET "/" for ::1 at 2019-04-14 19:31: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 32ms (Views: 29.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-14 19:31:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (4.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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 51ms (Views: 40.8ms | ActiveRecord: 4.2ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-14 19:58:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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.2ms) +Completed 500 Internal Server Error in 32ms (ActiveRecord: 8.0ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1): + app/views/tasks/show.html.erb:16:in `_app_views_tasks_show_html_erb__4588111973195891426_70103885008440' + +Started POST "/__better_errors/433d24dafec65a54/variables" for ::1 at 2019-04-14 19:58:55 -0700 +Started GET "/tasks/9" for ::1 at 2019-04-14 20:09:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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 500 Internal Server Error in 13ms (ActiveRecord: 0.7ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1): + app/views/tasks/show.html.erb:16:in `_app_views_tasks_show_html_erb__4588111973195891426_70103933371780' + +Started POST "/__better_errors/58fcf79ceafefdab/variables" for ::1 at 2019-04-14 20:09:41 -0700 +Started GET "/tasks/9" for ::1 at 2019-04-14 20:10:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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.9ms) +Completed 500 Internal Server Error in 28ms (ActiveRecord: 5.9ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1): + app/views/tasks/show.html.erb:16:in `_app_views_tasks_show_html_erb__4588111973195891426_70103893831940' + +Started POST "/__better_errors/1ee3a04fd2c448d4/variables" for ::1 at 2019-04-14 20:10:53 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 20:11:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 94ms (Views: 88.1ms | ActiveRecord: 2.1ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:11:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (3.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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.0ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 3.1ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1): + app/views/tasks/show.html.erb:16:in `_app_views_tasks_show_html_erb__4588111973195891426_70103909996400' + +Started POST "/__better_errors/884f5c0d417da659/variables" for ::1 at 2019-04-14 20:11:13 -0700 +Started GET "/tasks/7" for ::1 at 2019-04-14 20:11:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 41ms (Views: 23.7ms | ActiveRecord: 4.0ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:11:55 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"ZgBYBlc//SFREcEiqQVTfzyxiLtw1bikkf0ra9rERX3ipSSM7a/IQYHn/guKuV3GgFUwA9ozuUOvim58XYSvGw==", "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:54 +Completed 500 Internal Server Error in 222ms (ActiveRecord: 0.6ms) + + + +NameError - undefined local variable or method `completion_date' for #: + app/controllers/tasks_controller.rb:55:in `mark' + +Started POST "/__better_errors/d131262e7ff1f1df/variables" for ::1 at 2019-04-14 20:11:56 -0700 +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:12:49 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"ZgBYBlc//SFREcEiqQVTfzyxiLtw1bikkf0ra9rERX3ipSSM7a/IQYHn/guKuV3GgFUwA9ozuUOvim58XYSvGw==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +Completed 500 Internal Server Error in 293ms (ActiveRecord: 4.6ms) + + + +NameError - undefined local variable or method `completion_date' for #: + app/controllers/tasks_controller.rb:55:in `mark' + +Started POST "/__better_errors/69ed2b37fe874f93/variables" for ::1 at 2019-04-14 20:12:49 -0700 +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:13:55 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"ZgBYBlc//SFREcEiqQVTfzyxiLtw1bikkf0ra9rERX3ipSSM7a/IQYHn/guKuV3GgFUwA9ozuUOvim58XYSvGw==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 122ms (ActiveRecord: 3.8ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:14:46 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"ZgBYBlc//SFREcEiqQVTfzyxiLtw1bikkf0ra9rERX3ipSSM7a/IQYHn/guKuV3GgFUwA9ozuUOvim58XYSvGw==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 110ms (ActiveRecord: 4.0ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:17:01 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"ZgBYBlc//SFREcEiqQVTfzyxiLtw1bikkf0ra9rERX3ipSSM7a/IQYHn/guKuV3GgFUwA9ozuUOvim58XYSvGw==", "id"=>"7"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 102ms (ActiveRecord: 0.4ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:17:21 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"ZgBYBlc//SFREcEiqQVTfzyxiLtw1bikkf0ra9rERX3ipSSM7a/IQYHn/guKuV3GgFUwA9ozuUOvim58XYSvGw==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 114ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:17:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 43ms (Views: 38.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:17:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 34ms (Views: 30.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:17:28 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"5Hjn5+Uyo6sNs5kdW17nTcz14jqs/gU9/ksyU26AXqlg3ZttX6KWy91FpjR44un0cBFaggYYBNrAPHdE6cC0zw==", "id"=>"7"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 104ms (ActiveRecord: 1.1ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:17:33 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"5Hjn5+Uyo6sNs5kdW17nTcz14jqs/gU9/ksyU26AXqlg3ZttX6KWy91FpjR44un0cBFaggYYBNrAPHdE6cC0zw==", "id"=>"7"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 114ms (ActiveRecord: 0.4ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:17:38 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"5Hjn5+Uyo6sNs5kdW17nTcz14jqs/gU9/ksyU26AXqlg3ZttX6KWy91FpjR44un0cBFaggYYBNrAPHdE6cC0zw==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 101ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:18:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 44ms (Views: 25.8ms | ActiveRecord: 5.0ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:18:12 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"URBm9ZV37y+szHmmWTg5acjnzHIJtwIdUYrqaaAqY4DVtRp/L+faT3w6Ro96hDfQdAN0yqNRA/pv/a9+J2qJ5g==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:18:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 47ms (Views: 43.6ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:18:14 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"/ND08JycKVU4yGb2+zJBEHCT9khRUh4a4Pjz+qUmV214dYh6JgwcNeg+Wd/Yjk+pzHdO8Pu0H/3ej7btIma9Cw==", "id"=>"7"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:18:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 25ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:18:16 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"qK1wN5m+piD2XejACxc0yzk+FpN5DUJycPLvW+ulUU0sCAy9Iy6TQCar1+koqzpyhdquK9PrQ5VOhapMbOW7Kw==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:18:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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: 23.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 20:18:30 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (9.8ms) +Completed 200 OK in 43ms (Views: 27.5ms | ActiveRecord: 4.1ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:18:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 41ms (Views: 34.4ms | ActiveRecord: 1.4ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:18:37 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"FHoZvZtqbUFkbrBThHbyD8S83L3hwqmCKFn2l6LNcxWQ32U3IfpYIbSYj3qnyvy2eFhkBUskqGUWLrOAJY2Zcw==", "id"=>"7"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:18:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 24ms (Views: 21.4ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:18:38 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"uyVd/v680r8OV4RcNRodUKr2pLCPAZMLir3h3nlMnY8/gCF0RCzn396hu3UWphPpFhIcCCXnkuy0yqTJ/gx36Q==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:18:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"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: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.8ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:41 -0700 +  (41.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 310ms (Views: 285.5ms | ActiveRecord: 5.0ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:44 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"HI1ete2UNCcMD1ogB8bJhHeg0QooA09jbg16HV4zopGYKCI/VwQBR9z5ZQkkesc9y0RpsoLlToRQej8K2XNI9w==", "id"=>"7"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (43.0ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:20:44.532589"], ["updated_at", "2019-04-15 03:20:44.534697"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (0.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 51ms (ActiveRecord: 44.1ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 24ms (Views: 20.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:45 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"BZJjKJc70Tf0FjqZmkk3vLwoPEUM1Sxo1kqacQna+pOBNx+iLavkVyTgBbC59TkFAMyE/aYzLY/oPd9mjpoQ9Q==", "id"=>"7"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:20:45.847298"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 49ms (ActiveRecord: 42.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 25ms (Views: 21.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:46 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"nYPd5meuAJJ0A2G3n86w+NIzoIJe3ho7P4CJciJFXX4ZJqFs3T418qT1Xp68cr5BbtcYOvQ4G9wB98xlpQW3GA==", "id"=>"7"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (1.2ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:20:46.779765"], ["updated_at", "2019-04-15 03:20:46.781069"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 48ms (ActiveRecord: 42.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 25ms (Views: 21.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:50 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"EWzdqKapdjsVfrIcUT+HP4NAs41nouTZtw5UiVH5TrKVyaEiHDlDW8WIjTVyg4mGP6QLNc1E5T6JeRGe1rmk1A==", "id"=>"7"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:20:50.020893"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 49ms (ActiveRecord: 42.9ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 24ms (Views: 19.9ms | ActiveRecord: 1.0ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:50 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"VAto0sJcmjrrgLcmsHVbCsDEZBXifDNmsbUPddPSa3vQrhRYeMyvWjt2iA+TyVWzfCDcrUiaMoGPwkpiVJKBHQ==", "id"=>"7"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (1.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (3.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:20:50.838789"], ["updated_at", "2019-04-15 03:20:50.841524"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 55ms (ActiveRecord: 46.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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.6ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:52 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"iayrvwnEbe9nb7onL3s29W6Ix/dn8SuaNHV7kxlyD18NCdc1s1RYj7eZhQ4MxzhM0mx/T80XKn0KAj6EnjLlOQ==", "id"=>"7"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (1.1ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:20:52.267447"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 52ms (ActiveRecord: 41.9ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 43ms (Views: 39.6ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:53 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"jYfKwfeNv9zz/7TZMXplESoyqrpzbXUfch1XwR3cPhkJIrZLTR2KvCMJi/ASxmuoltYSAtmLdPhMahLWmpzUfw==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (1.0ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:20:53.088079"], ["updated_at", "2019-04-15 03:20:53.089632"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (1.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 11ms (ActiveRecord: 3.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 28ms (Views: 23.0ms | ActiveRecord: 0.4ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:53 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"wtQSTSoBcxkSt4JXzhCHGNDSqefhDMo7jULVkS/i7yZGcW7HkJFGecJBvX7trImhbDYRX0vqy9yzNZCGqKIFQA==", "id"=>"7"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:20:53.933866"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 47ms (ActiveRecord: 41.9ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 25ms (Views: 22.3ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:54 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"75pzk9kWX+SkSpHJ2R/aXJszlWNc4cpMks6++Gm4O9BrPw8ZY4ZqhHS8ruD6o9TlJ9ct2/YHy6usufvv7vjRtg==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:20:54.761462"], ["updated_at", "2019-04-15 03:20:54.763649"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 49ms (ActiveRecord: 42.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 25ms (Views: 21.8ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:55 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"8K4zFpt/DEqa3tPwcxP0rsTav014s7sSQPwvvub/IHd0C0+cIe85Kkoo7NlQr/oXeD4H9dJVuvV+i2qpYb/KEQ==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.8ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:20:55.809560"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 10ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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: 25.7ms | ActiveRecord: 0.4ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:56 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"GQiZOksEbvCGM1K86pXI2iA+lax7a5KertG9yURrlS2dreWw8ZRbkFbFbZXJKcZjnNotFNGNk3mQpvjewyt/Sw==", "id"=>"7"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:20:56.961692"], ["updated_at", "2019-04-15 03:20:56.963485"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 49ms (ActiveRecord: 41.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 35ms (Views: 31.5ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:58 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"gKx3AvdBgkTsZCgDv82wzg2zio6wJh7K8B9Nv9yFzukECQuITdG3JDySFyqccb53sVcyNhrAHy3OaAioW8Ukjw==", "id"=>"7"} + Task Load (2.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:20:58.393754"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 52ms (ActiveRecord: 43.0ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 29ms (Views: 25.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:20:59 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"rHPLltUh8p5aGPS6SZ+qs4UFdHerrUW12hvsbP+razUo1rccb7HH/oruy5NqI6QKOeHMzwFLRFLkbKl7eOuBUw==", "id"=>"7"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:20:59.640503"], ["updated_at", "2019-04-15 03:20:59.642782"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 54ms (ActiveRecord: 41.9ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:20:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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: 27.9ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:00 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"8Z01gf7ejaNrEimDkxwIFv0M4h1poCFqZ+P4wlu4dot1OEkLRE64w7vkFqqwoAavQehapcNGII1ZlL3V3Pic7Q==", "id"=>"7"} + Task Load (6.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (3.0ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (4.9ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:21:00.931973"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 62ms (ActiveRecord: 54.8ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 47ms (Views: 41.9ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:02 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"pl+KqpzpLkyY+k/QRhibyM6PmibbU0tvVQCfx5SwvLMi+vYgJnkbLEgMcPllpJVxcmsinnG1Sohrd9rQE/BW1Q==", "id"=>"7"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.9ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:21:02.680792"], ["updated_at", "2019-04-15 03:21:02.682119"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 49ms (ActiveRecord: 41.8ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 37ms (Views: 33.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:12 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"tVK5Rjko1HGnGrLCDj5y8yWWCVR1OCp0R/JlRTw/MQ0x98XMg7jhEXfsjestgnxKmXKx7N/eK5N5hSBSu3/baw==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.8ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:21:12.274583"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 45ms (ActiveRecord: 41.0ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 22ms (Views: 19.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:15 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"+WmrSEUPjrxmjjw604lUwBmxJwmlGmKfw/uUjfoRANJ9zNfC/5+73LZ4AxPwNVp5pVWfsQ/8Y3j9jNGafVHqtA==", "id"=>"7"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.8ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:21:15.214308"], ["updated_at", "2019-04-15 03:21:15.215425"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 48ms (ActiveRecord: 42.7ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:17 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"wj3Pan44+mdFJ+2rOEt3miA2phvVIdtSehxceuSme09GmLPgxKjPB5XR0oIb93kjnNIeo3/H2rVEaxltY+aRKQ==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (1.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:21:17.563838"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 49ms (ActiveRecord: 43.2ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 24ms (Views: 20.5ms | ActiveRecord: 0.3ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:18 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"Psisf0vnNGBEyr42uE+Ufofn4l2NJxuTRTidNG8wqPe6bdD18XcBAJQ8gR+b85rHOwNa5SfBGnR7T9gj6HBCkQ==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:21:18.475492"], ["updated_at", "2019-04-15 03:21:18.477720"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 48ms (ActiveRecord: 41.1ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 25ms (Views: 21.4ms | ActiveRecord: 0.4ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:19 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"X/gstIRB4qbyTeQ7lwdTWZ2tmO0i1dZt/C40olpUo0rbXVA+PtHXxiK72xK0u13gIUkgVYgz14rCWXG13RRJLA==", "id"=>"7"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.8ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:21:19.524677"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 14ms (ActiveRecord: 3.7ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 28ms (Views: 24.6ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:20 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"BMCnUKbDuSP4+VX4ZYjitU8r4zIiLnAo7vpreohNTHaAZdvaHFOMQygPatFGNOwM889biojIcc/QjS5tDw2mEA==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (1.2ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:21:20.510211"], ["updated_at", "2019-04-15 03:21:20.511676"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 9ms (ActiveRecord: 2.9ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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: 23.7ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:26 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"9APKJ4X717BibjUQjUj8B54I06dtPaI0xruGXbzorIhwpratP2vi0LKYCjmu9PK+IuxrH8fbo9P4zMNKO6hG7g==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:21:26.592429"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 61ms (ActiveRecord: 45.5ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 29ms (Views: 25.4ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:27 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"xxBqM1sLqTpDTwIk7N3fgH9NE/O5wdfYIRDaR0KoC91DtRa54ZucWpO5PQ3PYdE5w6mrSxMn1j8fZ59Qxejhuw==", "id"=>"7"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:21:27.634025"], ["updated_at", "2019-04-15 03:21:27.635383"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 49ms (ActiveRecord: 42.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 29ms (Views: 25.1ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:32 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"msT5DTlzdcey1hQi83f0n7D1YwWhYk5NXLtBIU1h8NEeYYWHg+NAp2IgKwvQy/omDBHbvQuET6pizAQ2yiEatw==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:21:32.585156"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 8ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 29ms (Views: 25.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 20:21:34 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 35ms (Views: 31.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 32ms (Views: 19.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:21:41 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"Z0K6+XjG7Q0d1Wfel6pNQlXCbpJqkFAzgq7pF/lDU0/j58ZzwlbYbc0jWPe0FkP76SbWKsB2UdS82awAfgO5KQ==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:21:41.732843"], ["updated_at", "2019-04-15 03:21:41.734403"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 9ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:21:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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: 24.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:22:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 40ms (Views: 21.9ms | ActiveRecord: 4.0ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:22:16 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"7UXz3M+2qKzQ1ZmuWAkTmlfPW7qdGE7Uu6muz0KNClxp4I9WdSadzAAjpod7tR0j6yvjAjf+TzOF3uvYxc3gOg==", "id"=>"7"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:22:16.198954"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 144ms (ActiveRecord: 42.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:22:18 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"7UXz3M+2qKzQ1ZmuWAkTmlfPW7qdGE7Uu6muz0KNClxp4I9WdSadzAAjpod7tR0j6yvjAjf+TzOF3uvYxc3gOg==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (2.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:22:18.067231"], ["updated_at", "2019-04-15 03:22:18.069027"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 147ms (ActiveRecord: 43.9ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:22:20 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"7UXz3M+2qKzQ1ZmuWAkTmlfPW7qdGE7Uu6muz0KNClxp4I9WdSadzAAjpod7tR0j6yvjAjf+TzOF3uvYxc3gOg==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (1.0ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (1.1ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:22:20.052782"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (39.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 145ms (ActiveRecord: 42.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:23:03 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"7UXz3M+2qKzQ1ZmuWAkTmlfPW7qdGE7Uu6muz0KNClxp4I9WdSadzAAjpod7tR0j6yvjAjf+TzOF3uvYxc3gOg==", "id"=>"7"} + Task Load (2.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:23:03.095787"], ["updated_at", "2019-04-15 03:23:03.096750"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +No template found for TasksController#mark, rendering head :no_content +Completed 204 No Content in 146ms (ActiveRecord: 44.0ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:23:09 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"7UXz3M+2qKzQ1ZmuWAkTmlfPW7qdGE7Uu6muz0KNClxp4I9WdSadzAAjpod7tR0j6yvjAjf+TzOF3uvYxc3gOg==", "id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (0.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:23:09.684120"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (33.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 53ms (ActiveRecord: 38.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:23:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 24ms (Views: 21.2ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:23:11 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"EOIuXbU0ACgZpmC9mFjjpaTtvl5tcZlQsqj5MKbVN7qUR1LXD6Q1SMlQX5S75O0cGAkG5seXmLeM37wnIZXd3A==", "id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (5.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:23:11.401954"], ["updated_at", "2019-04-15 03:23:11.403268"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 15ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:23:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 25ms (Views: 19.8ms | ActiveRecord: 0.3ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:23:13 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"xlhCBkedN9yK6YeuY1Xg/A/noVyu5PO9WFImjrpfYjZC/T6M/Q0CvFofuIdA6e5FswMZ5AQC8lpmJWOZPR+IUA==", "id"=>"7"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (1.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (2.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 03:23:13.575910"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 15ms (ActiveRecord: 6.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:23:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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.9ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/7/mark" for ::1 at 2019-04-14 20:23:15 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"ukoCPCGiX3qnejpNWkvPdx6QStbOjm9hm1XoHtwMVQk+7362mzJqGneMBWR598HOonTybmRoboalIq0JW0y/bw==", "id"=>"7"} + Task Load (3.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (1.0ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:23:15.620831"], ["updated_at", "2019-04-15 03:23:15.622474"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:60 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 14ms (ActiveRecord: 6.2ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 20:23:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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: 28.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 20:23: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 34ms (Views: 30.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-14 20:53:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 50ms (Views: 29.0ms | ActiveRecord: 6.8ms) + + +Started PATCH "/task/9/mark" for ::1 at 2019-04-14 20:53:59 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"Uxgca1Uh9zoqlcK1sO2A9KuSKnoSDg83Z1D05DKgOBXXvWDh77HCWvpj/ZyTUY5NF3aSwrjoDtBZJ7HzteDScw==", "id"=>"9"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:60 + Task Update (1.1ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 03:53:59.109372"], ["updated_at", "2019-04-15 03:53:59.110687"], ["id", 9]] + ↳ app/controllers/tasks_controller.rb:60 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:60 +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 51ms (ActiveRecord: 42.4ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-14 20:53:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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 24ms (Views: 21.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9/edit" for ::1 at 2019-04-14 20:55:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"9"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (27.0ms) +Completed 200 OK in 59ms (Views: 50.8ms | ActiveRecord: 1.4ms) + + +Started PATCH "/tasks/9" for ::1 at 2019-04-14 20:55:22 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"wrIfz/V5WcmAfgH2q+fU5lCqYBL8YGBosadE9uN2CtCqfjcZIslRwBztr/NWmlbW42HjLDp+zAWEpGpZkoVeWQ==", "task"=>{"name"=>"asdf asdf", "description"=>"asd asdf sd fas df sd fadfasd fasdf asdfa sdfadsf asdf asd fa sdf asd fa sdfasdfa sdfasdfasdfas dfadsf dsf f dsa fa sdf as df asdf sadf asd fasd f a", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"9"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Unpermitted parameter: :priorty +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:38 +  (0.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:38 +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 2.1ms) + + +Started GET "/" for ::1 at 2019-04-14 20:55:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 29ms (Views: 25.9ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-14 20:55:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (16.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["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 56ms (Views: 34.1ms | ActiveRecord: 16.0ms) + + +Started DELETE "/tasks/8" for ::1 at 2019-04-14 20:58:09 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"3r1gJiYVv4Kvbbt7IY5lnE/QjkwZk1ECnZFCGmY8+ZdaGBysnIWK4n+bhFICMmsl8zQ29LN1UOWj5gcN4XwT8Q==", "id"=>"8"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:47 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Destroy (6.9ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 8]] + ↳ app/controllers/tasks_controller.rb:48 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/ +Completed 302 Found in 55ms (ActiveRecord: 48.3ms) + + +Started GET "/" for ::1 at 2019-04-14 20:58: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:7 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 25ms (Views: 22.6ms | ActiveRecord: 0.7ms) + + +Started GET "/" for ::1 at 2019-04-14 21:11:36 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (19.8ms) +Completed 200 OK in 50ms (Views: 37.7ms | ActiveRecord: 7.3ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-14 21:11:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (6.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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 43ms (Views: 24.9ms | ActiveRecord: 12.8ms) + + +Started GET "/tasks/9/edit" for ::1 at 2019-04-14 21:11:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"9"} + Task Load (2.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:31 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.9ms) +Completed 200 OK in 42ms (Views: 34.2ms | ActiveRecord: 2.6ms) + + +Started PATCH "/tasks/9" for ::1 at 2019-04-14 21:11:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"W4tAtFYQm2g+LQMJJylFGJkIuOpW1Bkt89PbxYM4DgMzR2higaCTYaK+rQzaVMcoKsM71JDKtUDG0PVq8staig==", "task"=>{"name"=>"asdf asdf", "description"=>"asd asdf sd fas df sd fadfasd fasdf asdfa sdfadsf asdf asd fa sdf asd fa sdfasdfa sdfasdfasdfas dfadsf dsf f dsa fa sdf as df asdf sadf asd fasd f a", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"9"} + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:40 +Unpermitted parameter: :priorty +  (1.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:42 +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 3.4ms) + + +Started GET "/" for ::1 at 2019-04-14 21:11:40 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 36ms (Views: 32.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-14 21:11:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (5.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["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 38ms (Views: 27.3ms | ActiveRecord: 5.0ms) + + +Started DELETE "/tasks/7" for ::1 at 2019-04-14 21:11:45 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"bBba0qaBqAllHozNajrKTVjwPMI3znKAuppUEnu5//Dos6ZYHBGdabXos+RJhsT05BSEep0oc2eE7REF/PkVlg==", "id"=>"7"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:51 +  (1.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:52 + Task Destroy (1.9ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 7]] + ↳ app/controllers/tasks_controller.rb:52 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:52 +Redirected to http://localhost:3000/ +Completed 302 Found in 13ms (ActiveRecord: 5.0ms) + + +Started GET "/" for ::1 at 2019-04-14 21:11: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 26ms (Views: 24.0ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-14 23:55:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 46ms (Views: 42.2ms | ActiveRecord: 1.1ms) + + +Started GET "/" for ::1 at 2019-04-14 23:56:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 37ms (Views: 34.3ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-14 23:56:21 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 30ms (Views: 25.0ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-14 23:56:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 35ms (Views: 32.2ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-14 23: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" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 58ms (Views: 55.0ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-14 23:58:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 69ms (Views: 65.9ms | ActiveRecord: 0.5ms) + + +Started GET "/" for ::1 at 2019-04-14 23:59:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 52ms (Views: 48.4ms | ActiveRecord: 0.4ms) + + +Started GET "/" for ::1 at 2019-04-15 00:00:19 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 42ms (Views: 38.1ms | ActiveRecord: 1.3ms) + + +Started GET "/" for ::1 at 2019-04-15 00:00: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 39ms (Views: 36.2ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-15 00:01:15 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 34ms (Views: 30.5ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-15 00:01:40 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 46ms (Views: 42.3ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-15 00:01: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 38ms (Views: 34.0ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-15 00:01: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 35ms (Views: 32.1ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-15 00:02:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 42ms (Views: 37.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-15 00:02:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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 44ms (Views: 35.9ms | ActiveRecord: 2.5ms) + + +Started PATCH "/task/9/mark" for ::1 at 2019-04-15 00:02:54 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"0QQ/YrNhpnyYL9+Io3p1+N7fqq1hMTSkRqbGJWGeZQBVoUPoCfGTHEjZ4KGAxntBYjsSFcvXNUN40YMy5t6PZg==", "id"=>"9"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (1.2ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 07:02:54.648743"], ["id", 9]] + ↳ app/controllers/tasks_controller.rb:61 +  (40.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 50ms (ActiveRecord: 42.6ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-15 00:02:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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 32ms (Views: 29.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9/edit" for ::1 at 2019-04-15 00:02:57 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"9"} + Task Load (4.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:31 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.7ms) +Completed 200 OK in 42ms (Views: 33.2ms | ActiveRecord: 4.2ms) + + +Started PATCH "/tasks/9" for ::1 at 2019-04-15 00:03:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"OozekiM1cKQAO2M7iu6jaXb9oo37uJt4bed0iQZ8L7FSQPZE9IV4rZyozT53kyFZxTYhsz2mNxVY5Fomd497OA==", "task"=>{"name"=>"asdf asdf", "description"=>"asdfasdfasd asdf asd fa sdf as dfa sdf", "priorty"=>"6"}, "commit"=>"Update Tasks", "id"=>"9"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:40 +Unpermitted parameter: :priorty +  (3.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:42 + Task Update (0.5ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "asdfasdfasd asdf asd fa sdf as dfa sdf"], ["updated_at", "2019-04-15 07:03:07.848080"], ["id", 9]] + ↳ app/controllers/tasks_controller.rb:42 +  (40.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:42 +Redirected to http://localhost:3000/ +Completed 302 Found in 52ms (ActiveRecord: 44.5ms) + + +Started GET "/" for ::1 at 2019-04-15 00:03:07 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 00:03:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 37ms (Views: 32.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-15 00:03:19 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/EQV/TaoQ2NpdXyUhPl/Xo2AeJ+LOoARB9AvLP+gVzJheOZkv1ab6w8u5qibvg+D413X27aZQLD933qksaECBA==", "task"=>{"name"=>"asdfasdf", "description"=>"asdfasdfasd ffsd f asd fa sdf asd fa sdf asd f asd", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (1.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asdfasdf"], ["description", "asdfasdfasd ffsd f asd fa sdf asd fa sdf asd f asd"], ["created_at", "2019-04-15 07:03:19.888051"], ["updated_at", "2019-04-15 07:03:19.888051"]] + ↳ app/controllers/tasks_controller.rb:22 +  (40.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 50ms (ActiveRecord: 41.7ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-15 00:03:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 24ms (Views: 21.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 00:03:23 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 38ms (Views: 34.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-15 00:03:30 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"D0fJtWQuo3MJFJH/bY3JatKHM+oRQDEXWSx8RwfRg0KSezos7dB7+29PC8Nyyrm3vFqcrizj8bajIynPSdDWdA==", "task"=>{"name"=>"asdf asdf asd f asdf as df", "description"=>"asdf asd f asdf a sdf asd f asdf as", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asdf asdf asd f asdf as df"], ["description", "asdf asd f asdf a sdf asd f asdf as"], ["created_at", "2019-04-15 07:03:30.512470"], ["updated_at", "2019-04-15 07:03:30.512470"]] + ↳ app/controllers/tasks_controller.rb:22 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 8ms (ActiveRecord: 2.0ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-15 00:03:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 30ms (Views: 23.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 00:03:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.0ms) +Completed 200 OK in 40ms (Views: 36.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-15 00:04:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"NPrEzLaK9FFfoceHB3F4bA3cRlLswVcXEz1JlRuQg3ipxjdVP3Qs2Tn6XbsYNgixYwHpFtFil7bpMhwdVZHWTg==", "task"=>{"name"=>"asdfasdf asdfas df asdf", "description"=>"asdfasdfasdf asd fa sdf asd f asdf weqrw er qwe rq we r qwe r wer qwe r wer wer qwerqwe r wer wr qw er qwe rqw er qwe r qwerqw erqwerweqrqwerasdfasdf sadf s", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asdfasdf asdfas df asdf"], ["description", "asdfasdfasdf asd fa sdf asd f asdf weqrw er qwe rq we r qwe r wer qwe r wer wer qwerqwe r wer wr qw er qwe rqw er qwe r qwerqw erqwerweqrqwerasdfasdf sadf s"], ["created_at", "2019-04-15 07:04:16.159676"], ["updated_at", "2019-04-15 07:04:16.159676"]] + ↳ app/controllers/tasks_controller.rb:22 +  (2.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 9ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-15 00:04:16 -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 (0.9ms) +Completed 200 OK in 33ms (Views: 30.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 00:04: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.4ms) +Completed 200 OK in 43ms (Views: 39.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-15 00:04:29 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yQc4lA/Txe7mASZWYOr0SMwqMuGF5EdLErpjGtuS/4xUO8sNhi0dZoBavGp/rYSVovedpbhHh+rotTaSlZOqug==", "task"=>{"name"=>"asdfasdf", "description"=>"asdfasdfasdfsad fas df as df asd f asd fa sdf a sdf as df asd f asdf as df asd fa sdf ", "priorty"=>"1"}, "commit"=>"Save Tasks"} +Unpermitted parameter: :priorty +  (1.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (4.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "asdfasdf"], ["description", "asdfasdfasdfsad fas df as df asd f asd fa sdf a sdf as df asd f asdf as df asd fa sdf "], ["created_at", "2019-04-15 07:04:29.873957"], ["updated_at", "2019-04-15 07:04:29.873957"]] + ↳ app/controllers/tasks_controller.rb:22 +  (0.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 +Redirected to http://localhost:3000/tasks/14 +Completed 302 Found in 11ms (ActiveRecord: 5.7ms) + + +Started GET "/tasks/14" for ::1 at 2019-04-15 00:04:29 -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 (1.0ms) +Completed 200 OK in 26ms (Views: 22.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 00:04:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 41ms (Views: 36.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 00:04:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.4ms) +Completed 200 OK in 57ms (Views: 48.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 00:04:43 -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 32ms (Views: 29.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 00:04:46 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 47ms (Views: 41.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-15 00:04:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (6.5ms) 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 (2.2ms) +Completed 200 OK in 57ms (Views: 42.6ms | ActiveRecord: 6.5ms) + + +Started GET "/tasks/11/edit" for ::1 at 2019-04-15 00:04:50 -0700 +Processing by TasksController#edit as HTML + Parameters: {"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:31 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.3ms) +Completed 200 OK in 50ms (Views: 32.3ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/11" for ::1 at 2019-04-15 00:04:52 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"T9+Bby+jW4Kf+GBvnJpqp0DH6SbetFSFXUHjPTqobY//XxvRvqGL4RArBVx1+Jh0gfXx4g/lyZ18k/bJRbmy4A==", "task"=>{"name"=>"asdfasdf", "description"=>"asdfasdfasd ffsd f asd fa sdf asd fa sdf asd f asd", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:40 +Unpermitted parameter: :priorty +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:42 +Redirected to http://localhost:3000/ +Completed 302 Found in 6ms (ActiveRecord: 0.8ms) + + +Started GET "/" for ::1 at 2019-04-15 00:04:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 29ms (Views: 25.5ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-15 00:04:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (11.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 (1.0ms) +Completed 200 OK in 58ms (Views: 38.4ms | ActiveRecord: 11.6ms) + + +Started DELETE "/tasks/11" for ::1 at 2019-04-15 00:04:57 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"3Iwl1gFLhZtlEBdjei1i8wAZaprgabZafBjD4qNZpO5YKVlcu9uw+7XmKEpZkWxKvP3SIkqPt71Cb4b1JBlOiA==", "id"=>"11"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:51 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:52 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 11]] + ↳ app/controllers/tasks_controller.rb:52 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:52 +Redirected to http://localhost:3000/ +Completed 302 Found in 8ms (ActiveRecord: 2.7ms) + + +Started GET "/" for ::1 at 2019-04-15 00:04: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 30ms (Views: 27.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-15 00:05:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (2.0ms) 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 (3.4ms) +Completed 200 OK in 51ms (Views: 40.1ms | ActiveRecord: 2.0ms) + + +Started PATCH "/task/13/mark" for ::1 at 2019-04-15 00:05:08 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"3a2UbdCJXhmQ6ekzW8bYImbKjQIU1ykHG8vh+GIaPQ1ZCOjnahlreUAf1hp4etab2i41ur4xKOAlvKTv5VrXaw==", "id"=>"13"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (0.9ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 07:05:08.443732"], ["updated_at", "2019-04-15 07:05:08.444865"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:61 +  (4.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 15ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-15 00:05:08 -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 (2.2ms) +Completed 200 OK in 30ms (Views: 26.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 00:05:10 -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 51ms (Views: 47.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 00:05:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 48ms (Views: 41.1ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 00:10:43 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 42ms (Views: 38.1ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 00:10:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.7ms) +Completed 200 OK in 49ms (Views: 43.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 00:11:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (9.3ms) +Completed 200 OK in 71ms (Views: 60.8ms | ActiveRecord: 4.7ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-15 00:11:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"12"} + Task Load (0.6ms) 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 (1.5ms) +Completed 200 OK in 51ms (Views: 29.3ms | ActiveRecord: 9.7ms) + + +Started PATCH "/task/12/mark" for ::1 at 2019-04-15 00:11:08 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"yifcNKsNTcJiJjVfMjr480hTeddYcOr9t+0kgVoHURtOgqC+EZ14orLQCnYRhvZK9LfBb/KW6xqJmmGW3Ue7fQ==", "id"=>"12"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (0.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 07:11:08.786854"], ["updated_at", "2019-04-15 07:11:08.788476"], ["id", 12]] + ↳ app/controllers/tasks_controller.rb:61 +  (41.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 51ms (ActiveRecord: 43.4ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-15 00:11:08 -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.8ms) +Completed 200 OK in 24ms (Views: 19.8ms | ActiveRecord: 0.4ms) + + +Started PATCH "/task/12/mark" for ::1 at 2019-04-15 00:11:10 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"WUB+kKVrzARTGi79eqzhl5Yjze0j/LejJOGJ8mzEfxfd5QIaH/v5ZIPsEdRZEO8uKsd1VYkatkQalszl64SVcQ==", "id"=>"12"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (3.0ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 07:11:10.941983"], ["id", 12]] + ↳ app/controllers/tasks_controller.rb:61 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 14ms (ActiveRecord: 6.0ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-15 00:11:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 27ms (Views: 22.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/task/12/mark" for ::1 at 2019-04-15 00:11:11 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"VJcX2xzxhwIvxj385v1Lir8FiYlz+J9arUIPEkLSt5HQMmtRpmGyYv8wAtXFQUUzA+ExMdkenr2TNUoFxZJd9w==", "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:58 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (0.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 07:11:11.950230"], ["updated_at", "2019-04-15 07:11:11.952494"], ["id", 12]] + ↳ app/controllers/tasks_controller.rb:61 +  (40.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 51ms (ActiveRecord: 41.7ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-15 00:11:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"12"} + Task Load (0.2ms) 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.8ms) +Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 00:11:14 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 41ms (Views: 37.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-15 00:12:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (9.0ms) 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.5ms) +Completed 200 OK in 51ms (Views: 36.1ms | ActiveRecord: 9.0ms) + + +Started PATCH "/task/13/mark" for ::1 at 2019-04-15 00:12:34 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"/fvSzCI1lUWwYYpdIVwG7FugF/gfieP2v85GjJ9iMQ95Xq5GmKWgJWCXtXQC4AhV50SvQLVv4hGBuQObGCLbaQ==", "id"=>"13"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +  (0.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (3.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 07:12:34.720054"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:61 +  (40.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 57ms (ActiveRecord: 45.9ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-15 00:12:34 -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 (0.8ms) +Completed 200 OK in 31ms (Views: 26.9ms | ActiveRecord: 0.2ms) + + +Started PATCH "/task/13/mark" for ::1 at 2019-04-15 00:12:36 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"xplyNzV8o9tgCOujJBZCw7IiSX9QR3Eqf7/a/BG2LBBCPA69j+yWu7D+1IoHqkx6Dsbxx/qhcM1ByJ/rlvbGdg==", "id"=>"13"} + Task Load (3.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +  (0.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (0.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 07:12:36.993554"], ["updated_at", "2019-04-15 07:12:36.995483"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:61 +  (29.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 44ms (ActiveRecord: 33.9ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-15 00:12:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 32ms (Views: 22.7ms | ActiveRecord: 0.9ms) + + +Started PATCH "/task/13/mark" for ::1 at 2019-04-15 00:12:38 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"JsHfYljeYTghJft3PdAFsz+1+uHziN7dzeYsgKgOW4CiZKPo4k5UWPHTxF4ebAsKg1FCWVlu3zrzkWmXL06x5g==", "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:58 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (0.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 07:12:38.719932"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:61 +  (24.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 34ms (ActiveRecord: 26.2ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-15 00: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 (0.8ms) +Completed 200 OK in 26ms (Views: 23.0ms | ActiveRecord: 0.2ms) + + + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +Started GET "/tasks" for ::1 at 2019-04-15 08:12:43 -0700 +  (40.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/qqdipps/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (13.5ms) +Completed 200 OK in 339ms (Views: 324.6ms | ActiveRecord: 4.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 08:12: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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 29ms (Views: 23.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-15 08:12:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb: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: 27.8ms | ActiveRecord: 2.8ms) + + +Started PATCH "/task/9/mark" for ::1 at 2019-04-15 08:12:59 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"kb262yC0aqbRWEqyIWT9uDO4nDNHHsr4FY7EE6O4HHUVGMZRmiRfxgGudZsC2PMBj1wki+34yx8r+YEEJPj2Ew==", "id"=>"9"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:12:59.934587"], ["updated_at", "2019-04-15 15:12:59.936223"], ["id", 9]] + ↳ app/controllers/tasks_controller.rb:61 +  (39.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 48ms (ActiveRecord: 41.0ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-15 08:12:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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 22ms (Views: 19.0ms | ActiveRecord: 0.3ms) + + + Task Load (46.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +Started PATCH "/task/9/mark" for ::1 at 2019-04-15 08:37:00 -0700 +Processing by TasksController#mark as HTML + Parameters: {"authenticity_token"=>"uZhqjoZzRGDpzoTsVNNCafoyDGRsR+opGbg0Kmh7r2M9PRYEPONxADk4u8V3b0zQRta03Mah684nz3E97ztFBQ==", "id"=>"9"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:61 + Task Update (0.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 15:37:00.631006"], ["id", 9]] + ↳ app/controllers/tasks_controller.rb:61 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:61 +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 8ms (ActiveRecord: 1.7ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-15 08:37:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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 31ms (Views: 27.0ms | ActiveRecord: 0.3ms) + + + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +Started GET "/" for ::1 at 2019-04-15 09:49:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (13.7ms) +Completed 200 OK in 54ms (Views: 39.0ms | ActiveRecord: 8.3ms) + + +Started GET "/tasks/14" for ::1 at 2019-04-15 09:49:20 -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 (0.7ms) +Completed 200 OK in 83ms (Views: 62.0ms | ActiveRecord: 6.9ms) + + +Started GET "/tasks/14/edit" for ::1 at 2019-04-15 09:49:21 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"14"} + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:31 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (16.4ms) + Rendered tasks/edit.html.erb within layouts/application (19.5ms) +Completed 200 OK in 53ms (Views: 43.4ms | ActiveRecord: 2.1ms) + + +Started PATCH "/tasks/14" for ::1 at 2019-04-15 09:49:23 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"E7f+n9djgUAwMgoM6qVasuYU1mGw+rewow6M6l1mU8HSVkDz3UK9hGeAuA2iy+6Nuz3v/ameN0vdKQY+TXwFlQ==", "task"=>{"name"=>"asdfasdf", "description"=>"asdfasdfasdfsad fas df as df asd f asd fa sdf a sdf as df asd f asdf as df asd fa sdf ", "priorty"=>"1"}, "commit"=>"Update Tasks", "id"=>"14"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:40 +Unpermitted parameter: :priorty +  (0.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:42 +  (0.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:42 +Redirected to http://localhost:3000/ +Completed 302 Found in 9ms (ActiveRecord: 2.6ms) + + +Started GET "/" for ::1 at 2019-04-15 09:49:23 -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"."completion_date" DESC + ↳ app/views/tasks/index.html.erb:5 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 42ms (Views: 39.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-15 09:49:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (3.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["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.8ms) +Completed 200 OK in 74ms (Views: 61.5ms | ActiveRecord: 3.7ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-15 09:49:28 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.1ms) + Rendered tasks/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 34ms (Views: 30.0ms | ActiveRecord: 0.0ms) + + diff --git a/log/test.log b/log/test.log new file mode 100644 index 000000000..91fe7e7b6 --- /dev/null +++ b/log/test.log @@ -0,0 +1,17843 @@ +  (208.4ms) DROP DATABASE IF EXISTS "TaskList_test" +  (568.8ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' +  (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.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (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-04-08 14:41: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.3ms) +Completed 200 OK in 322ms (Views: 310.2ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (216.2ms) DROP DATABASE IF EXISTS "TaskList_test" +  (568.6ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (41.9ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (13.4ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "priority_level" integer) +  (3.4ms) 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 +  (43.5ms) INSERT INTO "schema_migrations" (version) VALUES (20190410035722) +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES +(20190409224945); + + +  (44.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) + ActiveRecord::InternalMetadata Load (0.4ms) 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 (22.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-04-10 18:26:17.426786"], ["updated_at", "2019-04-10 18:26:17.426786"]] +  (0.4ms) COMMIT + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) BEGIN +  (0.1ms) COMMIT +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (1.2ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-10 18:26:17.714388', '2019-04-10 18:26:17.714388', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-10 18:26:17.714388', '2019-04-10 18:26:17.714388', DEFAULT) +  (0.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.4ms) 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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.6ms) 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-04-10 11:26:17 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 382ms (Views: 372.8ms | ActiveRecord: 0.8ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (1.4ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-10 18:26:44.509886', '2019-04-10 18:26:44.509886', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-10 18:26:44.509886', '2019-04-10 18:26:44.509886', DEFAULT) +  (40.7ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 11:26:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (15.0ms) +Completed 200 OK in 232ms (Views: 218.8ms | ActiveRecord: 0.8ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.4ms) ROLLBACK +  (0.6ms) 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 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-10 18:27:29.632465', '2019-04-10 18:27:29.632465', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-10 18:27:29.632465', '2019-04-10 18:27:29.632465', DEFAULT) +  (22.7ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new 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.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.6ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) 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-04-10 11:27: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (12.2ms) +Completed 200 OK in 237ms (Views: 228.3ms | ActiveRecord: 0.5ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-10 18:27:35.220371', '2019-04-10 18:27:35.220371', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-10 18:27:35.220371', '2019-04-10 18:27:35.220371', DEFAULT) +  (2.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 11:27:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (13.3ms) +Completed 200 OK in 224ms (Views: 214.9ms | ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.2ms) 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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 00:12:13.247503', '2019-04-11 00:12:13.247503', DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 00:12:13.247503', '2019-04-11 00:12:13.247503', DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 17:12:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (13.8ms) +Completed 200 OK in 254ms (Views: 243.1ms | ActiveRecord: 0.9ms) +  (0.4ms) ROLLBACK +  (0.2ms) 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.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.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.7ms) 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 +  (2.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (0.4ms) 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"]] +  (256.5ms) DROP DATABASE IF EXISTS "TaskList_test" +  (544.7ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.4ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (9.6ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "priority_level" integer, "priority" integer) +  (4.3ms) 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.9ms) INSERT INTO "schema_migrations" (version) VALUES (20190411153205) +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES +(20190410035722), +(20190409224945); + + +  (8.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) + ActiveRecord::InternalMetadata Load (0.4ms) 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-04-11 16:13:30.279943"], ["updated_at", "2019-04-11 16:13:30.279943"]] +  (0.3ms) COMMIT + ActiveRecord::InternalMetadata Load (0.2ms) 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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (2.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:13:30.553818', '2019-04-11 16:13:30.553818', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:13:30.553818', '2019-04-11 16:13:30.553818', DEFAULT, DEFAULT) +  (0.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.4ms) 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::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_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:13:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (14.5ms) +Completed 200 OK in 264ms (Views: 252.1ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.1ms) ROLLBACK +  (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.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:14:36.549292', '2019-04-11 16:14:36.549292', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:14:36.549292', '2019-04-11 16:14:36.549292', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.1ms) BEGIN +  (0.8ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:14:36 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (15.0ms) +Completed 200 OK in 267ms (Views: 250.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:14:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 5ms (ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.8ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (39.7ms) 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", "2019-04-16 16:14:36.868646"], ["created_at", "2019-04-11 16:14:36.913641"], ["updated_at", "2019-04-11 16:14:36.913641"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:14:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.4ms) +  (1.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:14:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.1ms) 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.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:17:39.099113', '2019-04-11 16:17:39.099113', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:17:39.099113', '2019-04-11 16:17:39.099113', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:17:39 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 173ms (Views: 163.4ms | ActiveRecord: 0.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-04-11 09:17:39 -0700 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:17:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (14.3ms) +Completed 200 OK in 20ms (Views: 17.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:17:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 8ms (ActiveRecord: 0.9ms) +  (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", "2019-04-16 16:17:39.381706"], ["created_at", "2019-04-11 16:17:39.386593"], ["updated_at", "2019-04-11 16:17:39.386593"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:17:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 13ms (Views: 6.5ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.7ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) 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 +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:18:19.682563', '2019-04-11 16:18:19.682563', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:18:19.682563', '2019-04-11 16:18:19.682563', DEFAULT, DEFAULT) +  (2.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:18:19 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.5ms) +Completed 200 OK in 217ms (Views: 203.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.5ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:18: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]] +Completed 404 Not Found in 7ms (ActiveRecord: 0.6ms) +  (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", "2019-04-16 16:18:19.967380"], ["created_at", "2019-04-11 16:18:19.974221"], ["updated_at", "2019-04-11 16:18:19.974221"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:18:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.8ms) +Completed 200 OK in 13ms (Views: 6.4ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:18:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 11ms (Views: 6.6ms | 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-04-11 09:18:20 -0700 +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.8ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:19:10.707468', '2019-04-11 16:19:10.707468', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:19:10.707468', '2019-04-11 16:19:10.707468', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-16 16:19:10.740142"], ["created_at", "2019-04-11 16:19:10.742489"], ["updated_at", "2019-04-11 16:19:10.742489"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:19:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 145ms (Views: 135.5ms | 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-04-11 09:19:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.4ms) +  (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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:19:10 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (15.3ms) +Completed 200 OK in 23ms (Views: 19.3ms | ActiveRecord: 0.0ms) +  (0.8ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:19:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (7.7ms) +Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 1.1ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:19:10 -0700 +  (0.7ms) 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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:19:38.617931', '2019-04-11 16:19:38.617931', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:19:38.617931', '2019-04-11 16:19:38.617931', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.3ms) BEGIN +  (1.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:19:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 147ms (Views: 139.9ms | ActiveRecord: 0.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-04-11 09:19:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.5ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("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", "2019-04-16 16:19:38.829934"], ["created_at", "2019-04-11 16:19:38.833110"], ["updated_at", "2019-04-11 16:19:38.833110"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:19:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 13ms (Views: 5.1ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:19:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:19:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.1ms) +Completed 200 OK in 39ms (Views: 36.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:20:06.335046', '2019-04-11 16:20:06.335046', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:20:06.335046', '2019-04-11 16:20:06.335046', DEFAULT, DEFAULT) +  (1.5ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:20:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.5ms) +Completed 200 OK in 184ms (Views: 169.7ms | ActiveRecord: 0.0ms) +  (1.4ms) 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.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:20:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:20: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new 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::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:20:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 5ms (ActiveRecord: 0.6ms) +  (1.6ms) ROLLBACK +  (1.0ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.7ms) 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", "2019-04-16 16:20:06.628144"], ["created_at", "2019-04-11 16:20:06.631360"], ["updated_at", "2019-04-11 16:20:06.631360"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:20:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 11ms (Views: 4.7ms | ActiveRecord: 0.4ms) +  (1.5ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:24:15.960840', '2019-04-11 16:24:15.960840', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:24:15.960840', '2019-04-11 16:24:15.960840', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:24:15 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.8ms) +Completed 200 OK in 233ms (Views: 217.7ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:24:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (8.2ms) +Completed 200 OK in 14ms (Views: 9.5ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:24: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms) +  (1.6ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:24:16 -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 5ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-16 16:24:16.321028"], ["created_at", "2019-04-11 16:24:16.324282"], ["updated_at", "2019-04-11 16:24:16.324282"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:24:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.4ms) +  (0.2ms) 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.3ms) BEGIN +  (0.7ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:28:55.722399', '2019-04-11 16:28:55.722399', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:28:55.722399', '2019-04-11 16:28:55.722399', DEFAULT, DEFAULT) +  (2.5ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.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 +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:28:55 -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 233ms (Views: 214.6ms | ActiveRecord: 0.0ms) +  (0.2ms) 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.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:28:56 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:28:56 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (1.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", "2019-04-16 16:28:56.050376"], ["created_at", "2019-04-11 16:28:56.054137"], ["updated_at", "2019-04-11 16:28:56.054137"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:28:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 14ms (Views: 7.6ms | ActiveRecord: 0.6ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:28:56 -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 +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:30:32.909034', '2019-04-11 16:30:32.909034', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:30:32.909034', '2019-04-11 16:30:32.909034', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:30:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.1ms) +Completed 200 OK in 221ms (Views: 197.3ms | 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) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (1.0ms) 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", "2019-04-16 16:30:33.180861"], ["created_at", "2019-04-11 16:30:33.184164"], ["updated_at", "2019-04-11 16:30:33.184164"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:30:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 14ms (Views: 6.5ms | 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-04-11 09:30:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (1.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:30:33 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.8ms) +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:30: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms) +  (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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:31:42.220148', '2019-04-11 16:31:42.220148', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:31:42.220148', '2019-04-11 16:31:42.220148', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.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", "2019-04-16 16:31:42.241041"], ["created_at", "2019-04-11 16:31:42.251919"], ["updated_at", "2019-04-11 16:31:42.251919"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:31:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 208ms (Views: 198.4ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:31:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.3ms) 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 +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:31:42 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.9ms) +Completed 200 OK in 12ms (Views: 9.7ms | 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-04-11 09:31:42 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:31:42 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.8ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:32:02.583806', '2019-04-11 16:32:02.583806', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:32:02.583806', '2019-04-11 16:32:02.583806', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.5ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.5ms) 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.5ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (2.4ms) 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 +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:32:02 -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 228ms (Views: 219.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.4ms) 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", "2019-04-16 16:32:02.880870"], ["created_at", "2019-04-11 16:32:02.884209"], ["updated_at", "2019-04-11 16:32:02.884209"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:32:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 11ms (Views: 3.8ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:32:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:32:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:32:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.8ms) +  (0.9ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:32:19.485763', '2019-04-11 16:32:19.485763', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:32:19.485763', '2019-04-11 16:32:19.485763', DEFAULT, DEFAULT) +  (8.0ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:32: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 205ms (Views: 197.8ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:32:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:32:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.comCould not find task with id: -1 +Completed 302 Found in 4ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("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", "2019-04-16 16:32:19.771318"], ["created_at", "2019-04-11 16:32:19.775274"], ["updated_at", "2019-04-11 16:32:19.775274"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:32:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.6ms) +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:32:19 -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 14ms (Views: 10.9ms | 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.3ms) ROLLBACK +  (0.4ms) 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.6ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.8ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:43:34.204371', '2019-04-11 16:43:34.204371', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-11 16:43:34.204371', '2019-04-11 16:43:34.204371', DEFAULT, DEFAULT) +  (40.7ms) COMMIT +  (0.4ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.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-04-11 09:43: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 (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-04-11 16:43:34.291857"], ["updated_at", "2019-04-11 16:43:34.291857"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 15ms (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::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.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:43:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.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", "2019-04-16 16:43:34.326393"], ["created_at", "2019-04-11 16:43:34.328281"], ["updated_at", "2019-04-11 16:43:34.328281"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-11 09:43:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 221ms (Views: 216.0ms | 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-04-11 09:43:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:43:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:43:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (14.1ms) +Completed 200 OK in 18ms (Views: 15.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (2.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (34.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (2.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-12 15:44:25.970414', '2019-04-12 15:44:25.970414', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-12 15:44:25.970414', '2019-04-12 15:44:25.970414', DEFAULT, DEFAULT) +  (0.5ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 08:44:26 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (13.9ms) 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-04-12 15:44:26.120846"], ["updated_at", "2019-04-12 15:44:26.120846"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 29ms (ActiveRecord: 14.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 08:44:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (44.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (50.8ms) +Completed 200 OK in 380ms (Views: 331.9ms | ActiveRecord: 44.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-04-12 08:44:26 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 08:44:26 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (27.3ms) +Completed 200 OK in 31ms (Views: 28.4ms | ActiveRecord: 0.0ms) +  (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.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_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 08:44: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 2ms (ActiveRecord: 0.3ms) +  (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", "2019-04-17 15:44:26.623817"], ["created_at", "2019-04-12 15:44:26.626547"], ["updated_at", "2019-04-12 15:44:26.626547"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 08:44:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (2.7ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-13 00:19:04.569064', '2019-04-13 00:19:04.569064', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-13 00:19:04.569064', '2019-04-13 00:19:04.569064', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 17:19: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 9ms (ActiveRecord: 0.5ms) +  (41.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (40.4ms) SAVEPOINT active_record_1 + Task Create (2.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", "2019-04-18 00:19:04.704478"], ["created_at", "2019-04-13 00:19:04.764096"], ["updated_at", "2019-04-13 00:19:04.764096"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 17:19:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 255ms (Views: 250.7ms | 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) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update 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::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 17:19:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (6.5ms) +Completed 200 OK in 15ms (Views: 10.6ms | ActiveRecord: 1.8ms) +  (0.4ms) ROLLBACK +  (0.5ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 17:19:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (67.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (73.0ms) +Completed 200 OK in 76ms (Views: 7.6ms | ActiveRecord: 67.4ms) +  (10.7ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (70.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 17:19:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.8ms) SAVEPOINT active_record_1 + Task Create (2.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-04-13 00:19:05.327400"], ["updated_at", "2019-04-13 00:19:05.327400"]] +  (2.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 26ms (ActiveRecord: 5.2ms) +  (9.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.4ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 17:19:05 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (27.5ms) +Completed 200 OK in 54ms (Views: 31.6ms | ActiveRecord: 0.0ms) +  (0.5ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-13 00:19:57.333471', '2019-04-13 00:19:57.333471', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-13 00:19:57.333471', '2019-04-13 00:19:57.333471', DEFAULT, DEFAULT) +  (40.5ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 17:19:57 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (16.7ms) +Completed 200 OK in 239ms (Views: 230.5ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 17:19: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-12 17:19:57 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.6ms) +  (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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 17:19:57 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (12.3ms) +Completed 200 OK in 16ms (Views: 14.1ms | ActiveRecord: 0.0ms) +  (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.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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", "2019-04-18 00:19:57.753325"], ["created_at", "2019-04-13 00:19:57.755321"], ["updated_at", "2019-04-13 00:19:57.755321"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 17:19:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 17:19:57 -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.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 17:19: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.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-04-13 00:19:57.778182"], ["updated_at", "2019-04-13 00:19:57.778182"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (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 +  (41.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-13 00:25:39.376481', '2019-04-13 00:25:39.376481', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-13 00:25:39.376481', '2019-04-13 00:25:39.376481', DEFAULT, DEFAULT) +  (40.7ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (1.4ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 17:25:39 -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 240ms (Views: 226.5ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 17:25:39 -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-04-13 00:25:39.742345"], ["updated_at", "2019-04-13 00:25:39.742345"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 8ms (ActiveRecord: 1.5ms) +  (1.6ms) 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.3ms) 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", "2019-04-18 00:25:39.769059"], ["created_at", "2019-04-13 00:25:39.771964"], ["updated_at", "2019-04-13 00:25:39.771964"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 17:25:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 13ms (Views: 8.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 17:25:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) +  (0.3ms) 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 +--------------------------------------------------------------------------- +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-12 17:25:39 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 17:25:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 17:25:39 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (41.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:13:08.560935', '2019-04-14 03:13:08.560935', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:13:08.560935', '2019-04-14 03:13:08.560935', DEFAULT, DEFAULT) +  (0.9ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (24.6ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +Started GET "/tasks/1/edit" for 127.0.0.1 at 2019-04-13 20:13:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 10ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.5ms) 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_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 20:13:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (40.7ms) 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", "2019-04-19 03:13:08.705154"], ["created_at", "2019-04-14 03:13:08.749580"], ["updated_at", "2019-04-14 03:13:08.749580"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 20:13:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 251ms (Views: 246.3ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 20:13:09 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (16.2ms) +Completed 200 OK in 21ms (Views: 17.7ms | 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-04-13 20:13: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.7ms) +  (7.1ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 20:13:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 5ms (Views: 3.6ms | 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-04-13 20:13: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-04-14 03:13:09.074447"], ["updated_at", "2019-04-14 03:13:09.074447"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.6ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:14:43.125181', '2019-04-14 03:14:43.125181', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:14:43.125181', '2019-04-14 03:14:43.125181', DEFAULT, DEFAULT) +  (40.6ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 20:14:43 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (13.4ms) +Completed 200 OK in 227ms (Views: 220.1ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 20:14:43 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 20:14: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-04-14 03:14:43.451460"], ["updated_at", "2019-04-14 03:14:43.451460"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 5ms (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.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 20:14:43 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.1ms) +Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "sample 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-04-13 20:14:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (1.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", "2019-04-19 03:14:43.500282"], ["created_at", "2019-04-14 03:14:43.502104"], ["updated_at", "2019-04-14 03:14:43.502104"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 20:14:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 14ms (Views: 6.7ms | ActiveRecord: 1.7ms) +  (0.4ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:15:37.456081', '2019-04-14 03:15:37.456081', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:15:37.456081', '2019-04-14 03:15:37.456081', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.6ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 20:15:37 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.6ms) +Completed 200 OK in 209ms (Views: 182.5ms | 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) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("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", "2019-04-19 03:15:37.703342"], ["created_at", "2019-04-14 03:15:37.707604"], ["updated_at", "2019-04-14 03:15:37.707604"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 20:15:37 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.5ms) +Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 0.4ms) +  (0.4ms) 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-04-13 20:15:37 -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-04-14 03:15:37.736189"], ["updated_at", "2019-04-14 03:15:37.736189"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +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.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-04-13 20:15:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.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", "2019-04-19 03:15:37.754555"], ["created_at", "2019-04-14 03:15:37.756117"], ["updated_at", "2019-04-14 03:15:37.756117"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 20:15:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 2.2ms | 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-04-13 20:15:37 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 20:15: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms) +  (10.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:17:06.569530', '2019-04-14 03:17:06.569530', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:17:06.569530', '2019-04-14 03:17:06.569530', DEFAULT, DEFAULT) +  (40.0ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 20:17:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (17.8ms) +Completed 200 OK in 228ms (Views: 220.1ms | ActiveRecord: 0.0ms) +  (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.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", "2019-04-19 03:17:06.883346"], ["created_at", "2019-04-14 03:17:06.885628"], ["updated_at", "2019-04-14 03:17:06.885628"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 20:17:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.8ms) +Completed 200 OK in 13ms (Views: 4.7ms | ActiveRecord: 2.1ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 20:17: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 (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-04-14 03:17:07.005230"], ["updated_at", "2019-04-14 03:17:07.005230"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (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.1ms) ROLLBACK +  (0.6ms) 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", "2019-04-19 03:17:07.027298"], ["created_at", "2019-04-14 03:17:07.029044"], ["updated_at", "2019-04-14 03:17:07.029044"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 20:17:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 8ms (Views: 2.6ms | ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 20:17:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.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-04-13 20:17:07 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 20:17:07 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:17:25.122575', '2019-04-14 03:17:25.122575', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:17:25.122575', '2019-04-14 03:17:25.122575', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-19 03:17:25.144811"], ["created_at", "2019-04-14 03:17:25.155954"], ["updated_at", "2019-04-14 03:17:25.155954"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 20:17:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 208ms (Views: 199.6ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 20:17:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.5ms) 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", "2019-04-19 03:17:25.383752"], ["created_at", "2019-04-14 03:17:25.386999"], ["updated_at", "2019-04-14 03:17:25.386999"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 20:17:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (12.7ms) +Completed 200 OK in 20ms (Views: 15.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/3/edit" for 127.0.0.1 at 2019-04-13 20:17:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 20:17:25 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 20:17:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 20:17:25 -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.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 20:17:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.4ms) SAVEPOINT active_record_1 + Task Create (2.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-04-14 03:17:25.467859"], ["updated_at", "2019-04-14 03:17:25.467859"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 8ms (ActiveRecord: 3.3ms) +  (0.8ms) 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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:18:08.709501', '2019-04-14 03:18:08.709501', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:18:08.709501', '2019-04-14 03:18:08.709501', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 20:18:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 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.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", "2019-04-19 03:18:08.769718"], ["created_at", "2019-04-14 03:18:08.786129"], ["updated_at", "2019-04-14 03:18:08.786129"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 20:18:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (11.1ms) +Completed 200 OK in 233ms (Views: 229.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 20:18: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.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-04-14 03:18:09.040875"], ["updated_at", "2019-04-14 03:18:09.040875"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (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-04-13 20:18:09 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 9ms (Views: 6.3ms | 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-04-13 20:18:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 20:18:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.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", "2019-04-19 03:18:09.084170"], ["created_at", "2019-04-14 03:18:09.085775"], ["updated_at", "2019-04-14 03:18:09.085775"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 20:18:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 6ms (Views: 2.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-04-13 20:18: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.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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) BEGIN +  (1.1ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.5ms) COMMIT +  (0.3ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:18:24.636953', '2019-04-14 03:18:24.636953', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 03:18:24.636953', '2019-04-14 03:18:24.636953', DEFAULT, DEFAULT) +  (40.4ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (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", "2019-04-19 03:18:24.700495"], ["created_at", "2019-04-14 03:18:24.712319"], ["updated_at", "2019-04-14 03:18:24.712319"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 20:18:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 225ms (Views: 214.9ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 20:18:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 20:18: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.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-04-14 03:18:24.969937"], ["updated_at", "2019-04-14 03:18:24.969937"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +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.1ms) ROLLBACK +  (0.7ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 20:18:24 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 20:18:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (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.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 20:18:25 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (16.2ms) +Completed 200 OK in 21ms (Views: 18.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.6ms) 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", "2019-04-19 03:18:25.044123"], ["created_at", "2019-04-14 03:18:25.049037"], ["updated_at", "2019-04-14 03:18:25.049037"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 20:18:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.8ms) +Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 20:18:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (1.1ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:26:44.270740', '2019-04-14 04:26:44.270740', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:26:44.270740', '2019-04-14 04:26:44.270740', DEFAULT, DEFAULT) +  (0.3ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 21:26:44 -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 280ms (Views: 261.2ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (2.0ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 21:26:44 -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-04-14 04:26:44.645926"], ["updated_at", "2019-04-14 04:26:44.645926"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" + Task Load (41.4ms) 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.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", "2019-04-19 04:26:44.726831"], ["created_at", "2019-04-14 04:26:44.729557"], ["updated_at", "2019-04-14 04:26:44.729557"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 21:26:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.2ms) +Completed 200 OK in 11ms (Views: 4.6ms | ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 21:26:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (2.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 2.4ms) +  (0.4ms) 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", "2019-04-19 04:26:44.760756"], ["created_at", "2019-04-14 04:26:44.762426"], ["updated_at", "2019-04-14 04:26:44.762426"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 21:26:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 0.3ms) +  (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-04-13 21:26: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.2ms) ROLLBACK +  (0.2ms) 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.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", "2019-04-19 04:26:44.786290"], ["created_at", "2019-04-14 04:26:44.788044"], ["updated_at", "2019-04-14 04:26:44.788044"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:26:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 1.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 21:26: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:28:32.906169', '2019-04-14 04:28:32.906169', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:28:32.906169', '2019-04-14 04:28:32.906169', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.4ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 21:28:32 -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-04-14 04:28:32.955288"], ["updated_at", "2019-04-14 04:28:32.955288"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 15ms (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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) 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", "2019-04-19 04:28:32.972232"], ["created_at", "2019-04-14 04:28:32.974060"], ["updated_at", "2019-04-14 04:28:32.974060"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964" for 127.0.0.1 at 2019-04-13 21:28:32 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:28:32.982955"], ["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 7ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (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.4ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:28:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 220ms (Views: 217.6ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 21:28: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 21:28:33 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.5ms) +Completed 200 OK in 13ms (Views: 10.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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", "2019-04-19 04:28:33.257017"], ["created_at", "2019-04-14 04:28:33.258937"], ["updated_at", "2019-04-14 04:28:33.258937"]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 21:28:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 21:28:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.4ms) 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", "2019-04-19 04:28:33.282801"], ["created_at", "2019-04-14 04:28:33.284646"], ["updated_at", "2019-04-14 04:28:33.284646"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-13 21:28:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.5ms) +Completed 200 OK in 9ms (Views: 5.9ms | 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/3/edit" for 127.0.0.1 at 2019-04-13 21:28:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:29:48.862812', '2019-04-14 04:29:48.862812', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:29:48.862812', '2019-04-14 04:29:48.862812', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 21:29:48 -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 8ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 04:29:48.904302"], ["created_at", "2019-04-14 04:29:48.914022"], ["updated_at", "2019-04-14 04:29:48.914022"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 21:29:48 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 208ms (Views: 202.6ms | ActiveRecord: 0.8ms) +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 21:29:49 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (12.3ms) +Completed 200 OK in 18ms (Views: 14.6ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-19 04:29:49.158540"], ["created_at", "2019-04-14 04:29:49.161334"], ["updated_at", "2019-04-14 04:29:49.161334"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 21:29:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.0ms) +Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 21:29:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:29:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 21:29:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.4ms) +  (0.8ms) ROLLBACK +  (0.6ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 21:29:49 -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-04-14 04:29:49.215332"], ["updated_at", "2019-04-14 04:29:49.215332"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (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.4ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) 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", "2019-04-19 04:29:49.240394"], ["created_at", "2019-04-14 04:29:49.243142"], ["updated_at", "2019-04-14 04:29:49.243142"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-13 21:29:49 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (1.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:29:49.251420"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 13ms (ActiveRecord: 2.1ms) +  (0.6ms) 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) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:30:24.765335', '2019-04-14 04:30:24.765335', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:30:24.765335', '2019-04-14 04:30:24.765335', DEFAULT, DEFAULT) +  (1.0ms) COMMIT +  (0.4ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 04:30:24.785020"], ["created_at", "2019-04-14 04:30:24.798874"], ["updated_at", "2019-04-14 04:30:24.798874"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 21:30:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 216ms (Views: 207.6ms | 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-04-13 21:30:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 21:30:25 -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-04-14 04:30:25.047845"], ["updated_at", "2019-04-14 04:30:25.047845"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (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.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", "2019-04-19 04:30:25.065773"], ["created_at", "2019-04-14 04:30:25.067395"], ["updated_at", "2019-04-14 04:30:25.067395"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 21:30:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.3ms) +Completed 200 OK in 15ms (Views: 12.4ms | ActiveRecord: 0.3ms) +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 21:30:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) 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.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", "2019-04-19 04:30:25.098882"], ["created_at", "2019-04-14 04:30:25.100605"], ["updated_at", "2019-04-14 04:30:25.100605"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-13 21:30:25 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.5ms) SAVEPOINT active_record_1 + Task Update (1.2ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:30:25.107337"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 11ms (ActiveRecord: 2.3ms) +  (0.2ms) 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.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 21:30:25 -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 6ms (Views: 3.0ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 21:30:25 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:30: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:31:03.262050', '2019-04-14 04:31:03.262050', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:31:03.262050', '2019-04-14 04:31:03.262050', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 21:31: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.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-04-14 04:31:03.315012"], ["updated_at", "2019-04-14 04:31:03.315012"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 18ms (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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 21:31:03 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (21.2ms) +Completed 200 OK in 212ms (Views: 209.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:31:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 21:31: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) 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.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", "2019-04-19 04:31:03.592246"], ["created_at", "2019-04-14 04:31:03.594866"], ["updated_at", "2019-04-14 04:31:03.594866"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PUT "/tasks/980190964" for 127.0.0.1 at 2019-04-13 21:31:03 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:31:03.603773"], ["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 8ms (ActiveRecord: 1.0ms) +  (0.7ms) SELECT COUNT(*) FROM "tasks" +  (0.5ms) ROLLBACK +  (0.4ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) 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", "2019-04-19 04:31:03.618523"], ["created_at", "2019-04-14 04:31:03.620180"], ["updated_at", "2019-04-14 04:31:03.620180"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 21:31:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.5ms) +Completed 200 OK in 11ms (Views: 7.2ms | 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/3/edit" for 127.0.0.1 at 2019-04-13 21:31:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["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.3ms) SAVEPOINT active_record_1 + Task Create (1.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", "2019-04-19 04:31:03.644643"], ["created_at", "2019-04-14 04:31:03.646983"], ["updated_at", "2019-04-14 04:31:03.646983"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-13 21:31:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 21:31:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:31:20.379338', '2019-04-14 04:31:20.379338', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:31:20.379338', '2019-04-14 04:31:20.379338', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) 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", "2019-04-19 04:31:20.398643"], ["created_at", "2019-04-14 04:31:20.412788"], ["updated_at", "2019-04-14 04:31:20.412788"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 21:31:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 195ms (Views: 184.9ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 21:31:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 04:31:20.635615"], ["created_at", "2019-04-14 04:31:20.638306"], ["updated_at", "2019-04-14 04:31:20.638306"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 21:31:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.7ms) +Completed 200 OK in 15ms (Views: 11.9ms | 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/3/edit" for 127.0.0.1 at 2019-04-13 21:31:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 21:31: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.8ms) +Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 21:31:20 -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-04-14 04:31:20.689460"], ["updated_at", "2019-04-14 04:31:20.689460"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (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.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.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", "2019-04-19 04:31:20.710049"], ["created_at", "2019-04-14 04:31:20.711588"], ["updated_at", "2019-04-14 04:31:20.711588"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-13 21:31:20 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:31:20.716075"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:31:20 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 21:31:20 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:54:33.054209', '2019-04-14 04:54:33.054209', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:54:33.054209', '2019-04-14 04:54:33.054209', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:54:33 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (19.3ms) +Completed 200 OK in 150ms (Views: 143.5ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 21:54:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.6ms) +  (0.5ms) 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", "2019-04-19 04:54:33.258088"], ["created_at", "2019-04-14 04:54:33.261385"], ["updated_at", "2019-04-14 04:54:33.261385"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 21:54:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 12ms (Views: 5.5ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 21:54:33 -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-04-13 21:54:33 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.6ms) +Completed 200 OK in 13ms (Views: 10.3ms | 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", "2019-04-19 04:54:33.310095"], ["created_at", "2019-04-14 04:54:33.312107"], ["updated_at", "2019-04-14 04:54:33.312107"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 21:54:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 21:54:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 21:54: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.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-04-14 04:54:33.343724"], ["updated_at", "2019-04-14 04:54:33.343724"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 5ms (ActiveRecord: 1.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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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 +-------------------------------------------------------------- + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 21:54:33 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (1.1ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:54:33.372587"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 10ms (ActiveRecord: 1.9ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:55:45.561174', '2019-04-14 04:55:45.561174', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:55:45.561174', '2019-04-14 04:55:45.561174', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 21:55:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 7ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("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", "2019-04-19 04:55:45.599380"], ["created_at", "2019-04-14 04:55:45.610858"], ["updated_at", "2019-04-14 04:55:45.610858"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 21:55:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.4ms) +Completed 200 OK in 213ms (Views: 208.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 21:55: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.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-04-14 04:55:45.840395"], ["updated_at", "2019-04-14 04:55:45.840395"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.5ms) 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::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", "2019-04-19 04:55:45.860607"], ["created_at", "2019-04-14 04:55:45.862253"], ["updated_at", "2019-04-14 04:55:45.862253"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 21:55:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 8ms (Views: 2.5ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 21:55:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:55:45 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 6ms (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-04-13 21:55: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.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-04-13 21:55:45 -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.4ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 21:55:45 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:55:45.912159"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["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) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:57:44.870312', '2019-04-14 04:57:44.870312', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:57:44.870312', '2019-04-14 04:57:44.870312', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::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", "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", "2019-04-19 04:57:44.893273"], ["created_at", "2019-04-14 04:57:44.908071"], ["updated_at", "2019-04-14 04:57:44.908071"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 21:57:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.0ms) +Completed 200 OK in 223ms (Views: 214.0ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 21:57:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.9ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 21:57:45 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:57:45.169607"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 9ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) 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", "2019-04-19 04:57:45.184875"], ["created_at", "2019-04-14 04:57:45.186692"], ["updated_at", "2019-04-14 04:57:45.186692"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 21:57:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 21:57:45 -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.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-04-13 21:57:45 -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 7ms (Views: 4.0ms | 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-04-13 21: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" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 21:57:45 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 21:57: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.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-04-14 04:57:45.243368"], ["updated_at", "2019-04-14 04:57:45.243368"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (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.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:59:03.994672', '2019-04-14 04:59:03.994672', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:59:03.994672', '2019-04-14 04:59:03.994672', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 21:59:04 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.8ms) +Completed 200 OK in 219ms (Views: 191.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.5ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 21:59:04 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:59: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 04:59:04.281528"], ["created_at", "2019-04-14 04:59:04.283853"], ["updated_at", "2019-04-14 04:59:04.283853"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 21:59:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 7ms (Views: 2.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-04-13 21:59: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 2ms (ActiveRecord: 0.3ms) +  (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", "2019-04-19 04:59:04.303982"], ["created_at", "2019-04-14 04:59:04.305545"], ["updated_at", "2019-04-14 04:59:04.305545"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 21:59:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 6ms (Views: 3.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/3/edit" for 127.0.0.1 at 2019-04-13 21:59:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (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-04-13 21:59: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-04-14 04:59:04.327586"], ["updated_at", "2019-04-14 04:59:04.327586"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +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.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.7ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 21:59:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:59:04.356017"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 10ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.8ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:59:31.184483', '2019-04-14 04:59:31.184483', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 04:59:31.184483', '2019-04-14 04:59:31.184483', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 21:59: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 199ms (Views: 192.7ms | ActiveRecord: 0.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-04-13 21:59: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.4ms) +  (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 +-------------------------------------------------------------- + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 21:59:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.7ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 04:59:31.459349"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 13ms (ActiveRecord: 1.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) 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-04-13 21:59: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-04-14 04:59:31.476138"], ["updated_at", "2019-04-14 04:59:31.476138"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 3ms (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.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 21:59:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-19 04:59:31.499569"], ["created_at", "2019-04-14 04:59:31.503384"], ["updated_at", "2019-04-14 04:59:31.503384"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 21:59:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.8ms) +Completed 200 OK in 13ms (Views: 10.2ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 21:59: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]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 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", "2019-04-19 04:59:31.532612"], ["created_at", "2019-04-14 04:59:31.534291"], ["updated_at", "2019-04-14 04:59:31.534291"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 21:59:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 21:59: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.1ms) +Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 05:11:27.694781', '2019-04-14 05:11:27.694781', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 05:11:27.694781', '2019-04-14 05:11:27.694781', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-13 22:11:27 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 05:11:27.746862"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 12ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 22:11:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.5ms) +Completed 200 OK in 219ms (Views: 215.7ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 22:11:27 -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.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-04-14 05:11:27.993841"], ["updated_at", "2019-04-14 05:11:27.993841"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 22:11:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 22:11:28 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.4ms) +  (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", "2019-04-19 05:11:28.041058"], ["created_at", "2019-04-14 05:11:28.042831"], ["updated_at", "2019-04-14 05:11:28.042831"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 22:11:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.9ms) +Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 22:11:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.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", "2019-04-19 05:11:28.066056"], ["created_at", "2019-04-14 05:11:28.068651"], ["updated_at", "2019-04-14 05:11:28.068651"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 22:11:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 22:11:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (1.0ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 05:12:42.767283', '2019-04-14 05:12:42.767283', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 05:12:42.767283', '2019-04-14 05:12:42.767283', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-13 22:12:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 05:12:42.820918"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 12ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) 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" +  (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-04-13 22:12:42 -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 206ms (Views: 203.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 22:12:43 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 22:12:43 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms) +  (0.5ms) 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", "2019-04-19 05:12:43.076750"], ["created_at", "2019-04-14 05:12:43.078901"], ["updated_at", "2019-04-14 05:12:43.078901"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 22:12:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 22:12:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.8ms) +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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-04-13 22:12: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.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-04-14 05:12:43.108233"], ["updated_at", "2019-04-14 05:12:43.108233"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) 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", "2019-04-19 05:12:43.124632"], ["created_at", "2019-04-14 05:12:43.126210"], ["updated_at", "2019-04-14 05:12:43.126210"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 22:12:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.0ms) +Completed 200 OK in 10ms (Views: 6.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/3/edit" for 127.0.0.1 at 2019-04-13 22:12:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 05:12:59.686270', '2019-04-14 05:12:59.686270', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 05:12:59.686270', '2019-04-14 05:12:59.686270', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (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", "2019-04-19 05:12:59.716096"], ["created_at", "2019-04-14 05:12:59.726351"], ["updated_at", "2019-04-14 05:12:59.726351"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 22:12:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 197ms (Views: 188.5ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 22:12:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 22:12: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-04-14 05:12:59.954243"], ["updated_at", "2019-04-14 05:12:59.954243"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (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.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 22:12:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 8ms (Views: 4.3ms | 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-04-13 22:12:59 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 22:12:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.5ms) +Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-13 22:13:00 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 05:13:00.025670"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 10ms (ActiveRecord: 1.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) 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" +  (0.4ms) 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 (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", "2019-04-19 05:13:00.039250"], ["created_at", "2019-04-14 05:13:00.042267"], ["updated_at", "2019-04-14 05:13:00.042267"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 22:13:00 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 22:13:00 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 05:13:26.388248', '2019-04-14 05:13:26.388248', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 05:13:26.388248', '2019-04-14 05:13:26.388248', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 05:13:26.409308"], ["created_at", "2019-04-14 05:13:26.423184"], ["updated_at", "2019-04-14 05:13:26.423184"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 22:13:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (7.1ms) +Completed 200 OK in 201ms (Views: 193.1ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 22:13:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 22:13:26 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 1.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-04-13 22:13:26 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 6ms (Views: 4.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-04-13 22:13:26 -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-04-14 05:13:26.682056"], ["updated_at", "2019-04-14 05:13:26.682056"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (ActiveRecord: 0.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.1ms) ROLLBACK +  (2.0ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 22:13:26 -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.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 22:13:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::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", "2019-04-19 05:13:26.722571"], ["created_at", "2019-04-14 05:13:26.724138"], ["updated_at", "2019-04-14 05:13:26.724138"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 22:13:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.2ms) +  (0.8ms) 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" +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 22:13:26 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.5ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 05:13:26.753122"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 9ms (ActiveRecord: 2.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.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"]] +  (209.3ms) DROP DATABASE IF EXISTS "TaskList_test" +  (434.1ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.2ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (5.9ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "priority_level" integer, "priority" integer) +  (2.4ms) 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 +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES (20190411153205) +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES +(20190410035722), +(20190409224945); + + +  (2.5ms) 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-04-14 06:03:29.748141"], ["updated_at", "2019-04-14 06:03:29.748141"]] +  (0.3ms) COMMIT + ActiveRecord::InternalMetadata Load (0.2ms) 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 +  (0.7ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:03:29.979891', '2019-04-14 06:03:29.979891', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:03:29.979891', '2019-04-14 06:03:29.979891', DEFAULT, DEFAULT) +  (39.9ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:03: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.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-04-14 06:03:30.072452"], ["updated_at", "2019-04-14 06:03:30.072452"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 17ms (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.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:03:30 -0700 +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 231ms (Views: 228.4ms | ActiveRecord: 0.0ms) +  (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-04-13 23:03:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 10ms (Views: 7.1ms | 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-04-13 23:03:30 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.3ms) +  (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", "2019-04-19 06:03:30.355464"], ["created_at", "2019-04-14 06:03:30.357151"], ["updated_at", "2019-04-14 06:03:30.357151"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 23:03:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.8ms) +Completed 200 OK in 13ms (Views: 6.8ms | 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/3/edit" for 127.0.0.1 at 2019-04-13 23:03:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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-04-13 23:03:30 -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]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (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", "2019-04-19 06:03:30.391913"], ["created_at", "2019-04-14 06:03:30.393483"], ["updated_at", "2019-04-14 06:03:30.393483"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 23:03:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.4ms) +  (0.2ms) 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.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:03:30 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:03:30.414709"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 9ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["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) SELECT COUNT(*) FROM "tasks" +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:03:59.568086', '2019-04-14 06:03:59.568086', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:03:59.568086', '2019-04-14 06:03:59.568086', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:03:59 -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.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-04-14 06:03:59.617072"], ["updated_at", "2019-04-14 06:03:59.617072"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 16ms (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::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", "2019-04-19 06:03:59.635255"], ["created_at", "2019-04-14 06:03:59.637357"], ["updated_at", "2019-04-14 06:03:59.637357"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 23:03:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 214ms (Views: 210.9ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:03:59 -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_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:03:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:03:59.873653"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) 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-04-13 23:03:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "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 4ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:03:59 -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 14ms (Views: 11.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 06:03:59.911040"], ["created_at", "2019-04-14 06:03:59.912706"], ["updated_at", "2019-04-14 06:03:59.912706"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 23:03:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.9ms) +Completed 200 OK in 9ms (Views: 5.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/3/edit" for 127.0.0.1 at 2019-04-13 23:03:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:03:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 23:03:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.2ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:05:35.620813', '2019-04-14 06:05:35.620813', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:05:35.620813', '2019-04-14 06:05:35.620813', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:05: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-04-14 06:05:35.668793"], ["updated_at", "2019-04-14 06:05:35.668793"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 18ms (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::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.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:05:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:05:35.693830"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["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) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:05:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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", "2019-04-19 06:05:35.718539"], ["created_at", "2019-04-14 06:05:35.721780"], ["updated_at", "2019-04-14 06:05:35.721780"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 23:05:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 195ms (Views: 190.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:05:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:05:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 23:05:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("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", "2019-04-19 06:05:35.953947"], ["created_at", "2019-04-14 06:05:35.956161"], ["updated_at", "2019-04-14 06:05:35.956161"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 23:05:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.9ms) +Completed 200 OK in 15ms (Views: 11.4ms | 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/3/edit" for 127.0.0.1 at 2019-04-13 23:05:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:05: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.7ms) +Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:06:40.671317', '2019-04-14 06:06:40.671317', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:06:40.671317', '2019-04-14 06:06:40.671317', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.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-04-13 23:06:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms) +  (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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:06:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:06:40.728983"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 7ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:06:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 191ms (Views: 187.0ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 23:06:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 4ms (Views: 3.3ms | 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 (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", "2019-04-19 06:06:40.943762"], ["created_at", "2019-04-14 06:06:40.946080"], ["updated_at", "2019-04-14 06:06:40.946080"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 23:06:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.5ms) +Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.7ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 23:06:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 06:06:40.975892"], ["created_at", "2019-04-14 06:06:40.979032"], ["updated_at", "2019-04-14 06:06:40.979032"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 23:06:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:06:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:06: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.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-04-14 06:06:41.006679"], ["updated_at", "2019-04-14 06:06:41.006679"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (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.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:06:41 -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.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.6ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:07:31.259884', '2019-04-14 06:07:31.259884', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:07:31.259884', '2019-04-14 06:07:31.259884', DEFAULT, DEFAULT) +  (1.0ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:07:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.5ms) +Completed 200 OK in 221ms (Views: 205.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 06:07:31.508165"], ["created_at", "2019-04-14 06:07:31.510683"], ["updated_at", "2019-04-14 06:07:31.510683"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 23:07:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 10ms (Views: 2.3ms | 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-04-13 23:07: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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:07: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.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-04-14 06:07:31.542816"], ["updated_at", "2019-04-14 06:07:31.542816"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (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.4ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 23:07:31 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:07: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.3ms) +  (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.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", "2019-04-19 06:07:31.583696"], ["created_at", "2019-04-14 06:07:31.586317"], ["updated_at", "2019-04-14 06:07:31.586317"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 23:07:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 23:07:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) 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.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:07:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:07:31.615588"], ["id", 298486374]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/298486374 +Completed 302 Found in 9ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:07:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "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.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:08:15.744802', '2019-04-14 06:08:15.744802', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:08:15.744802', '2019-04-14 06:08:15.744802', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-13 23:08:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:08:15.791720"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 12ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-13 23:08:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:08:15 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 214ms (Views: 210.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-04-13 23: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" ORDER BY "tasks"."completion_date" DESC + 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.4ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23: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 (5.5ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.7ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:08:16 -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.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-04-14 06:08:16.055681"], ["updated_at", "2019-04-14 06:08:16.055681"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 5ms (ActiveRecord: 1.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.1ms) ROLLBACK +  (0.3ms) 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", "2019-04-19 06:08:16.074089"], ["created_at", "2019-04-14 06:08:16.076463"], ["updated_at", "2019-04-14 06:08:16.076463"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 23:08:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:08:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::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", "2019-04-19 06:08:16.096379"], ["created_at", "2019-04-14 06:08:16.098126"], ["updated_at", "2019-04-14 06:08:16.098126"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 23:08:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.7ms) +Completed 200 OK in 8ms (Views: 4.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/3/edit" for 127.0.0.1 at 2019-04-13 23:08:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:08:47.396375', '2019-04-14 06:08:47.396375', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:08:47.396375', '2019-04-14 06:08:47.396375', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:08:47 -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 9ms (ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 06:08:47.437834"], ["created_at", "2019-04-14 06:08:47.448199"], ["updated_at", "2019-04-14 06:08:47.448199"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 23:08:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.9ms) +Completed 200 OK in 199ms (Views: 194.0ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:08:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.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-04-13 23:08:47 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (0.2ms) 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.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:08:47 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:08:47.687386"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-13 23:08:47 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.3ms) +  (0.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", "2019-04-19 06:08:47.707384"], ["created_at", "2019-04-14 06:08:47.709153"], ["updated_at", "2019-04-14 06:08:47.709153"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 23:08:47 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.3ms) +Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 23:08:47 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (1.0ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:08:47 -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-04-14 06:08:47.741255"], ["updated_at", "2019-04-14 06:08:47.741255"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (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.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:08:47 -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 6ms (Views: 4.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:12:28.418800', '2019-04-14 06:12:28.418800', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:12:28.418800', '2019-04-14 06:12:28.418800', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:12:28 -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 198ms (Views: 178.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", "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", "2019-04-19 06:12:28.647820"], ["created_at", "2019-04-14 06:12:28.650134"], ["updated_at", "2019-04-14 06:12:28.650134"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 23:12:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 8ms (Views: 2.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:12: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.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (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", "2019-04-19 06:12:28.670727"], ["created_at", "2019-04-14 06:12:28.674467"], ["updated_at", "2019-04-14 06:12:28.674467"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 23:12:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 23:12:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:12: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.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-04-14 06:12:28.706901"], ["updated_at", "2019-04-14 06:12:28.706901"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (0.8ms) 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.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:12:28 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (1.0ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:12:28.733965"], ["id", 298486374]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 10ms (ActiveRecord: 1.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.4ms) 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-04-13 23:12:28 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:12:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 10ms (Views: 5.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-04-13 23:12:28 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:13:15.482068', '2019-04-14 06:13:15.482068', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:13:15.482068', '2019-04-14 06:13:15.482068', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::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", "2019-04-19 06:13:15.505509"], ["created_at", "2019-04-14 06:13:15.516683"], ["updated_at", "2019-04-14 06:13:15.516683"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 23:13:15 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (7.7ms) +Completed 200 OK in 190ms (Views: 180.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/3/edit" for 127.0.0.1 at 2019-04-13 23:13:15 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["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.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:13:15 -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-04-14 06:13:15.732129"], ["updated_at", "2019-04-14 06:13:15.732129"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +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::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", "2019-04-19 06:13:15.745707"], ["created_at", "2019-04-14 06:13:15.747901"], ["updated_at", "2019-04-14 06:13:15.747901"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 23:13:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +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-04-13 23:13:15 -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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:13:15 -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_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-13 23:13:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:13:15.777821"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["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-04-13 23:13:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 23:13:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:13:15 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.6ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.4ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:14:56.936582', '2019-04-14 06:14:56.936582', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:14:56.936582', '2019-04-14 06:14:56.936582', DEFAULT, DEFAULT) +  (40.7ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-13 23:14:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:14:57.035534"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 13ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-13 23:14:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:14:57 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (15.3ms) +Completed 200 OK in 198ms (Views: 195.6ms | 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-04-13 23:14:57 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:14:57 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("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", "2019-04-19 06:14:57.283340"], ["created_at", "2019-04-14 06:14:57.286143"], ["updated_at", "2019-04-14 06:14:57.286143"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 23:14:57 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.0ms) +Completed 200 OK in 8ms (Views: 5.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/3/edit" for 127.0.0.1 at 2019-04-13 23:14:57 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (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-04-13 23:14:57 -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.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-04-14 06:14:57.312697"], ["updated_at", "2019-04-14 06:14:57.312697"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (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-04-13 23:14:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::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", "2019-04-19 06:14:57.336754"], ["created_at", "2019-04-14 06:14:57.339517"], ["updated_at", "2019-04-14 06:14:57.339517"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 23:14:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.3ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:19:11.271393', '2019-04-14 06:19:11.271393', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:19:11.271393', '2019-04-14 06:19:11.271393', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.5ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 06:19:11.296241"], ["created_at", "2019-04-14 06:19:11.307437"], ["updated_at", "2019-04-14 06:19:11.307437"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 23:19:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 210ms (Views: 201.8ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:19:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:19:11 -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 13ms (Views: 11.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 23:19:11 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["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", "2019-04-19 06:19:11.559206"], ["created_at", "2019-04-14 06:19:11.560795"], ["updated_at", "2019-04-14 06:19:11.560795"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 23:19:11 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.3ms) +Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:19: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.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-04-14 06:19:11.580278"], ["updated_at", "2019-04-14 06:19:11.580278"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (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.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:19:11 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.7ms) ROLLBACK +  (0.5ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.7ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:19:11 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"298486374"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +Completed 400 Bad Request in 3ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:19:11 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:19:11.632181"], ["id", 298486374]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 10ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 23:19:11 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 9ms (Views: 5.3ms | 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-04-13 23:19:11 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:19:43.279536', '2019-04-14 06:19:43.279536', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:19:43.279536', '2019-04-14 06:19:43.279536', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:19:43 -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 7ms (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.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", "2019-04-19 06:19:43.318606"], ["created_at", "2019-04-14 06:19:43.329193"], ["updated_at", "2019-04-14 06:19:43.329193"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 23:19:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 198ms (Views: 194.6ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23:19: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.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-04-14 06:19:43.540719"], ["updated_at", "2019-04-14 06:19:43.540719"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 6ms (ActiveRecord: 1.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.1ms) ROLLBACK +  (0.5ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23:19:43 -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 10ms (Views: 8.6ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:19:43 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:19:43.583234"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-13 23:19:43 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:19:43 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +Completed 400 Bad Request in 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-04-13 23:19:43 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 23:19:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("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", "2019-04-19 06:19:43.630662"], ["created_at", "2019-04-14 06:19:43.632990"], ["updated_at", "2019-04-14 06:19:43.632990"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 23:19:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.8ms) +Completed 200 OK in 8ms (Views: 5.1ms | 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/3/edit" for 127.0.0.1 at 2019-04-13 23:19:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.7ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:57:35.047576', '2019-04-14 06:57:35.047576', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 06:57:35.047576', '2019-04-14 06:57:35.047576', DEFAULT, DEFAULT) +  (0.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (28.1ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-13 23:57:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 06:57:35.170725"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 14ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-13 23:57:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 23:57:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (54.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (58.1ms) +Completed 200 OK in 234ms (Views: 176.3ms | ActiveRecord: 54.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-04-13 23:57:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 06:57:35.439716"], ["updated_at", "2019-04-14 06:57:35.439716"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190963" for 127.0.0.1 at 2019-04-13 23:57:35 -0700 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: 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 +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 23: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 (9.5ms) +Completed 200 OK in 14ms (Views: 10.7ms | 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.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", "2019-04-19 06:57:35.505148"], ["created_at", "2019-04-14 06:57:35.507048"], ["updated_at", "2019-04-14 06:57:35.507048"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 23:57:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 23:57:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.6ms) 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", "2019-04-19 06:57:35.531424"], ["created_at", "2019-04-14 06:57:35.535359"], ["updated_at", "2019-04-14 06:57:35.535359"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-13 23:57:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.5ms) +Completed 200 OK in 9ms (Views: 6.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 +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-13 23:57:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["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.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 23: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.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-04-14 06:57:35.564905"], ["updated_at", "2019-04-14 06:57:35.564905"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +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.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:02:51.873460', '2019-04-14 07:02:51.873460', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:02:51.873460', '2019-04-14 07:02:51.873460', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) 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.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-14 00:02:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:02:51.922724"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 12ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-14 00:02:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:02: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 204ms (Views: 201.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-04-14 00:02:52 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 00:02:52 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (9.0ms) +Completed 200 OK in 13ms (Views: 10.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 00:02:52 -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-04-14 07:02:52.184816"], ["updated_at", "2019-04-14 07:02:52.184816"]] +  (1.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 7ms (ActiveRecord: 1.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.2ms) ROLLBACK +  (0.6ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:02:52.204973"], ["updated_at", "2019-04-14 07:02:52.204973"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-14 00:02:52 -0700 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: 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.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", "2019-04-19 07:02:52.251174"], ["created_at", "2019-04-14 07:02:52.253744"], ["updated_at", "2019-04-14 07:02:52.253744"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 00:02:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 6ms (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-04-14 00:02:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-14 00:02:52 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (1.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", "2019-04-19 07:02:52.283941"], ["created_at", "2019-04-14 07:02:52.289035"], ["updated_at", "2019-04-14 07:02:52.289035"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-14 00:02:52 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.7ms) +Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.2ms) +  (1.5ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:03:26.045264', '2019-04-14 07:03:26.045264', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:03:26.045264', '2019-04-14 07:03:26.045264', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-19 07:03:26.066878"], ["created_at", "2019-04-14 07:03:26.096206"], ["updated_at", "2019-04-14 07:03:26.096206"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 00:03:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 176ms (Views: 167.0ms | 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-04-14 00:03: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.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 00:03: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:03:26 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-14 00:03:26 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:03:26.318587"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-14 00:03:26 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 00:03:26 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.1ms) +Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.0ms) +  (44.9ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:03:26.403944"], ["updated_at", "2019-04-14 07:03:26.403944"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-14 00:03:26 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 00:03:26 -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-04-14 07:03:26.429537"], ["updated_at", "2019-04-14 07:03:26.429537"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (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.6ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (1.6ms) 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", "2019-04-19 07:03:26.449339"], ["created_at", "2019-04-14 07:03:26.454192"], ["updated_at", "2019-04-14 07:03:26.454192"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-14 00:03:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.8ms) +Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-14 00:03:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (1.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:05:44.164801', '2019-04-14 07:05:44.164801', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:05:44.164801', '2019-04-14 07:05:44.164801', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.2ms) BEGIN +  (1.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:05:44 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (10.9ms) +Completed 200 OK in 184ms (Views: 177.8ms | ActiveRecord: 0.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-04-14 00:05: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms) +  (0.9ms) 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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-14 00:05:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:05:44.401169"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-14 00:05:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 00:05:44 -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 13ms (Views: 11.1ms | 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 (1.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", "2019-04-19 07:05:44.439532"], ["created_at", "2019-04-14 07:05:44.441427"], ["updated_at", "2019-04-14 07:05:44.441427"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 00:05:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 6ms (Views: 3.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/3/edit" for 127.0.0.1 at 2019-04-14 00:05:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:05:44.469242"], ["updated_at", "2019-04-14 07:05:44.469242"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-14 00:05:44 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 00:05: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.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", "2019-04-19 07:05:44.488678"], ["created_at", "2019-04-14 07:05:44.490818"], ["updated_at", "2019-04-14 07:05:44.490818"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 00:05:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 24ms (Views: 19.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-04-14 00:05:44 -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-04-14 07:05:44.527437"], ["updated_at", "2019-04-14 07:05:44.527437"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (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.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.4ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:06:07.973545', '2019-04-14 07:06:07.973545', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:06:07.973545', '2019-04-14 07:06:07.973545', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_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", "2019-04-19 07:06:07.992415"], ["created_at", "2019-04-14 07:06:08.002482"], ["updated_at", "2019-04-14 07:06:08.002482"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 00:06:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.0ms) +Completed 200 OK in 197ms (Views: 188.1ms | 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/3/edit" for 127.0.0.1 at 2019-04-14 00:06:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.9ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 00:06:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"-1"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-14 00:06:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:06:08.243790"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 00:06:08 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:06:08 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 00:06:08 -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-04-14 07:06:08.281210"], ["updated_at", "2019-04-14 07:06:08.281210"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (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::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:06:08.301122"], ["updated_at", "2019-04-14 07:06:08.301122"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-04-14 00:06:08 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190965"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE (980190965) LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 3ms (ActiveRecord: 1.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.4ms) 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", "2019-04-19 07:06:08.313927"], ["created_at", "2019-04-14 07:06:08.315567"], ["updated_at", "2019-04-14 07:06:08.315567"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 00:06:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.3ms) +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 00:06:08 -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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 00:06:08 -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 7ms (Views: 4.7ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:06:44.915451', '2019-04-14 07:06:44.915451', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:06:44.915451', '2019-04-14 07:06:44.915451', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.4ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-14 00:06:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:06:44.966261"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 12ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) 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-04-14 00:06:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 00:06:44 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (10.5ms) +Completed 200 OK in 178ms (Views: 176.0ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 07:06:45.169662"], ["created_at", "2019-04-14 07:06:45.172517"], ["updated_at", "2019-04-14 07:06:45.172517"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 00:06:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +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/3/edit" for 127.0.0.1 at 2019-04-14 00:06:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.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", "2019-04-19 07:06:45.192671"], ["created_at", "2019-04-14 07:06:45.195172"], ["updated_at", "2019-04-14 07:06:45.195172"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 00:06:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 7ms (Views: 2.2ms | 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-04-14 00:06:45 -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.4ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:06:45.219559"], ["updated_at", "2019-04-14 07:06:45.219559"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-04-14 00:06:45 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE (980190965) LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.6ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: 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 +-------------------------------------------------------- +  (1.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 00:06:45 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.4ms) 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-04-14 07:06:45.237309"], ["updated_at", "2019-04-14 07:06:45.237309"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 4ms (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.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:06:45 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 00:06: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (1.2ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:08:49.168618', '2019-04-14 07:08:49.168618', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:08:49.168618', '2019-04-14 07:08:49.168618', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-14 00:08:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 7ms (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.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", "2019-04-19 07:08:49.207790"], ["created_at", "2019-04-14 07:08:49.218440"], ["updated_at", "2019-04-14 07:08:49.218440"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 00:08:49 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.4ms) +Completed 200 OK in 171ms (Views: 167.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:08:49.400558"], ["updated_at", "2019-04-14 07:08:49.400558"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-14 00:08:49 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} + Task Load (2.2ms) SELECT "tasks".* FROM "tasks" WHERE (980190964) LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 4ms (ActiveRecord: 2.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (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-04-14 00:08:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.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", "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", "2019-04-19 07:08:49.421785"], ["created_at", "2019-04-14 07:08:49.423407"], ["updated_at", "2019-04-14 07:08:49.423407"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 00:08:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 00:08:49 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (1.4ms) 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-04-14 07:08:49.445797"], ["updated_at", "2019-04-14 07:08:49.445797"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 5ms (ActiveRecord: 1.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.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-14 00:08:49 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:08:49.471601"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.9ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) 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-04-14 00:08:49 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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-04-14 00:08:49 -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 8ms (Views: 5.6ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:08:49 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 00:08:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.3ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:09:46.857136', '2019-04-14 07:09:46.857136', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:09:46.857136', '2019-04-14 07:09:46.857136', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 00:09:46 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.1ms) +Completed 200 OK in 160ms (Views: 154.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-14 00:09:47 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:09:47.070189"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-14 00:09:47 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:09:47 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 00:09: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 00:09:47 -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-04-14 07:09:47.112566"], ["updated_at", "2019-04-14 07:09:47.112566"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (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 a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:09:47.129494"], ["updated_at", "2019-04-14 07:09:47.129494"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-14 00:09:47 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE (980190964) LIMIT $1 [["LIMIT", 1]] +Completed 500 Internal Server Error in 3ms (ActiveRecord: 1.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-14 00:09:47 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) 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", "2019-04-19 07:09:47.147446"], ["created_at", "2019-04-14 07:09:47.149400"], ["updated_at", "2019-04-14 07:09:47.149400"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 00:09:47 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.0ms) +Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 00:09:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) 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", "2019-04-19 07:09:47.173793"], ["created_at", "2019-04-14 07:09:47.176392"], ["updated_at", "2019-04-14 07:09:47.176392"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 00:09:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (41.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:49:14.275099', '2019-04-14 07:49:14.275099', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:49:14.275099', '2019-04-14 07:49:14.275099', DEFAULT, DEFAULT) +  (39.6ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:49:14.345930"], ["updated_at", "2019-04-14 07:49:14.345930"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190963" for 127.0.0.1 at 2019-04-14 00:49:14 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +No template found for TasksController#destroy, rendering head :no_content +Completed 204 No Content in 102ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 00:49: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.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-04-14 07:49:14.472785"], ["updated_at", "2019-04-14 07:49:14.472785"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 00:49:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 177ms (Views: 173.0ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:49:14 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms) +  (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.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", "2019-04-19 07:49:14.681499"], ["created_at", "2019-04-14 07:49:14.685366"], ["updated_at", "2019-04-14 07:49:14.685366"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 00:49:14 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (13.8ms) +Completed 200 OK in 18ms (Views: 15.5ms | 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/3/edit" for 127.0.0.1 at 2019-04-14 00:49:14 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 00:49:14 -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 7ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.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", "2019-04-19 07:49:14.733348"], ["created_at", "2019-04-14 07:49:14.735973"], ["updated_at", "2019-04-14 07:49:14.735973"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 00:49:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 7ms (Views: 4.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-04-14 00:49:14 -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]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (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-04-14 00:49:14 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "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.4ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (1.1ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-14 00:49:14 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:49:14.778155"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:53:03.061673', '2019-04-14 07:53:03.061673', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:53:03.061673', '2019-04-14 07:53:03.061673', DEFAULT, DEFAULT) +  (1.6ms) COMMIT +  (0.8ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.6ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 00:53:03 -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 174ms (Views: 160.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-14 00:53:03 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:53:03.283332"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["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) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 00:53:03 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:53:03.299623"], ["updated_at", "2019-04-14 07:53:03.299623"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190963" for 127.0.0.1 at 2019-04-14 00:53:03 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-14 00:53:03 -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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-19 07:53:03.322635"], ["created_at", "2019-04-14 07:53:03.325417"], ["updated_at", "2019-04-14 07:53:03.325417"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 00:53:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.5ms) +Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.3ms) +  (13.8ms) ROLLBACK +  (1.5ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-14 00:53:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:53: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 00:53:03 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (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", "2019-04-19 07:53:03.389333"], ["created_at", "2019-04-14 07:53:03.392635"], ["updated_at", "2019-04-14 07:53:03.392635"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 00:53:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.2ms) +  (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-04-14 00:53: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.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.7ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 00:53:03 -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-04-14 07:53:03.417559"], ["updated_at", "2019-04-14 07:53:03.417559"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 6ms (ActiveRecord: 1.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.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:53:16.571162', '2019-04-14 07:53:16.571162', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-14 07:53:16.571162', '2019-04-14 07:53:16.571162', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (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-04-14 00:53:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 8ms (ActiveRecord: 0.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-14 00:53:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-14 07:53:16.652759"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 00:53: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-04-14 07:53:16.667390"], ["updated_at", "2019-04-14 07:53:16.667390"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 00:53:16 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 144ms (Views: 139.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-04-14 00:53:16 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-14 00:53:16 -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 a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-14 07:53:16.844471"], ["updated_at", "2019-04-14 07:53:16.844471"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-14 00:53:16 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.8ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-19 07:53:16.856984"], ["created_at", "2019-04-14 07:53:16.859779"], ["updated_at", "2019-04-14 07:53:16.859779"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 00:53:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.2ms) +Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.2ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-14 00:53:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["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.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", "2019-04-19 07:53:16.887558"], ["created_at", "2019-04-14 07:53:16.889921"], ["updated_at", "2019-04-14 07:53:16.889921"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 00:53:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 00:53: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 2ms (ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 00:53:16 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (41.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (44.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:33:54.338265', '2019-04-15 07:33:54.338265', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:33:54.338265', '2019-04-15 07:33:54.338265', DEFAULT, DEFAULT) +  (0.5ms) COMMIT +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (24.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", "2019-04-20 07:33:54.425623"], ["created_at", "2019-04-15 07:33:54.453346"], ["updated_at", "2019-04-15 07:33:54.453346"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-15 00:33:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (25.6ms) +Completed 200 OK in 367ms (Views: 355.0ms | ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 00:33:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 00:33:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 8ms (Views: 4.7ms | 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-04-15 00:33:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 6ms (Views: 4.5ms | 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.6ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:33:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 00:33:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.9ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 07:33:54.901718"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (13.0ms) ROLLBACK +  (7.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 00:33: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.9ms) +Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 00:33: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.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-04-15 07:33:54.952114"], ["updated_at", "2019-04-15 07:33:54.952114"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (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.2ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:33:54 -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.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:33:54.981245"], ["updated_at", "2019-04-15 07:33:54.981245"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-04-15 00:33:54 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (40.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 43ms (ActiveRecord: 40.9ms) +  (0.7ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-20 07:33:55.047199"], ["created_at", "2019-04-15 07:33:55.049622"], ["updated_at", "2019-04-15 07:33:55.049622"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-15 00:33:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:33: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.2ms) ROLLBACK +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:34:30.915464', '2019-04-15 07:34:30.915464', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:34:30.915464', '2019-04-15 07:34:30.915464', DEFAULT, DEFAULT) +  (40.8ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 00:34: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.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-04-15 07:34:31.002587"], ["updated_at", "2019-04-15 07:34:31.002587"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 15ms (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.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 00:34:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (15.1ms) +Completed 200 OK in 242ms (Views: 238.5ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190962/mark" for 127.0.0.1 at 2019-04-15 00:34:31 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-15T00:34:31-07:00"}, "id"=>"980190962"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 07:34:31.295210"], ["id", 980190962]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190962 +Completed 302 Found in 9ms (ActiveRecord: 1.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 00:34:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (25.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (1.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 07:34:31.335921"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 37ms (ActiveRecord: 27.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) 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-04-15 00:34:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-20 07:34:31.360069"], ["created_at", "2019-04-15 07:34:31.362923"], ["updated_at", "2019-04-15 07:34:31.362923"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-15 00:34:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.1ms) +Completed 200 OK in 11ms (Views: 4.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 00:34:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:34:31.391557"], ["updated_at", "2019-04-15 07:34:31.391557"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-04-15 00:34:31 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Destroy (0.9ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 7ms (ActiveRecord: 2.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:34: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.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (1.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("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", "2019-04-20 07:34:31.421729"], ["created_at", "2019-04-15 07:34:31.424153"], ["updated_at", "2019-04-15 07:34:31.424153"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-15 00:34:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 11ms (Views: 3.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:34: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::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 00:34: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 00:34:31 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:39:53.996352', '2019-04-15 07:39:53.996352', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:39:53.996352', '2019-04-15 07:39:53.996352', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 00:39:54 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (11.1ms) +Completed 200 OK in 216ms (Views: 209.3ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 00:39:54 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:39:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 4ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 00:39:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 07:39:54.288689"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190962/mark" for 127.0.0.1 at 2019-04-15 00:39:54 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-15T00:39:54-07:00"}, "id"=>"980190962"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 07:39:54.310776"], ["id", 980190962]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190962 +Completed 302 Found in 6ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (1.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", "2019-04-20 07:39:54.340675"], ["created_at", "2019-04-15 07:39:54.343083"], ["updated_at", "2019-04-15 07:39:54.343083"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-15 00:39:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 9ms (Views: 5.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-04-15 00:39: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.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) 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", "2019-04-20 07:39:54.370021"], ["created_at", "2019-04-15 07:39:54.371677"], ["updated_at", "2019-04-15 07:39:54.371677"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-15 00:39:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.5ms) +Completed 200 OK in 15ms (Views: 12.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/3/edit" for 127.0.0.1 at 2019-04-15 00:39:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 00:39: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.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-04-15 07:39:54.405448"], ["updated_at", "2019-04-15 07:39:54.405448"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.4ms) 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::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:39:54.425714"], ["updated_at", "2019-04-15 07:39:54.425714"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190966" for 127.0.0.1 at 2019-04-15 00:39:54 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (5.6ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:39:54 -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.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-04-15 00:39: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.3ms) +Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:40:34.763030', '2019-04-15 07:40:34.763030', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:40:34.763030', '2019-04-15 07:40:34.763030', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 07:40:34.801052"], ["created_at", "2019-04-15 07:40:34.803557"], ["updated_at", "2019-04-15 07:40:34.803557"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-15 00:40:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 216ms (Views: 204.2ms | 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-04-15 00:40: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 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 00:40:35 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 00:40:35 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190962/mark" for 127.0.0.1 at 2019-04-15 00:40:35 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-15T00:40:35-07:00"}, "id"=>"980190962"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (0.4ms) SAVEPOINT active_record_1 + Task Update (0.8ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 07:40:35.094998"], ["id", 980190962]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190962 +Completed 302 Found in 11ms (ActiveRecord: 1.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190962], ["LIMIT", 1]] +  (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.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", "2019-04-20 07:40:35.129238"], ["created_at", "2019-04-15 07:40:35.131206"], ["updated_at", "2019-04-15 07:40:35.131206"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-15 00:40:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (11.7ms) +Completed 200 OK in 16ms (Views: 13.5ms | 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/3/edit" for 127.0.0.1 at 2019-04-15 00:40:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 00:40:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 07:40:35.171404"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) 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-04-15 00:40:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.2ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:40:35.194524"], ["updated_at", "2019-04-15 07:40:35.194524"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-04-15 00:40:35 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (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" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:40:35 -0700 +Processing by TasksController#destroy 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.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 00:40: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-04-15 07:40:35.226336"], ["updated_at", "2019-04-15 07:40:35.226336"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +  (0.4ms) 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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 00:40:35 -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 7ms (Views: 3.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:41:17.561064', '2019-04-15 07:41:17.561064', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:41:17.561064', '2019-04-15 07:41:17.561064', DEFAULT, DEFAULT) +  (1.0ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (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-04-15 00:41:17 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 8ms (ActiveRecord: 0.5ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) 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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 00:41:17 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 07:41:17.621785"], ["id", 298486374]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.2ms) +  (0.7ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:41:17.634735"], ["updated_at", "2019-04-15 07:41:17.634735"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190963/mark" for 127.0.0.1 at 2019-04-15 00:41:17 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-15T00:41:17-07:00"}, "id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 07:41:17.642473"], ["updated_at", "2019-04-15 07:41:17.644881"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 9ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:41:17.670767"], ["updated_at", "2019-04-15 07:41:17.670767"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:41:17.676348"], ["updated_at", "2019-04-15 07:41:17.676348"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:41:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.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", "2019-04-20 07:41:17.689655"], ["created_at", "2019-04-15 07:41:17.691557"], ["updated_at", "2019-04-15 07:41:17.691557"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-15 00:41:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 221ms (Views: 217.9ms | ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 00:41:17 -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-04-15 07:41:17.930341"], ["updated_at", "2019-04-15 07:41:17.930341"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (1.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.6ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:41:17.951247"], ["updated_at", "2019-04-15 07:41:17.951247"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190968" for 127.0.0.1 at 2019-04-15 00:41:17 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:41:17 -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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 00:41: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 9ms (Views: 5.7ms | 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-04-15 00:41:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 00:41:17 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (8.5ms) +Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("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", "2019-04-20 07:41:18.007392"], ["created_at", "2019-04-15 07:41:18.009105"], ["updated_at", "2019-04-15 07:41:18.009105"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 00:41:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (0.6ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 00:41:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +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 +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:42:35.675100', '2019-04-15 07:42:35.675100', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:42:35.675100', '2019-04-15 07:42:35.675100', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-20 07:42:35.702425"], ["created_at", "2019-04-15 07:42:35.713837"], ["updated_at", "2019-04-15 07:42:35.713837"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-15 00:42:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.0ms) +Completed 200 OK in 202ms (Views: 193.4ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 00:42:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:42:35 -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.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (1.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", "2019-04-20 07:42:35.952210"], ["created_at", "2019-04-15 07:42:35.954483"], ["updated_at", "2019-04-15 07:42:35.954483"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-15 00:42:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.3ms) +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:42:35.973285"], ["updated_at", "2019-04-15 07:42:35.973285"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-04-15 00:42:35 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 1.0ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:42:35 -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::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 00:42:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.5ms) 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-04-15 07:42:36.000573"], ["updated_at", "2019-04-15 07:42:36.000573"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) +  (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::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:42:36.011092"], ["updated_at", "2019-04-15 07:42:36.011092"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (2.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (1.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190967/mark" for 127.0.0.1 at 2019-04-15 00:42:36 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 07:42:36.025044"], ["updated_at", "2019-04-15 07:42:36.026910"], ["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:42:36.053278"], ["updated_at", "2019-04-15 07:42:36.053278"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:42:36.058435"], ["updated_at", "2019-04-15 07:42:36.058435"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 00:42:36 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.6ms) +Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 00:42:36 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 07:42:36.086443"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-15 00:42:36 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"-1"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/ +Completed 302 Found in 2ms (ActiveRecord: 1.1ms) +  (1.3ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 00:42:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (9.1ms) +Completed 200 OK in 13ms (Views: 7.1ms | ActiveRecord: 4.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-04-15 00:42:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.7ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.4ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:43:27.930174', '2019-04-15 07:43:27.930174', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:43:27.930174', '2019-04-15 07:43:27.930174', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 00:43:27 -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-04-15 07:43:27.977587"], ["updated_at", "2019-04-15 07:43:27.977587"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 16ms (ActiveRecord: 0.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.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 00:43:27 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 07:43:27.997381"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (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-04-15 00:43:28 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) 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", "2019-04-20 07:43:28.015580"], ["created_at", "2019-04-15 07:43:28.017378"], ["updated_at", "2019-04-15 07:43:28.017378"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-15 00:43:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 189ms (Views: 185.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-04-15 00:43:28 -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::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:43:28.225453"], ["updated_at", "2019-04-15 07:43:28.225453"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-04-15 00:43:28 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 4ms (ActiveRecord: 1.3ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:43:28 -0700 +Processing by TasksController#destroy 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) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 00:43:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 00:43:28 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) 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.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", "2019-04-20 07:43:28.280831"], ["created_at", "2019-04-15 07:43:28.283982"], ["updated_at", "2019-04-15 07:43:28.283982"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-15 00:43:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.0ms) +Completed 200 OK in 17ms (Views: 13.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 00:43:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:43:28.316228"], ["updated_at", "2019-04-15 07:43:28.316228"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:43:28.320483"], ["updated_at", "2019-04-15 07:43:28.320483"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:43:28.327415"], ["updated_at", "2019-04-15 07:43:28.327415"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190969/mark" for 127.0.0.1 at 2019-04-15 00:43:28 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 07:43:28.353608"], ["updated_at", "2019-04-15 07:43:28.355672"], ["id", 980190969]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 7ms (ActiveRecord: 1.0ms) +  (0.4ms) 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-04-15 00:43:28 -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.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.8ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:43:57.183535', '2019-04-15 07:43:57.183535', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 07:43:57.183535', '2019-04-15 07:43:57.183535', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-20 07:43:57.208296"], ["created_at", "2019-04-15 07:43:57.222456"], ["updated_at", "2019-04-15 07:43:57.222456"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-15 00:43:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 194ms (Views: 185.3ms | 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-04-15 00:43:57 -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_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:43:57.438675"], ["updated_at", "2019-04-15 07:43:57.438675"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-15 00:43:57 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 4ms (ActiveRecord: 1.3ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 00:43:57 -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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) 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", "2019-04-20 07:43:57.467369"], ["created_at", "2019-04-15 07:43:57.468918"], ["updated_at", "2019-04-15 07:43:57.468918"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-15 00:43:57 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (7.2ms) +Completed 200 OK in 11ms (Views: 8.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/3/edit" for 127.0.0.1 at 2019-04-15 00:43:57 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:43:57.490551"], ["updated_at", "2019-04-15 07:43:57.490551"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 00:43:57 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 07:43:57.498293"], ["updated_at", "2019-04-15 07:43:57.500313"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:43:57.521199"], ["updated_at", "2019-04-15 07:43:57.521199"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 07:43:57.529820"], ["updated_at", "2019-04-15 07:43:57.529820"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (1.0ms) 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-04-15 00:43:57 -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 11ms (Views: 7.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 00:43:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 07:43:57.566307"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) 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-04-15 00:43:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 00:43: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-04-15 07:43:57.588007"], ["updated_at", "2019-04-15 07:43:57.588007"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 00:43:57 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 00:43: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:15:38.315829', '2019-04-15 15:15:38.315829', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:15:38.315829', '2019-04-15 15:15:38.315829', DEFAULT, DEFAULT) +  (10.8ms) COMMIT +  (0.3ms) BEGIN +  (0.7ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_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", "2019-04-20 15:15:38.373967"], ["created_at", "2019-04-15 15:15:38.387623"], ["updated_at", "2019-04-15 15:15:38.387623"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:15:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.6ms) +Completed 200 OK in 248ms (Views: 238.3ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:15:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 15:15:38.661008"], ["created_at", "2019-04-15 15:15:38.664908"], ["updated_at", "2019-04-15 15:15:38.664908"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-15 08:15:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (13.0ms) +Completed 200 OK in 20ms (Views: 15.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/3/edit" for 127.0.0.1 at 2019-04-15 08:15:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:15:38 -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.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:15:38 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 15ms (Views: 8.8ms | ActiveRecord: 1.6ms) +  (2.5ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:15:38 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:15:38 -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-04-15 15:15:38.758479"], ["updated_at", "2019-04-15 15:15:38.758479"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.9ms) 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.8ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (1.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:15:38.774112"], ["updated_at", "2019-04-15 15:15:38.774112"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190966" for 127.0.0.1 at 2019-04-15 08:15:38 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 5ms (ActiveRecord: 1.5ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.7ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (1.6ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:15:38 -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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:15:38.804271"], ["updated_at", "2019-04-15 15:15:38.804271"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.9ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:15:38.810308"], ["updated_at", "2019-04-15 15:15:38.810308"]] +  (1.0ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:15:38.820103"], ["updated_at", "2019-04-15 15:15:38.820103"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:15:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (10.6ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:15:38.835762"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 19ms (ActiveRecord: 11.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) 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-04-15 08:15:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"-1"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/ +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:15:56.724266', '2019-04-15 15:15:56.724266', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:15:56.724266', '2019-04-15 15:15:56.724266', DEFAULT, DEFAULT) +  (40.8ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::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", "2019-04-20 15:15:56.788415"], ["created_at", "2019-04-15 15:15:56.807097"], ["updated_at", "2019-04-15 15:15:56.807097"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:15:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 218ms (Views: 208.1ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:15:57 -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::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:15:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:15:57.061451"], ["id", 298486374]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:15:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/ +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:15:57.084325"], ["updated_at", "2019-04-15 15:15:57.084325"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:15:57.092348"], ["updated_at", "2019-04-15 15:15:57.092348"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:15:57.097510"], ["updated_at", "2019-04-15 15:15:57.097510"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:15:57 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (1.0ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:15:57.105186"], ["updated_at", "2019-04-15 15:15:57.107060"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 9ms (ActiveRecord: 1.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (2.7ms) ROLLBACK +  (0.6ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.5ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:15:57 -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 26ms (Views: 23.5ms | 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-04-15 08:15:57 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:15:57 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:15:57 -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-04-15 15:15:57.220631"], ["updated_at", "2019-04-15 15:15:57.220631"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (19.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::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", "2019-04-20 15:15:57.249131"], ["created_at", "2019-04-15 15:15:57.250863"], ["updated_at", "2019-04-15 15:15:57.250863"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-15 08:15:57 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.1ms) +Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:15:57 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:15:57.277350"], ["updated_at", "2019-04-15 15:15:57.277350"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:15:57 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:15:57 -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 2ms (ActiveRecord: 0.2ms) +  (0.3ms) 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 +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:17:07.635961', '2019-04-15 15:17:07.635961', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:17:07.635961', '2019-04-15 15:17:07.635961', DEFAULT, DEFAULT) +  (22.6ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:17:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 8ms (ActiveRecord: 0.5ms) +  (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", "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", "2019-04-20 15:17:07.699235"], ["created_at", "2019-04-15 15:17:07.711658"], ["updated_at", "2019-04-15 15:17:07.711658"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-15 08:17:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (12.9ms) +Completed 200 OK in 206ms (Views: 200.8ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:17:07 -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.7ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (1.0ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (1.0ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:17:07.945696"], ["updated_at", "2019-04-15 15:17:07.945696"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:17:07 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:17: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-04-15 15:17:07.961857"], ["updated_at", "2019-04-15 15:17:07.961857"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (1.1ms) 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::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", "2019-04-20 15:17:07.972923"], ["created_at", "2019-04-15 15:17:07.974629"], ["updated_at", "2019-04-15 15:17:07.974629"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-15 08:17:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:17:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:17:08.001131"], ["updated_at", "2019-04-15 15:17:08.001131"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:17:08.008990"], ["updated_at", "2019-04-15 15:17:08.008990"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190968/mark" for 127.0.0.1 at 2019-04-15 08:17:08 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"name"=>"completing task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:17:08.019512"], ["updated_at", "2019-04-15 15:17:08.023373"], ["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 9ms (ActiveRecord: 1.1ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:17:08.054932"], ["updated_at", "2019-04-15 15:17:08.054932"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (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-04-15 08:17:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) 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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:17:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:17:08.080759"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:17:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.9ms) +Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 0.0ms) +  (3.9ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:17:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:17:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:20:24.743333', '2019-04-15 15:20:24.743333', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:20:24.743333', '2019-04-15 15:20:24.743333', DEFAULT, DEFAULT) +  (12.8ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:20: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.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-04-15 15:20:24.806575"], ["updated_at", "2019-04-15 15:20:24.806575"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 20ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:20:24.826509"], ["updated_at", "2019-04-15 15:20:24.826509"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (1.0ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190964/mark" for 127.0.0.1 at 2019-04-15 08:20:24 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"name"=>"completing task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:20:24.837797"], ["updated_at", "2019-04-15 15:20:24.839951"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 7ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:20:24.876624"], ["updated_at", "2019-04-15 15:20:24.876624"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:20:24.881511"], ["updated_at", "2019-04-15 15:20:24.881511"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:20:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:20:24.902414"], ["id", 298486374]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 10ms (ActiveRecord: 1.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.9ms) ROLLBACK +  (0.3ms) 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-04-15 08:20:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:20:24 -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 2ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:20:24.941761"], ["updated_at", "2019-04-15 15:20:24.941761"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190967" for 127.0.0.1 at 2019-04-15 08:20:24 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190967]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 1.3ms) +  (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.4ms) 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", "2019-04-20 15:20:24.957435"], ["created_at", "2019-04-15 15:20:24.962205"], ["updated_at", "2019-04-15 15:20:24.962205"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-15 08:20:24 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (21.2ms) +Completed 200 OK in 225ms (Views: 221.0ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:20:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:20:25 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 13ms (Views: 4.5ms | 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", "2019-04-20 15:20:25.226416"], ["created_at", "2019-04-15 15:20:25.229189"], ["updated_at", "2019-04-15 15:20:25.229189"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:20:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:20:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:20:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.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-04-15 08:20:25 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms) +  (0.6ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:21:12.965854', '2019-04-15 15:21:12.965854', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:21:12.965854', '2019-04-15 15:21:12.965854', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:21:12.998104"], ["updated_at", "2019-04-15 15:21:12.998104"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:21:13 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:21: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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:21:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 184ms (Views: 181.1ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:21:13 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.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-04-15 08:21: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-04-15 15:21:13.241037"], ["updated_at", "2019-04-15 15:21:13.241037"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.4ms) 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.3ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (1.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:21:13 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 08:21:13 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:21:13.279755"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 7ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.5ms) 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", "2019-04-20 15:21:13.289669"], ["created_at", "2019-04-15 15:21:13.291769"], ["updated_at", "2019-04-15 15:21:13.291769"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-15 08:21:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:21: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 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:21: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.8ms) +Completed 200 OK in 16ms (Views: 13.0ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:21:13.339015"], ["updated_at", "2019-04-15 15:21:13.339015"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:21:13 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"name"=>"completing task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:21:13.348826"], ["updated_at", "2019-04-15 15:21:13.350255"], ["id", 980190966]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_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", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:21:13.382666"], ["updated_at", "2019-04-15 15:21:13.382666"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:21:13.391066"], ["updated_at", "2019-04-15 15:21:13.391066"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:21:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 15:21:13.415400"], ["created_at", "2019-04-15 15:21:13.418199"], ["updated_at", "2019-04-15 15:21:13.418199"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 08:21:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.8ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.5ms) COMMIT +  (0.7ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:22:33.934822', '2019-04-15 15:22:33.934822', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:22:33.934822', '2019-04-15 15:22:33.934822', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.4ms) 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-04-15 08:22:33 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 8ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:22:33 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:22:34.003993"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 10ms (ActiveRecord: 1.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:22:34 -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-04-15 15:22:34.019197"], ["updated_at", "2019-04-15 15:22:34.019197"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (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.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:22:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 15:22:34.036207"], ["created_at", "2019-04-15 15:22:34.040791"], ["updated_at", "2019-04-15 15:22:34.040791"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:22:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.5ms) +Completed 200 OK in 225ms (Views: 218.8ms | ActiveRecord: 1.1ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:22:34 -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 22ms (Views: 19.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task to complete"], ["created_at", "2019-04-15 15:22:34.304114"], ["updated_at", "2019-04-15 15:22:34.304114"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_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", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task to complete"], ["created_at", "2019-04-15 15:22:34.311998"], ["updated_at", "2019-04-15 15:22:34.311998"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.8ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task to complete"], ["created_at", "2019-04-15 15:22:34.322122"], ["updated_at", "2019-04-15 15:22:34.322122"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190967/mark" for 127.0.0.1 at 2019-04-15 08:22:34 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (1.0ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:22:34.332354"], ["updated_at", "2019-04-15 15:22:34.335576"], ["id", 980190967]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 11ms (ActiveRecord: 2.0ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (1.8ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:22:34.371007"], ["updated_at", "2019-04-15 15:22:34.371007"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:22:34 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 0.8ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:22:34 -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.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.3ms) 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", "2019-04-20 15:22:34.399242"], ["created_at", "2019-04-15 15:22:34.403878"], ["updated_at", "2019-04-15 15:22:34.403878"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 08:22:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.4ms) +Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 0.3ms) +  (1.2ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:22:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:22:34 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:22:34 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 2.3ms) +  (1.6ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:23:37.882300', '2019-04-15 15:23:37.882300', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:23:37.882300', '2019-04-15 15:23:37.882300', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 08:23:37 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:23:37.934365"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 12ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-15 08:23:37 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:23:37 -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-04-15 15:23:37.958775"], ["updated_at", "2019-04-15 15:23:37.958775"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 3ms (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.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (1.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task to complete"], ["created_at", "2019-04-15 15:23:37.970642"], ["updated_at", "2019-04-15 15:23:37.970642"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task to complete"], ["created_at", "2019-04-15 15:23:37.981595"], ["updated_at", "2019-04-15 15:23:37.981595"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.5ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task to complete"], ["created_at", "2019-04-15 15:23:37.988780"], ["updated_at", "2019-04-15 15:23:37.988780"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:23:37 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (1.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:23:37.998641"], ["updated_at", "2019-04-15 15:23:38.000273"], ["id", 980190966]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 11ms (ActiveRecord: 2.5ms) +  (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-04-15 08:23:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (15.9ms) +Completed 200 OK in 218ms (Views: 212.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:23:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 15:23:38.265285"], ["created_at", "2019-04-15 15:23:38.268242"], ["updated_at", "2019-04-15 15:23:38.268242"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-15 08:23:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.3ms) +  (0.8ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:23:38.292038"], ["updated_at", "2019-04-15 15:23:38.292038"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:23:38 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 2ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (1.0ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:23:38 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/ +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:23:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 1.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-04-15 08:23:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.9ms) +  (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", "2019-04-20 15:23:38.347878"], ["created_at", "2019-04-15 15:23:38.349476"], ["updated_at", "2019-04-15 15:23:38.349476"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:23:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 9ms (Views: 3.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:23:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.5ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:24:04.192204', '2019-04-15 15:24:04.192204', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:24:04.192204', '2019-04-15 15:24:04.192204', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task to"], ["created_at", "2019-04-15 15:24:04.236678"], ["updated_at", "2019-04-15 15:24:04.236678"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task to"], ["created_at", "2019-04-15 15:24:04.243960"], ["updated_at", "2019-04-15 15:24:04.243960"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190964/mark" for 127.0.0.1 at 2019-04-15 08:24:04 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:24:04.264418"], ["updated_at", "2019-04-15 15:24:04.266360"], ["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 15ms (ActiveRecord: 1.0ms) +  (1.4ms) SELECT COUNT(*) FROM "tasks" +  (0.7ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task to"], ["created_at", "2019-04-15 15:24:04.296824"], ["updated_at", "2019-04-15 15:24:04.296824"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:24: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.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-04-15 15:24:04.318687"], ["updated_at", "2019-04-15 15:24:04.318687"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.6ms) 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-04-15 08:24:04 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 210ms (Views: 206.7ms | ActiveRecord: 1.0ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:24: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:24:04 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (13.1ms) +Completed 200 OK in 20ms (Views: 16.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (1.1ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:24:04 -0700 +Processing by TasksController#destroy 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) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:24:04.599310"], ["updated_at", "2019-04-15 15:24:04.599310"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190967" for 127.0.0.1 at 2019-04-15 08:24:04 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 1.0ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-20 15:24:04.611233"], ["created_at", "2019-04-15 15:24:04.614094"], ["updated_at", "2019-04-15 15:24:04.614094"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-15 08:24:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.7ms) +Completed 200 OK in 10ms (Views: 7.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/3/edit" for 127.0.0.1 at 2019-04-15 08:24:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +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.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", "2019-04-20 15:24:04.638744"], ["created_at", "2019-04-15 15:24:04.640345"], ["updated_at", "2019-04-15 15:24:04.640345"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:24:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:24: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.4ms) ROLLBACK +  (0.3ms) 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-04-15 08:24:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (1.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:24:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (11.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (1.0ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:24:04.695729"], ["id", 298486374]] +  (5.5ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 28ms (ActiveRecord: 18.4ms) +  (1.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.8ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:24:18.531318', '2019-04-15 15:24:18.531318', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:24:18.531318', '2019-04-15 15:24:18.531318', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.1ms) BEGIN +  (2.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.4ms) COMMIT +  (0.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", "2019-04-20 15:24:18.564212"], ["created_at", "2019-04-15 15:24:18.576761"], ["updated_at", "2019-04-15 15:24:18.576761"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:24:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 184ms (Views: 174.6ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:24:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:24:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 10ms (Views: 4.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-04-15 08:24:18 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:24:18.806788"], ["updated_at", "2019-04-15 15:24:18.806788"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:24:18 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:24:18 -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.9ms) SELECT COUNT(*) FROM "tasks" +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:24:18.836621"], ["updated_at", "2019-04-15 15:24:18.836621"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190965/mark" for 127.0.0.1 at 2019-04-15 08:24:18 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"name"=>"completing task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190965"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:24:18.850303"], ["updated_at", "2019-04-15 15:24:18.852427"], ["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 12ms (ActiveRecord: 1.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:24:18.912038"], ["updated_at", "2019-04-15 15:24:18.912038"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:24:18.923433"], ["updated_at", "2019-04-15 15:24:18.923433"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 15:24:18.929924"], ["created_at", "2019-04-15 15:24:18.934363"], ["updated_at", "2019-04-15 15:24:18.934363"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-15 08:24:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (15.5ms) +Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 0.2ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:24:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:24:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.6ms) 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-04-15 15:24:18.988942"], ["updated_at", "2019-04-15 15:24:18.988942"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 6ms (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]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:24:18 -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 9ms (Views: 6.8ms | 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.7ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:24:19 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "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 3ms (ActiveRecord: 0.6ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:24:19 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.5ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:24:19.032480"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.6ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:24:45.959000', '2019-04-15 15:24:45.959000', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:24:45.959000', '2019-04-15 15:24:45.959000', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:24: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.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-04-15 15:24:46.009406"], ["updated_at", "2019-04-15 15:24:46.009406"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 19ms (ActiveRecord: 0.8ms) +  (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_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:24:46 -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 2ms (ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:24:46.028672"], ["updated_at", "2019-04-15 15:24:46.028672"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:24:46 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (1.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 2.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:24:46.044156"], ["updated_at", "2019-04-15 15:24:46.044156"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190965/mark" for 127.0.0.1 at 2019-04-15 08:24:46 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"name"=>"completing task", "description"=>"update description", "completion_date"=>nil}, "id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.9ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:24:46.057271"], ["updated_at", "2019-04-15 15:24:46.059131"], ["id", 980190965]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 12ms (ActiveRecord: 1.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.7ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:24:46.107827"], ["updated_at", "2019-04-15 15:24:46.107827"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (2.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:24:46.119502"], ["updated_at", "2019-04-15 15:24:46.119502"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (1.0ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:24:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (12.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (17.3ms) +Completed 200 OK in 269ms (Views: 250.8ms | ActiveRecord: 12.1ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:24:46 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-20 15:24:46.431302"], ["created_at", "2019-04-15 15:24:46.434042"], ["updated_at", "2019-04-15 15:24:46.434042"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:24:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 12ms (Views: 4.3ms | ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:24: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.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:24:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 15:24:46.474808"], ["created_at", "2019-04-15 15:24:46.477677"], ["updated_at", "2019-04-15 15:24:46.477677"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 08:24:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (16.1ms) +Completed 200 OK in 23ms (Views: 17.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 08:24:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:24:46.517300"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.1ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-15 08:24:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:24:46 -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: 5.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (1.0ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:25:05.555217', '2019-04-15 15:25:05.555217', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:25:05.555217', '2019-04-15 15:25:05.555217', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:25:05.595260"], ["updated_at", "2019-04-15 15:25:05.595260"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:25:05 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:25:05 -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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.5ms) 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", "2019-04-20 15:25:05.627398"], ["created_at", "2019-04-15 15:25:05.632929"], ["updated_at", "2019-04-15 15:25:05.632929"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:25:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 191ms (Views: 188.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:25:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:25:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 14ms (Views: 7.5ms | ActiveRecord: 3.1ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:25:05 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.3ms) +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:25:05.870689"], ["updated_at", "2019-04-15 15:25:05.870689"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:25:05.880739"], ["updated_at", "2019-04-15 15:25:05.880739"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:25:05 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190966"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:25:05.889856"], ["updated_at", "2019-04-15 15:25:05.892819"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 9ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:25:05.928237"], ["updated_at", "2019-04-15 15:25:05.928237"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.3ms) 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.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:25:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.4ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:25:05.945133"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (1.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:25:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.3ms) 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", "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", "2019-04-20 15:25:05.966862"], ["created_at", "2019-04-15 15:25:05.968861"], ["updated_at", "2019-04-15 15:25:05.968861"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-15 08:25:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (12.3ms) +Completed 200 OK in 21ms (Views: 14.4ms | ActiveRecord: 1.1ms) +  (0.3ms) ROLLBACK +  (1.6ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:25:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (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-04-15 08:25:06 -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 9ms (Views: 4.8ms | ActiveRecord: 0.0ms) +  (12.7ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:25: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 (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-04-15 15:25:06.043355"], ["updated_at", "2019-04-15 15:25:06.043355"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:25:35.213788', '2019-04-15 15:25:35.213788', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:25:35.213788', '2019-04-15 15:25:35.213788', DEFAULT, DEFAULT) +  (1.5ms) COMMIT +  (0.7ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:25:35.248828"], ["updated_at", "2019-04-15 15:25:35.248828"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:25:35.256174"], ["updated_at", "2019-04-15 15:25:35.256174"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:25:35.261958"], ["updated_at", "2019-04-15 15:25:35.261958"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190965/mark" for 127.0.0.1 at 2019-04-15 08:25:35 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:25:35.286177"], ["updated_at", "2019-04-15 15:25:35.290354"], ["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 14ms (ActiveRecord: 1.1ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:25:35 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 213ms (Views: 210.7ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:25:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:25:35 -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.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-04-15 15:25:35.543674"], ["updated_at", "2019-04-15 15:25:35.543674"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.7ms) 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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (1.7ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:25:35 -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.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:25:35.569258"], ["updated_at", "2019-04-15 15:25:35.569258"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190967" for 127.0.0.1 at 2019-04-15 08:25:35 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190967"} + Task Load (3.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.7ms) SAVEPOINT active_record_1 + Task Destroy (3.1ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 11ms (ActiveRecord: 7.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.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", "2019-04-20 15:25:35.591795"], ["created_at", "2019-04-15 15:25:35.594766"], ["updated_at", "2019-04-15 15:25:35.594766"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-15 08:25:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (13.3ms) +Completed 200 OK in 19ms (Views: 14.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/3/edit" for 127.0.0.1 at 2019-04-15 08:25:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.2ms) 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-04-15 08:25:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.6ms) ROLLBACK +  (2.5ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:25:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:25:35.649907"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 7ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (2.7ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:25: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.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", "2019-04-20 15:25:35.671023"], ["created_at", "2019-04-15 15:25:35.672617"], ["updated_at", "2019-04-15 15:25:35.672617"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:25:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:25:35 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:26:08.814266', '2019-04-15 15:26:08.814266', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:26:08.814266', '2019-04-15 15:26:08.814266', DEFAULT, DEFAULT) +  (1.4ms) COMMIT +  (0.4ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.7ms) 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", "2019-04-20 15:26:08.843926"], ["created_at", "2019-04-15 15:26:08.858596"], ["updated_at", "2019-04-15 15:26:08.858596"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-15 08:26:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (26.8ms) +Completed 200 OK in 209ms (Views: 200.4ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:26:09 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:26:09.099119"], ["updated_at", "2019-04-15 15:26:09.099119"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190964/mark" for 127.0.0.1 at 2019-04-15 08:26:09 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190964"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.8ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:26:09.116467"], ["updated_at", "2019-04-15 15:26:09.121300"], ["id", 980190964]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 13ms (ActiveRecord: 2.4ms) +  (2.2ms) SELECT COUNT(*) FROM "tasks" +  (0.9ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.6ms) SAVEPOINT active_record_1 + Task Create (2.6ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:26:09.158827"], ["updated_at", "2019-04-15 15:26:09.158827"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:26:09.167505"], ["updated_at", "2019-04-15 15:26:09.167505"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.4ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:26:09 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (1.4ms) 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-04-15 15:26:09.189459"], ["updated_at", "2019-04-15 15:26:09.189459"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 8ms (ActiveRecord: 2.9ms) +  (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 a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:26:09.202946"], ["updated_at", "2019-04-15 15:26:09.202946"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:26:09 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:26:09 -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 4ms (ActiveRecord: 0.3ms) +  (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-04-15 08:26:09 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 0.0ms) +  (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-04-15 08:26:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.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", "2019-04-20 15:26:09.254837"], ["created_at", "2019-04-15 15:26:09.256769"], ["updated_at", "2019-04-15 15:26:09.256769"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:26:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.2ms) +  (5.8ms) ROLLBACK +  (1.6ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:26:09 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:26:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:26:09 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:26:09.315438"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.5ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["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) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:26:09 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.2ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:27:44.941165', '2019-04-15 15:27:44.941165', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:27:44.941165', '2019-04-15 15:27:44.941165', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 08:27:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:27:44.989280"], ["id", 298486374]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (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-04-15 08:27:45 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:27: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.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-04-15 15:27:45.017986"], ["updated_at", "2019-04-15 15:27:45.017986"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.8ms) 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.2ms) 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", "2019-04-20 15:27:45.030301"], ["created_at", "2019-04-15 15:27:45.034333"], ["updated_at", "2019-04-15 15:27:45.034333"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-15 08:27:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (11.7ms) +Completed 200 OK in 184ms (Views: 181.1ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:27:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-20 15:27:45.240703"], ["created_at", "2019-04-15 15:27:45.245207"], ["updated_at", "2019-04-15 15:27:45.245207"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-15 08:27:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.2ms) +  (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-04-15 08:27:45 -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-04-15 08:27:45 -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 8ms (Views: 5.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:27:45.303314"], ["updated_at", "2019-04-15 15:27:45.303314"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:27:45.371128"], ["updated_at", "2019-04-15 15:27:45.371128"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:27:45.441167"], ["updated_at", "2019-04-15 15:27:45.441167"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:27:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 6ms (Views: 3.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-04-15 08:27: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:27:45.537090"], ["updated_at", "2019-04-15 15:27:45.537090"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:27:45 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 1.1ms) +  (1.0ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:27:45 -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.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:28:25.612628', '2019-04-15 15:28:25.612628', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:28:25.612628', '2019-04-15 15:28:25.612628', DEFAULT, DEFAULT) +  (1.6ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:28:25 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (12.6ms) +Completed 200 OK in 201ms (Views: 193.3ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:28:25 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:28:25 -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.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-04-15 15:28:25.875467"], ["updated_at", "2019-04-15 15:28:25.875467"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 6ms (ActiveRecord: 1.5ms) +  (0.9ms) 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::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (1.0ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:28:25.891031"], ["updated_at", "2019-04-15 15:28:25.891031"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:28:25.898283"], ["updated_at", "2019-04-15 15:28:25.898283"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.9ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:28:25.907256"], ["updated_at", "2019-04-15 15:28:25.907256"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:28:25 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190966"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:28:25.915675"], ["updated_at", "2019-04-15 15:28:25.920824"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 12ms (ActiveRecord: 1.5ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (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-04-15 08:28:25 -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 23ms (Views: 20.4ms | ActiveRecord: 0.0ms) +  (0.2ms) 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.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:28:25 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:28:25.989322"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) 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-04-15 08:28:25 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-20 15:28:26.008990"], ["created_at", "2019-04-15 15:28:26.011586"], ["updated_at", "2019-04-15 15:28:26.011586"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-15 08:28:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 3.1ms | 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-04-15 08:28: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 3ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 15:28:26.043620"], ["created_at", "2019-04-15 15:28:26.048537"], ["updated_at", "2019-04-15 15:28:26.048537"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-15 08:28:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.1ms) +Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:28:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:28:26 -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.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.6ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:28:26.084459"], ["updated_at", "2019-04-15 15:28:26.084459"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:28:26 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:29:33.740531', '2019-04-15 15:29:33.740531', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:29:33.740531', '2019-04-15 15:29:33.740531', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.2ms) BEGIN +  (0.7ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (1.9ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:29:33 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 7ms (ActiveRecord: 0.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) 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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:29:33 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:29:33.816210"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 11ms (ActiveRecord: 1.1ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:29:33.833972"], ["updated_at", "2019-04-15 15:29:33.833972"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190963/mark" for 127.0.0.1 at 2019-04-15 08:29:33 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190963"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:29:33.841022"], ["updated_at", "2019-04-15 15:29:33.843261"], ["id", 980190963]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:29:33.855992"], ["updated_at", "2019-04-15 15:29:33.855992"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:29:33.863465"], ["updated_at", "2019-04-15 15:29:33.863465"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:29:33.872308"], ["updated_at", "2019-04-15 15:29:33.872308"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190966" for 127.0.0.1 at 2019-04-15 08:29:33 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (1.0ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:29:33 -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 3ms (ActiveRecord: 0.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:29:33 -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-04-15 15:29:33.904398"], ["updated_at", "2019-04-15 15:29:33.904398"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) +  (0.4ms) 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:29:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 178ms (Views: 174.0ms | ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:29:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.4ms) 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", "2019-04-20 15:29:34.108177"], ["created_at", "2019-04-15 15:29:34.112313"], ["updated_at", "2019-04-15 15:29:34.112313"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:29:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:29:34 -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::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.4ms) 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", "2019-04-20 15:29:34.133658"], ["created_at", "2019-04-15 15:29:34.137249"], ["updated_at", "2019-04-15 15:29:34.137249"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 08:29:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.2ms) +Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 0.3ms) +  (0.6ms) ROLLBACK +  (0.4ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:29:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["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-04-15 08:29:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:30:56.108518', '2019-04-15 15:30:56.108518', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:30:56.108518', '2019-04-15 15:30:56.108518', DEFAULT, DEFAULT) +  (1.5ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (14.0ms) +Completed 200 OK in 186ms (Views: 176.1ms | ActiveRecord: 1.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-04-15 08:30:56 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (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", "2019-04-20 15:30:56.343780"], ["created_at", "2019-04-15 15:30:56.349906"], ["updated_at", "2019-04-15 15:30:56.349906"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.4ms) +Completed 200 OK in 21ms (Views: 12.8ms | ActiveRecord: 0.9ms) +  (1.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (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-04-15 08:30:56 -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: 4.1ms | ActiveRecord: 0.0ms) +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:30:56.405378"], ["updated_at", "2019-04-15 15:30:56.405378"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 2.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"-1"} + Task Load (1.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 4ms (ActiveRecord: 1.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:30:56.437579"], ["id", 298486374]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) 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-04-15 08:30:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) 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", "2019-04-20 15:30:56.464143"], ["created_at", "2019-04-15 15:30:56.466356"], ["updated_at", "2019-04-15 15:30:56.466356"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:30:56.489257"], ["updated_at", "2019-04-15 15:30:56.489257"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:30:56.497520"], ["updated_at", "2019-04-15 15:30:56.499538"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 8ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (1.4ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:30:56.514904"], ["updated_at", "2019-04-15 15:30:56.514904"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190967/mark" for 127.0.0.1 at 2019-04-15 08:30:56 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-14T08:30:56-07:00"}, "id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:30:56.524811"], ["updated_at", "2019-04-15 15:30:56.527736"], ["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:30:56.536723"], ["updated_at", "2019-04-15 15:30:56.536723"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:30: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.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-04-15 15:30:56.546808"], ["updated_at", "2019-04-15 15:30:56.546808"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (1.0ms) 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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:31:51.419287', '2019-04-15 15:31:51.419287', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:31:51.419287', '2019-04-15 15:31:51.419287', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) 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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:31:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:31:51.485887"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 20ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (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-04-15 08:31:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 3ms (ActiveRecord: 0.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.6ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:31:51.517326"], ["updated_at", "2019-04-15 15:31:51.517326"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190963/mark" for 127.0.0.1 at 2019-04-15 08:31:51 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:31:51.527799"], ["updated_at", "2019-04-15 15:31:51.529795"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 9ms (ActiveRecord: 1.3ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (1.6ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:31:51.545751"], ["updated_at", "2019-04-15 15:31:51.545751"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190964/mark" for 127.0.0.1 at 2019-04-15 08:31:51 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-14T08:31:51-07:00"}, "id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:31:51.582679"], ["updated_at", "2019-04-15 15:31:51.583841"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:31:51.591846"], ["updated_at", "2019-04-15 15:31:51.591846"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:31:51.597039"], ["updated_at", "2019-04-15 15:31:51.597039"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190966" for 127.0.0.1 at 2019-04-15 08:31:51 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190966]] +  (0.2ms) 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" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:31:51 -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.5ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:31:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 159ms (Views: 156.0ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:31:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.8ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:31:51 -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.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-04-15 15:31:51.803457"], ["updated_at", "2019-04-15 15:31:51.803457"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (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.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:31:51 -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 15ms (Views: 12.7ms | ActiveRecord: 0.0ms) +  (1.7ms) 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", "2019-04-20 15:31:51.836616"], ["created_at", "2019-04-15 15:31:51.843121"], ["updated_at", "2019-04-15 15:31:51.843121"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:31:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (1.3ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:31: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::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.8ms) 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", "2019-04-20 15:31:51.862233"], ["created_at", "2019-04-15 15:31:51.866459"], ["updated_at", "2019-04-15 15:31:51.866459"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 08:31:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.2ms) +Completed 200 OK in 11ms (Views: 7.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/3/edit" for 127.0.0.1 at 2019-04-15 08:31:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.5ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:32:15.295317', '2019-04-15 15:32:15.295317', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:32:15.295317', '2019-04-15 15:32:15.295317', DEFAULT, DEFAULT) +  (1.6ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:32:15.332284"], ["updated_at", "2019-04-15 15:32:15.332284"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:32:15.340386"], ["updated_at", "2019-04-15 15:32:15.340386"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190964/mark" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-14T08:32:15-07:00"}, "id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:32:15.363011"], ["updated_at", "2019-04-15 15:32:15.364293"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:32:15.371021"], ["updated_at", "2019-04-15 15:32:15.371021"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190965/mark" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:32:15.377774"], ["updated_at", "2019-04-15 15:32:15.379160"], ["id", 980190965]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 10ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing 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", "2019-04-20 15:32:15.392592"], ["created_at", "2019-04-15 15:32:15.395798"], ["updated_at", "2019-04-15 15:32:15.395798"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.1ms) +Completed 200 OK in 158ms (Views: 155.8ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.5ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:32:15.593045"], ["updated_at", "2019-04-15 15:32:15.593045"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190967" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190967"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.6ms) SAVEPOINT active_record_1 + Task Destroy (0.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190967]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 7ms (ActiveRecord: 2.5ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.5ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:32:15 -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) +  (1.0ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.3ms) 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", "2019-04-20 15:32:15.625264"], ["created_at", "2019-04-15 15:32:15.627233"], ["updated_at", "2019-04-15 15:32:15.627233"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (1.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:32:15 -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-04-15 15:32:15.658214"], ["updated_at", "2019-04-15 15:32:15.658214"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.7ms) 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.3ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.7ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.7ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:32:15.689616"], ["id", 298486374]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 32ms (Views: 3.1ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:32:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 19ms (Views: 15.6ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:33:03.324388', '2019-04-15 15:33:03.324388', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:33:03.324388', '2019-04-15 15:33:03.324388', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:33:03.358141"], ["updated_at", "2019-04-15 15:33:03.358141"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190963/mark" for 127.0.0.1 at 2019-04-15 08:33:03 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:33:03.378281"], ["updated_at", "2019-04-15 15:33:03.380278"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:33:03.389176"], ["updated_at", "2019-04-15 15:33:03.389176"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190964/mark" for 127.0.0.1 at 2019-04-15 08:33:03 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-14T08:33:03-07:00"}, "id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:33:03.396188"], ["updated_at", "2019-04-15 15:33:03.397538"], ["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (0.7ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:33:03.407095"], ["updated_at", "2019-04-15 15:33:03.407095"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 08:33:03 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:33:03.420829"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.4ms) ROLLBACK +  (0.7ms) 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-04-15 08:33:03 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:33: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 177ms (Views: 173.2ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:33:03 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 6ms (Views: 4.7ms | 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-04-15 08:33:03 -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.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-04-15 15:33:03.641026"], ["updated_at", "2019-04-15 15:33:03.641026"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) +  (0.7ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (1.0ms) ROLLBACK +  (0.6ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:33:03.654883"], ["updated_at", "2019-04-15 15:33:03.654883"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190967" for 127.0.0.1 at 2019-04-15 08:33:03 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.7ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 5ms (ActiveRecord: 1.4ms) +  (1.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:33:03 -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_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:33:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.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", "2019-04-20 15:33:03.684371"], ["created_at", "2019-04-15 15:33:03.686108"], ["updated_at", "2019-04-15 15:33:03.686108"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-15 08:33:03 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (16.4ms) +Completed 200 OK in 20ms (Views: 17.8ms | ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:33: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.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", "2019-04-20 15:33:03.719214"], ["created_at", "2019-04-15 15:33:03.721184"], ["updated_at", "2019-04-15 15:33:03.721184"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:33:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 8ms (Views: 5.0ms | 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-04-15 08:33:03 -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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.8ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:34:58.478442', '2019-04-15 15:34:58.478442', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:34:58.478442', '2019-04-15 15:34:58.478442', DEFAULT, DEFAULT) +  (9.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_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-04-15 08:34:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (1.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:34:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:34:58.557499"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:34:58.568150"], ["updated_at", "2019-04-15 15:34:58.568150"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190963/mark" for 127.0.0.1 at 2019-04-15 08:34:58 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-14T08:34:58-07:00"}, "id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:34:58.575684"], ["updated_at", "2019-04-15 15:34:58.579186"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:34:58.586025"], ["updated_at", "2019-04-15 15:34:58.586025"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:34:58.590121"], ["updated_at", "2019-04-15 15:34:58.590121"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190965/mark" for 127.0.0.1 at 2019-04-15 08:34:58 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:34:58.600741"], ["updated_at", "2019-04-15 15:34:58.602093"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.9ms) 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", "2019-04-20 15:34:58.612911"], ["created_at", "2019-04-15 15:34:58.615168"], ["updated_at", "2019-04-15 15:34:58.615168"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-15 08:34:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (18.0ms) +Completed 200 OK in 185ms (Views: 179.3ms | ActiveRecord: 0.9ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:34:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:34: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 (2.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-04-15 15:34:58.820112"], ["updated_at", "2019-04-15 15:34:58.820112"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 7ms (ActiveRecord: 2.5ms) +  (1.0ms) 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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:34:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:34: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:34:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.5ms) +  (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", "2019-04-20 15:34:58.869610"], ["created_at", "2019-04-15 15:34:58.871209"], ["updated_at", "2019-04-15 15:34:58.871209"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:34:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.9ms) +Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:34: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::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:34:58.893191"], ["updated_at", "2019-04-15 15:34:58.893191"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:34:58 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:34:58 -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.4ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:36:04.785766', '2019-04-15 15:36:04.785766', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:36:04.785766', '2019-04-15 15:36:04.785766', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:36: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-04-15 15:36:04.831958"], ["updated_at", "2019-04-15 15:36:04.831958"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 17ms (ActiveRecord: 0.7ms) +  (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::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-04-15 08:36:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 4ms (ActiveRecord: 0.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 08:36:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:36:04.864073"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 9ms (ActiveRecord: 1.5ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:36:04.879276"], ["updated_at", "2019-04-15 15:36:04.879276"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190964/mark" for 127.0.0.1 at 2019-04-15 08:36:04 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.6ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:36:04.886348"], ["updated_at", "2019-04-15 15:36:04.890029"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 10ms (ActiveRecord: 1.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:36:04.900740"], ["updated_at", "2019-04-15 15:36:04.900740"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:36:04.908626"], ["updated_at", "2019-04-15 15:36:04.908626"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:36:04 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>"2019-04-14T08:36:04-07:00"}, "id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:36:04.916774"], ["updated_at", "2019-04-15 15:36:04.918310"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 1.3ms) +  (1.1ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:36:04 -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 165ms (Views: 162.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.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", "2019-04-20 15:36:05.101146"], ["created_at", "2019-04-15 15:36:05.104258"], ["updated_at", "2019-04-15 15:36:05.104258"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-15 08:36:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:36: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]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08: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" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:36:05 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:36:05.152642"], ["updated_at", "2019-04-15 15:36:05.152642"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:36:05 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:36:05 -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.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("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", "2019-04-20 15:36:05.177349"], ["created_at", "2019-04-15 15:36:05.179084"], ["updated_at", "2019-04-15 15:36:05.179084"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 08:36:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.2ms) +Completed 200 OK in 13ms (Views: 10.1ms | 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/3/edit" for 127.0.0.1 at 2019-04-15 08:36:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:38:21.374096', '2019-04-15 15:38:21.374096', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:38:21.374096', '2019-04-15 15:38:21.374096', DEFAULT, DEFAULT) +  (40.5ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (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", "2019-04-20 15:38:21.436872"], ["created_at", "2019-04-15 15:38:21.462694"], ["updated_at", "2019-04-15 15:38:21.462694"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:38:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 156ms (Views: 146.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-04-15 08:38:21 -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.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:38:21 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (17.8ms) +Completed 200 OK in 23ms (Views: 20.0ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:38:21 -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-04-15 15:38:21.689390"], ["updated_at", "2019-04-15 15:38:21.689390"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +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::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:21.696782"], ["updated_at", "2019-04-15 15:38:21.696782"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:21.709189"], ["updated_at", "2019-04-15 15:38:21.709189"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (1.9ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14 15:38:21.712987"], ["updated_at", "2019-04-15 15:38:21.721700"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:21.789328"], ["updated_at", "2019-04-15 15:38:21.789328"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190967/mark" for 127.0.0.1 at 2019-04-15 08:38:21 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190967"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:38:21.799887"], ["updated_at", "2019-04-15 15:38:21.801324"], ["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 8ms (ActiveRecord: 2.1ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["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 (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", "2019-04-20 15:38:21.809569"], ["created_at", "2019-04-15 15:38:21.811314"], ["updated_at", "2019-04-15 15:38:21.811314"]] +  (11.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-15 08:38:21 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 8ms (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/3/edit" for 127.0.0.1 at 2019-04-15 08:38:21 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.7ms) ROLLBACK +  (1.0ms) 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.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:38:21 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.9ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:38:21.860063"], ["id", 298486374]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 11ms (ActiveRecord: 1.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-15 08:38:21 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:38: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 10ms (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-04-15 08:38:21 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:38:21.926649"], ["updated_at", "2019-04-15 15:38:21.926649"]] +  (1.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:38:21 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (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" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:38:21 -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 4ms (ActiveRecord: 0.3ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:38:34.074887', '2019-04-15 15:38:34.074887', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:38:34.074887', '2019-04-15 15:38:34.074887', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:38:34 -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.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:38:34.126573"], ["updated_at", "2019-04-15 15:38:34.126573"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.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", "2019-04-20 15:38:34.147332"], ["created_at", "2019-04-15 15:38:34.149277"], ["updated_at", "2019-04-15 15:38:34.149277"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 145ms (Views: 141.2ms | 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-04-15 08:38: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 (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-04-15 15:38:34.309654"], ["updated_at", "2019-04-15 15:38:34.309654"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 8ms (ActiveRecord: 0.9ms) +  (0.5ms) 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.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:38:34.335870"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-15 08:38:34 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:34.358144"], ["updated_at", "2019-04-15 15:38:34.358144"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#mark as HTML + Parameters: {"task"=>{"completion_date"=>nil}, "id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:38:34.366078"], ["updated_at", "2019-04-15 15:38:34.368143"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 8ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:34.380497"], ["updated_at", "2019-04-15 15:38:34.380497"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:34.384551"], ["updated_at", "2019-04-15 15:38:34.384551"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14 15:38:34.387326"], ["updated_at", "2019-04-15 15:38:34.389523"], ["id", 980190968]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190968/mark" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 15:38:34.400173"], ["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 7ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (14.1ms) +Completed 200 OK in 19ms (Views: 15.8ms | ActiveRecord: 0.0ms) +  (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.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", "2019-04-20 15:38:34.437040"], ["created_at", "2019-04-15 15:38:34.439015"], ["updated_at", "2019-04-15 15:38:34.439015"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.4ms) +Completed 200 OK in 9ms (Views: 4.9ms | 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/3/edit" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:38:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.9ms) BEGIN +  (1.1ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.5ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:38:45.804947', '2019-04-15 15:38:45.804947', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:38:45.804947', '2019-04-15 15:38:45.804947', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 08:38:45 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:38:45.857237"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (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-04-15 08:38:45 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 2ms (ActiveRecord: 0.5ms) +  (0.3ms) 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-04-15 08:38:45 -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 (1.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-04-15 15:38:45.886368"], ["updated_at", "2019-04-15 15:38:45.886368"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 7ms (ActiveRecord: 2.2ms) +  (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::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", "2019-04-20 15:38:45.894962"], ["created_at", "2019-04-15 15:38:45.898214"], ["updated_at", "2019-04-15 15:38:45.898214"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:38:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 209ms (Views: 206.2ms | ActiveRecord: 0.3ms) +  (2.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-04-15 08:38: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::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:38:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("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", "2019-04-20 15:38:46.138440"], ["created_at", "2019-04-15 15:38:46.141136"], ["updated_at", "2019-04-15 15:38:46.141136"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-15 08:38:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (10.6ms) +Completed 200 OK in 17ms (Views: 12.6ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:38:46 -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 10ms (Views: 6.0ms | ActiveRecord: 0.0ms) +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:46.206485"], ["updated_at", "2019-04-15 15:38:46.206485"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:46.286075"], ["updated_at", "2019-04-15 15:38:46.286075"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14 15:38:46.289119"], ["updated_at", "2019-04-15 15:38:46.290974"], ["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190967/mark" for 127.0.0.1 at 2019-04-15 08:38:46 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 15:38:46.302019"], ["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 7ms (ActiveRecord: 0.9ms) +  (2.0ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_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", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:46.311701"], ["updated_at", "2019-04-15 15:38:46.311701"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:38:46 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:38:46 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.4ms) +  (1.0ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:38:46 -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.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (2.0ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:38:46.350109"], ["updated_at", "2019-04-15 15:38:46.350109"]] +  (1.8ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:38:46 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (2.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:38:59.444628', '2019-04-15 15:38:59.444628', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:38:59.444628', '2019-04-15 15:38:59.444628', DEFAULT, DEFAULT) +  (1.7ms) COMMIT +  (0.1ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::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", "2019-04-20 15:38:59.466839"], ["created_at", "2019-04-15 15:38:59.478121"], ["updated_at", "2019-04-15 15:38:59.478121"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-15 08:38:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (7.9ms) +Completed 200 OK in 234ms (Views: 225.2ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:38:59 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:38:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.1ms) +Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:59.757012"], ["updated_at", "2019-04-15 15:38:59.757012"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190964/mark" for 127.0.0.1 at 2019-04-15 08:38:59 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:38:59.772746"], ["updated_at", "2019-04-15 15:38:59.775195"], ["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 7ms (ActiveRecord: 1.1ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:59.784529"], ["updated_at", "2019-04-15 15:38:59.784529"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (1.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14 15:38:59.788063"], ["updated_at", "2019-04-15 15:38:59.789561"], ["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190965/mark" for 127.0.0.1 at 2019-04-15 08:38:59 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 15:38:59.799656"], ["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 6ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:38:59.811098"], ["updated_at", "2019-04-15 15:38:59.811098"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:38:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:38:59 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:38:59.841924"], ["updated_at", "2019-04-15 15:38:59.841924"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (1.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190967" for 127.0.0.1 at 2019-04-15 08:38:59 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190967]] +  (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" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:38:59 -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.7ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:38:59 -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.2ms) SAVEPOINT active_record_1 + Task Create (1.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", "2019-04-20 15:38:59.868518"], ["created_at", "2019-04-15 15:38:59.871035"], ["updated_at", "2019-04-15 15:38:59.871035"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:38:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 08:38:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:38:59.899507"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) 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-04-15 08:38:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.7ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:38: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.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-04-15 15:38:59.931618"], ["updated_at", "2019-04-15 15:38:59.931618"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 3ms (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.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:39:40.051252', '2019-04-15 15:39:40.051252', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:39:40.051252', '2019-04-15 15:39:40.051252', DEFAULT, DEFAULT) +  (39.5ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:39:40.125281"], ["updated_at", "2019-04-15 15:39:40.125281"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:39:40 -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.4ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) 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", "2019-04-20 15:39:40.165328"], ["created_at", "2019-04-15 15:39:40.167097"], ["updated_at", "2019-04-15 15:39:40.167097"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 270ms (Views: 264.9ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:39:40 -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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:39: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 21ms (Views: 13.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (1.7ms) 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-04-15 15:39:40.506124"], ["updated_at", "2019-04-15 15:39:40.506124"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 6ms (ActiveRecord: 2.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.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" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:39:40.519924"], ["id", 298486374]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 8ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) 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" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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 3ms (ActiveRecord: 0.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:39:40.544128"], ["updated_at", "2019-04-15 15:39:40.544128"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/-1/mark" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#mark 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/-1 +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:39:40.557162"], ["updated_at", "2019-04-15 15:39:40.557162"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190967/mark" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:39:40.567360"], ["updated_at", "2019-04-15 15:39:40.568548"], ["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:39:40.582356"], ["updated_at", "2019-04-15 15:39:40.582356"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14 15:39:40.584897"], ["updated_at", "2019-04-15 15:39:40.586119"], ["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190968/mark" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 15:39:40.598331"], ["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 8ms (ActiveRecord: 1.1ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 15:39:40.606332"], ["created_at", "2019-04-15 15:39:40.609011"], ["updated_at", "2019-04-15 15:39:40.609011"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.5ms) +Completed 200 OK in 9ms (Views: 5.8ms | 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/3/edit" for 127.0.0.1 at 2019-04-15 08:39:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["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_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:39:40 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:39:40 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:40:05.622013', '2019-04-15 15:40:05.622013', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:40:05.622013', '2019-04-15 15:40:05.622013', DEFAULT, DEFAULT) +  (1.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:40:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (13.2ms) +Completed 200 OK in 232ms (Views: 225.0ms | ActiveRecord: 0.8ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:40:05 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:40:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:40:05.921377"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 12ms (ActiveRecord: 1.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (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-04-15 08:40:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"-1"} + Task Load (1.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 3ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid 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", "2019-04-20 15:40:05.945046"], ["created_at", "2019-04-15 15:40:05.949033"], ["updated_at", "2019-04-15 15:40:05.949033"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:40:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:40:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (1.7ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:40:05 -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-04-15 15:40:05.984850"], ["updated_at", "2019-04-15 15:40:05.984850"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +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.3ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:40:05.995915"], ["updated_at", "2019-04-15 15:40:05.995915"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-04-15 08:40:05 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:40:06 -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 3ms (ActiveRecord: 0.4ms) +  (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", "2019-04-20 15:40:06.014267"], ["created_at", "2019-04-15 15:40:06.016866"], ["updated_at", "2019-04-15 15:40:06.016866"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-15 08:40:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (12.4ms) +Completed 200 OK in 17ms (Views: 14.2ms | 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/3/edit" for 127.0.0.1 at 2019-04-15 08:40:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:40: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.0ms) +Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:40:06.068481"], ["updated_at", "2019-04-15 15:40:06.068481"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (12.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190967/mark" for 127.0.0.1 at 2019-04-15 08:40:06 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:40:06.088058"], ["updated_at", "2019-04-15 15:40:06.089291"], ["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:40:06.097882"], ["updated_at", "2019-04-15 15:40:06.097882"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.7ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14 15:40:06.103872"], ["updated_at", "2019-04-15 15:40:06.107774"], ["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190968/mark" for 127.0.0.1 at 2019-04-15 08:40:06 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.4ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 15:40:06.116738"], ["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 8ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:40:06.124783"], ["updated_at", "2019-04-15 15:40:06.124783"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/-1/mark" for 127.0.0.1 at 2019-04-15 08:40:06 -0700 +Processing by TasksController#mark 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/-1 +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:40:18.195042', '2019-04-15 15:40:18.195042', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:40:18.195042', '2019-04-15 15:40:18.195042', DEFAULT, DEFAULT) +  (2.2ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:40:18 -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.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-04-15 15:40:18.246984"], ["updated_at", "2019-04-15 15:40:18.246984"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 25ms (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]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + 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/298486374" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:40:18.266989"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 10ms (ActiveRecord: 2.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (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-04-15 08:40:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update 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.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (7.2ms) +Completed 200 OK in 201ms (Views: 198.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:40:18 -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.2ms) 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", "2019-04-20 15:40:18.508231"], ["created_at", "2019-04-15 15:40:18.511322"], ["updated_at", "2019-04-15 15:40:18.511322"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:40:18.531557"], ["updated_at", "2019-04-15 15:40:18.531557"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (1.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/-1/mark" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#mark 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/-1 +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:40:18.548309"], ["updated_at", "2019-04-15 15:40:18.548309"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:40:18.558908"], ["updated_at", "2019-04-15 15:40:18.562016"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 11ms (ActiveRecord: 1.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:40:18.575772"], ["updated_at", "2019-04-15 15:40:18.575772"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14 15:40:18.580320"], ["updated_at", "2019-04-15 15:40:18.582317"], ["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190967/mark" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 15:40:18.591931"], ["id", 980190967]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 11ms (ActiveRecord: 1.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 12ms (Views: 6.8ms | ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:40:18.634472"], ["updated_at", "2019-04-15 15:40:18.634472"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (1.7ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:40:18 -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::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", "2019-04-20 15:40:18.653911"], ["created_at", "2019-04-15 15:40:18.655575"], ["updated_at", "2019-04-15 15:40:18.655575"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969/edit" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/3/edit" for 127.0.0.1 at 2019-04-15 08:40:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.6ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:41:37.645546', '2019-04-15 15:41:37.645546', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:41:37.645546', '2019-04-15 15:41:37.645546', DEFAULT, DEFAULT) +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:41:37.676280"], ["updated_at", "2019-04-15 15:41:37.676280"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190963/mark" for 127.0.0.1 at 2019-04-15 08:41:37 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:41:37.695048"], ["updated_at", "2019-04-15 15:41:37.697185"], ["id", 980190963]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:41:37.707888"], ["updated_at", "2019-04-15 15:41:37.707888"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14 15:41:37.711579"], ["updated_at", "2019-04-15 15:41:37.715353"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190964/mark" for 127.0.0.1 at 2019-04-15 08:41:37 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 15:41:37.722849"], ["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 7ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:41:37.732466"], ["updated_at", "2019-04-15 15:41:37.732466"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/-1/mark" for 127.0.0.1 at 2019-04-15 08:41:37 -0700 +Processing by TasksController#mark 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/-1 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.3ms) 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-04-15 08:41:37 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 193ms (Views: 190.6ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:41: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms) +  (1.0ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-15 08:41:37 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (11.6ms) +Completed 200 OK in 18ms (Views: 13.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:41:37.981865"], ["updated_at", "2019-04-15 15:41:37.981865"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190966" for 127.0.0.1 at 2019-04-15 08:41:37 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190966]] +  (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" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (1.1ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:41:37 -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.4ms) SELECT COUNT(*) FROM "tasks" +  (1.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.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", "2019-04-20 15:41:38.006648"], ["created_at", "2019-04-15 15:41:38.008862"], ["updated_at", "2019-04-15 15:41:38.008862"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-15 08:41:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 6ms (Views: 3.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/3/edit" for 127.0.0.1 at 2019-04-15 08:41:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:41:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:41:38.044448"], ["id", 298486374]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 12ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) 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-04-15 08:41:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "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 3ms (ActiveRecord: 0.6ms) +  (0.8ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (0.1ms) 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", "2019-04-20 15:41:38.072166"], ["created_at", "2019-04-15 15:41:38.074336"], ["updated_at", "2019-04-15 15:41:38.074336"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-04-15 08:41:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:41:38 -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.4ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:41:38 -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-04-15 15:41:38.103242"], ["updated_at", "2019-04-15 15:41:38.103242"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at", "priority_level", "priority") VALUES (980190962, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:42:16.128622', '2019-04-15 15:42:16.128622', DEFAULT, DEFAULT), (298486374, 'MyString', 'MyString', '2019-04-09 15:49:45', '2019-04-15 15:42:16.128622', '2019-04-15 15:42:16.128622', DEFAULT, DEFAULT) +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-15 08:42:16 -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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (11.1ms) +Completed 200 OK in 223ms (Views: 213.6ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-15 08:42: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"."completion_date" DESC + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task"], ["created_at", "2019-04-15 15:42:16.397306"], ["updated_at", "2019-04-15 15:42:16.397306"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190963" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------- +TasksController::destroy: test_0002_will redirect to the root page if given an invalid id +----------------------------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:42:16 -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.8ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.5ms) 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-04-15 15:42:16.433596"], ["updated_at", "2019-04-15 15:42:16.433596"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (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.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (1.6ms) 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", "2019-04-20 15:42:16.441221"], ["created_at", "2019-04-15 15:42:16.446566"], ["updated_at", "2019-04-15 15:42:16.446566"]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (13.7ms) +Completed 200 OK in 17ms (Views: 15.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/3/edit" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------- +TasksController::update: test_0003_will not update if the params are invalid +---------------------------------------------------------------------------- +  (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.5ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/298486374" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"298486374"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "name" = $1, "completion_date" = $2, "description" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["name", "update task"], ["completion_date", nil], ["description", "update description"], ["updated_at", "2019-04-15 15:42:16.499433"], ["id", 298486374]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/ +Completed 302 Found in 10ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 298486374], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (1.0ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"name"=>"update task", "description"=>"update description", "completion_date"=>nil}, "id"=>"-1"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/ +Completed 302 Found in 3ms (ActiveRecord: 1.0ms) +  (2.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::toggle_complete: test_0001_sets completion_date == updated time when marked completed +------------------------------------------------------------------------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:42:16.532101"], ["updated_at", "2019-04-15 15:42:16.532101"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (1.9ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190966/mark" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-15 15:42:16.544544"], ["updated_at", "2019-04-15 15:42:16.547231"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 10ms (ActiveRecord: 1.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0002_sets completion_date to nil when unmarked completed +----------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:42:16.558114"], ["updated_at", "2019-04-15 15:42:16.558114"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14 15:42:16.563680"], ["updated_at", "2019-04-15 15:42:16.567621"], ["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/980190967/mark" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#mark as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 15:42:16.575525"], ["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 8ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------- +TasksController::toggle_complete: test_0003_will redirect to the root page if given an invalid id +------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "New Task for completion"], ["created_at", "2019-04-15 15:42:16.585733"], ["updated_at", "2019-04-15 15:42:16.585733"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT $1 [["LIMIT", 1]] + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started PATCH "/task/-1/mark" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#mark 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/-1 +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-04-15 08:42:16 -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.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-15 08:42:16 -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 4ms (ActiveRecord: 0.5ms) +  (0.7ms) 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", "2019-04-20 15:42:16.619764"], ["created_at", "2019-04-15 15:42:16.621468"], ["updated_at", "2019-04-15 15:42:16.621468"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-15 08:42:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.0ms) +Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK diff --git a/package.json b/package.json new file mode 100644 index 000000000..f9cbc5515 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "TaskList", + "private": true, + "dependencies": {} +} diff --git a/public/404.html b/public/404.html new file mode 100644 index 000000000..2be3af26f --- /dev/null +++ b/public/404.html @@ -0,0 +1,67 @@ + + + + The page you were looking for doesn't exist (404) + + + + + + +
+
+

The page you were looking for doesn't exist.

+

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

+
+

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

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

The change you wanted was rejected.

+

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

+
+

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

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

We're sorry, but something went wrong.

+
+

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

+
+ + diff --git a/public/apple-touch-icon-precomposed.png b/public/apple-touch-icon-precomposed.png new file mode 100644 index 000000000..e69de29bb diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 000000000..e69de29bb diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 000000000..e69de29bb diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 000000000..37b576a4a --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file diff --git a/storage/.keep b/storage/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb new file mode 100644 index 000000000..d19212abd --- /dev/null +++ b/test/application_system_test_case.rb @@ -0,0 +1,5 @@ +require "test_helper" + +class ApplicationSystemTestCase < ActionDispatch::SystemTestCase + driven_by :selenium, using: :chrome, screen_size: [1400, 1400] +end diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb index 971913898..d432245a2 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -28,7 +28,6 @@ # Unskip these tests for Wave 2 describe "show" do it "can get a valid task" do - skip # Act get task_path(task.id) @@ -37,7 +36,6 @@ end it "will redirect for an invalid task" do - skip # Act get task_path(-1) @@ -49,8 +47,6 @@ describe "new" do it "can get the new task page" do - skip - # Act get new_task_path @@ -61,7 +57,6 @@ describe "create" do it "can create a new task" do - skip # Arrange task_hash = { @@ -79,8 +74,8 @@ 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] + # 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) @@ -90,13 +85,15 @@ # Unskip and complete these tests for Wave 3 describe "edit" do it "can get the edit page for an existing task" do - skip - # Your code here + get edit_task_path(task) + 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(3) + must_respond_with :redirect + must_redirect_to tasks_path + expect(flash[:error]).must_equal "Could not find task with id: 3" end end @@ -105,24 +102,113 @@ # Note: If there was a way to fail to save the changes to a task, that would be a great # thing to test. it "can update an existing task" do - skip - # Your code here + id = Task.first.id + task_hash = { + task: { + name: "update task", + description: "update description", + completion_date: nil, + }, + } + expect { + patch task_path(id), params: task_hash + }.wont_change "Task.count" + task = Task.find(id) + expect(task.name).must_equal task_hash[:task][:name] + expect(task.description).must_equal task_hash[:task][:description] + expect(task.completion_date).must_equal task_hash[:task][:completion_date] end it "will redirect to the root page if given an invalid id" do - skip - # Your code here + task_hash = { + task: { + name: "update task", + description: "update description", + completion_date: nil, + }, + } + expect { + patch task_path(-1), params: task_hash + }.wont_change "Task.count" + must_respond_with :redirect + must_redirect_to root_path + end + it "will not update if the params are invalid" do + # id = Task.first.id + # task = Task.find(id) + # expect { + # patch task_path(id), params: {} <--- can not test !! # + # }.wont_change "Task.count" + # must_respond_with :error end end # Complete these tests for Wave 4 describe "destroy" do - # Your tests go here + it "can delete a task" do + task = Task.create(name: "New Task") + expect { + delete task_path(task.id) + }.must_change "Task.count", -1 + + must_respond_with :redirect + must_redirect_to root_path + end + + it "will redirect to the root page if given an invalid id" do + expect { + delete task_path(-1) + }.wont_change "Task.count" + must_respond_with :redirect + must_redirect_to root_path + end end # Complete for Wave 4 describe "toggle_complete" do - # Your tests go here + before do + task = Task.create(name: "New Task for completion") + @id = Task.last.id + @task_todo = Task.find(@id) + end + it "sets completion_date == updated time when marked completed" do + expect { + patch mark_task_path(@task_todo) + }.wont_change "Task.count" + + task_completed = Task.find(@id) + + expect(task_completed.completion_date.to_s).must_equal task_completed.updated_at.to_s + must_respond_with :redirect + must_redirect_to task_path(@id) + expect(task_completed.name).must_equal @task_todo.name + expect(task_completed.description).must_equal @task_todo.description + end + + it "sets completion_date to nil when unmarked completed" do + task_completed = @task_todo + task_completed.update(completion_date: DateTime.current - 1) + + expect { + patch mark_task_path(task_completed) + }.wont_change "Task.count" + + task_todo = Task.find(@id) + expect(task_todo.completion_date).must_be_nil + expect(task_completed.name).must_equal @task_todo.name + expect(task_completed.description).must_equal @task_todo.description + must_respond_with :redirect + must_redirect_to task_path(@id) + end + + it "will redirect to the root page if given an invalid id" do + expect { + patch mark_task_path(-1) + }.wont_change "Task.count" + + must_respond_with :redirect + must_redirect_to task_path(-1) # this is bad becuase redirects to non-existant page, I should change design. + end end end diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml new file mode 100644 index 000000000..804e1a1a2 --- /dev/null +++ b/test/fixtures/tasks.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + description: MyString + completion_date: 2019-04-09 15:49:45 + +two: + name: MyString + description: MyString + completion_date: 2019-04-09 15:49:45 diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/task_test.rb b/test/models/task_test.rb new file mode 100644 index 000000000..7928a374f --- /dev/null +++ b/test/models/task_test.rb @@ -0,0 +1,9 @@ +require "test_helper" + +describe Task do + let(:task) { Task.new } + + it "must be valid" do + value(task).must_be :valid? + end +end diff --git a/test/system/.keep b/test/system/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 000000000..10594a324 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,26 @@ +ENV["RAILS_ENV"] = "test" +require File.expand_path("../../config/environment", __FILE__) +require "rails/test_help" +require "minitest/rails" +require "minitest/reporters" # for Colorized output + +# For colorful output! +Minitest::Reporters.use!( + Minitest::Reporters::SpecReporter.new, + ENV, + Minitest.backtrace_filter +) + + +# To add Capybara feature tests add `gem "minitest-rails-capybara"` +# to the test group in the Gemfile and uncomment the following: +# require "minitest/rails/capybara" + +# Uncomment for awesome colorful output +# require "minitest/pride" + +class ActiveSupport::TestCase + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. + fixtures :all + # Add more helper methods to be used by all tests here... +end diff --git a/vendor/.keep b/vendor/.keep new file mode 100644 index 000000000..e69de29bb